![]() |
![]() |
A Gtk::CheckButton places a discrete Gtk::ToggleButton next to a widget, (usually a Gtk::Label). See Gtk::ToggleButton widgets for more information about toggle/check buttons. The important signal, signal_toggled() is also inherited from Gtk::ToggleButton.
Public Member Functions | |
CheckButton (const Glib::ustring& label, bool mnemonic=false) | |
Create a check button with a label. | |
CheckButton () | |
Create an empty check button. | |
const GtkCheckButton* | gobj () const |
Provides access to the underlying C GtkObject. | |
GtkCheckButton* | gobj () |
Provides access to the underlying C GtkObject. | |
virtual | ~CheckButton () |
Protected Member Functions | |
virtual void | draw_indicator_vfunc (GdkRectangle* area) |
Emited on button redraw to update indicator. | |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::CheckButton* | wrap (GtkCheckButton* object, bool take_copy=false) |
|
|
|
Create an empty check button. With an empty button, you can Gtk::Button::add() a widget such as a Gtk::Pixmap or Gtk::Box. If you just wish to add a Gtk::Label, you may want to use the Gtk::CheckButton(const Glib::ustring& label) constructor directly instead. |
|
Create a check button with a label. You won't be able to add a widget to this button since it already contains a Gtk::Label |
|
Emited on button redraw to update indicator. Triggered when the button is redrawn (e.g.after being toggled) Overload this signal if you want to implement your own check button look. Otherwise, you most likely don't care about it. The GdkRectangle specifies the area of the widget which will get redrawn. |
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::ToggleButton. Reimplemented in Gtk::RadioButton. |
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::ToggleButton. Reimplemented in Gtk::RadioButton. |
|
|