![]() |
![]() |
Public Member Functions | |
virtual | ~ToggleAction () |
GtkToggleAction* | gobj () |
Provides access to the underlying C GObject. | |
const GtkToggleAction* | gobj () const |
Provides access to the underlying C GObject. | |
GtkToggleAction* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
void | toggled () |
Emits the "toggled" signal on the toggle action. | |
void | set_active (bool is_active=true) |
Sets the checked state on the toggle action. | |
bool | get_active () const |
Returns the checked state of the toggle action. | |
void | set_draw_as_radio (bool draw_as_radio=true) |
Sets whether the action should have proxies like a radio action. | |
bool | get_draw_as_radio () const |
Returns whether the action should have proxies like a radio action. | |
Glib::SignalProxy0<void> | signal_toggled () |
Glib::PropertyProxy<bool> | property_draw_as_radio () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy_ReadOnly< bool > | property_draw_as_radio () const |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Static Public Member Functions | |
Glib::RefPtr<ToggleAction> | create () |
Glib::RefPtr<ToggleAction> | create (const Glib::ustring& name, const Glib::ustring& label=Glib::ustring(), const Glib::ustring& tooltip=Glib::ustring(), bool is_active=false) |
Glib::RefPtr<ToggleAction> | create (const Glib::ustring& name, const Gtk::StockID& stock_id, const Glib::ustring& label=Glib::ustring(), const Glib::ustring& tooltip=Glib::ustring(), bool is_active=false) |
Protected Member Functions | |
ToggleAction () | |
ToggleAction (const Glib::ustring& name, const StockID& stock_id, const Glib::ustring& label=Glib::ustring(), const Glib::ustring& tooltip=Glib::ustring(), bool is_active=false) | |
virtual void | on_toggled () |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Gtk::ToggleAction> | wrap (GtkToggleAction* object, bool take_copy=false) |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from Gtk::Action.
Reimplemented in Gtk::RadioAction.
|
|
Returns the checked state of the toggle action.
|
|
Returns whether the action should have proxies like a radio action.
|
|
Provides access to the underlying C GObject.
Reimplemented from Gtk::Action.
Reimplemented in Gtk::RadioAction.
|
|
Provides access to the underlying C GObject.
Reimplemented from Gtk::Action.
Reimplemented in Gtk::RadioAction.
|
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
Reimplemented from Gtk::Action.
Reimplemented in Gtk::RadioAction.
|
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Sets the checked state on the toggle action. Since: 2.4
|
|
Sets whether the action should have proxies like a radio action. Since: 2.4
|
|
|
|
Emits the "toggled" signal on the toggle action. Since: 2.4 |
|
|