Class Index | Cross Index | Namespace Index |
Button with two states
Contained in: Gtk
Derived from:
Gtk::Button
Derived by:
Gtk::CheckButton
#include <gtk--/togglebutton.h>
public function member index: |
||
ToggleButton | (); | |
explicit | ToggleButton | (const string& label, gfloat x=0.5, gfloat y=0.5); |
bool | get_active | () const; |
bool | get_mode | () const; |
GtkToggleButton* | gtkobj | (); |
const GtkToggleButton* | gtkobj | () const; |
static bool | isA | (Object* object); |
void | set_active | (bool is_active); |
void | set_mode | (bool draw_indicator); |
emitable signal void | toggled | (); |
virtual | ~ToggleButton | (); |
protected function member index: |
||
virtual void | toggled_impl | (); |
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 {ToggleButton(const string &label)} ctor directly instead.
You won't be able to add a widget in this button since it already has a Gtk_Label in it.
See active.
See draw_indicator.
See draw_indicator.
Triggered when the button changes state (Note : changing the button's state with set_active will also trigger this signal).