GtkButton

A pushbutton widget that issues a signal when clicked.
Object Hierarchy
Direct Subclasses
Description
The GtkButton widget is usually displayed as a pushbutton with a text label, GtkLabel, although it can contain any valid widget. The GtkButton is generally used to attach a callback function or method that is called when the button is clicked.
Constructors
-- Creates a new button widget.GtkButton::new_from_stock (string stock_id);-- Creates a GtkButton from stock.
Methods
clicked() Â Emits the "clicked" signal to the button. enter() Â Emits the "enter" signal to the button. get_alignment() Â Returns the xalign and the yalign properties. get_focus_on_click() Â Returns the value of the "focus-on-click" property. get_image() Â Returns the widget set as the image for the button. get_label() Â Retrieves the text from the button label. get_relief() Â Retrieves the current relief style. get_use_stock() Â Returns the "use_stock" property. get_use_underline() Â Returns the "use_underline" property. leave() Â Emits the "leave" signal to the button. pressed() Â Emits the "pressed" signal to the button. released() Â Emits the "released" signal to the button. set_alignment() Â Sets the "xalign" and "yalign" properties. set_focus_on_click() Â Sets the "focus-on-click" property. set_image() Â Sets the widget as an image for the button. set_label() Â Sets the text of the button. set_relief() Â Sets the current relief style of the button. set_use_stock() Â Sets the "use_stock" property. set_use_underline() Â Sets the "use_underline" property.
Signals
"activate" Â Emitted when the activate method is called. "clicked" Â Emitted when the user clicks the button. "enter" Â Emitted when the mouse pointer enters the button. "leave" Â Emitted when the mouse pointer leaves the button. "pressed" Â Emitted when the mouse button is pressed over the button. "released" Â Emitted when the mouse button is released over the button.