This widget is generally used with a signal handler that is called when the button is pressed. It can hold any valid child widget. The most commonly used child is the Gtk::Label.
|
Public Member Functions |
| virtual | ~Button () |
| GtkButton* | gobj () |
| | Provides access to the underlying C GtkObject.
|
| const GtkButton* | gobj () const |
| | Provides access to the underlying C GtkObject.
|
| | Button () |
| | Create an empty button.
|
| | Button (const Glib::ustring& label, bool mnemonic=false) |
| | Simple Push Button with label.
|
| | Button (const StockID& stock_id) |
| void | pressed () |
| void | released () |
| void | clicked () |
| void | enter () |
| void | leave () |
| void | set_relief (ReliefStyle newstyle) |
| ReliefStyle | get_relief () const |
| void | set_label (const Glib::ustring& label) |
| | Sets the text of the label of the button to str .
|
| Glib::ustring | get_label () const |
| | Fetches the text from the label of the button, as set by set_label().
|
| void | set_use_underline (bool use_underline=true) |
| | If true, an underline in the text of the button label indicates the next character should be used for the mnemonic accelerator key.
|
| bool | get_use_underline () const |
| | Returns whether an embedded underline in the button label indicates a mnemonic.
|
| void | set_use_stock (bool use_stock=true) |
| | If true, the label set on the button is used as a stock id to select the stock item for the button.
|
| bool | get_use_stock () const |
| | Returns whether the button label is a stock item.
|
| void | set_focus_on_click (bool focus_on_click=true) |
| | Sets whether the button will grab focus when it is clicked with the mouse.
|
| bool | get_focus_on_click () const |
| | Returns whether the button grabs focus when it is clicked with the mouse.
|
| void | set_alignment (float xalign, float yalign) |
| | Sets the alignment of the child.
|
| void | get_alignment (float& xalign, float& yalign) |
| | Gets the alignment of the child in the button.
|
| Glib::SignalProxy0<void> | signal_pressed () |
| Glib::SignalProxy0<void> | signal_released () |
| Glib::SignalProxy0<void> | signal_clicked () |
| Glib::SignalProxy0<void> | signal_enter () |
| Glib::SignalProxy0<void> | signal_leave () |
| Glib::SignalProxy0<void> | signal_activate () |
| Glib::PropertyProxy<Glib::ustring> | property_label () |
| | You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
Glib::PropertyProxy_ReadOnly<
Glib::ustring > | property_label () const |
| | You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
| Glib::PropertyProxy<ReliefStyle> | property_relief () |
| | You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
Glib::PropertyProxy_ReadOnly<
ReliefStyle > | property_relief () const |
| | You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
| Glib::PropertyProxy<bool> | property_use_underline () |
| | You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
Glib::PropertyProxy_ReadOnly<
bool > | property_use_underline () const |
| | You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
| Glib::PropertyProxy<bool> | property_use_stock () |
| | You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
Glib::PropertyProxy_ReadOnly<
bool > | property_use_stock () const |
| | You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
| Glib::PropertyProxy<bool> | property_focus_on_click () |
| | You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
Glib::PropertyProxy_ReadOnly<
bool > | property_focus_on_click () const |
| | You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
Protected Member Functions |
| virtual void | on_pressed () |
| virtual void | on_released () |
| virtual void | on_clicked () |
| virtual void | on_enter () |
| virtual void | on_leave () |
| virtual void | on_activate () |
Related Functions |
(Note that these are not member functions.)
|
| Gtk::Button* | wrap (GtkButton* object, bool take_copy=false) |