![]() |

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 () | |||
Related Functions | ||||
| (Note that these are not member functions.) | ||||
| Gtk::CheckButton* | wrap (GtkCheckButton* object, bool take_copy=false) | |||
| ||||
| virtual Gtk::CheckButton::~CheckButton | ( | ) | [virtual] |
| Gtk::CheckButton::CheckButton | ( | ) |
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.
| Gtk::CheckButton::CheckButton | ( | const Glib::ustring & | label, | |
| bool | mnemonic = false | |||
| ) | [explicit] |
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
| const GtkCheckButton* Gtk::CheckButton::gobj | ( | ) | const [inline] |
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::ToggleButton.
Reimplemented in Gtk::RadioButton.
| GtkCheckButton* Gtk::CheckButton::gobj | ( | ) | [inline] |
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::ToggleButton.
Reimplemented in Gtk::RadioButton.
| Gtk::CheckButton* wrap | ( | GtkCheckButton * | object, | |
| bool | take_copy = false | |||
| ) | [related] |
| object | The C instance |
| take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |