![]() |
![]() |
Public Member Functions | ||||
bool | get_active () const | |||
Returns the checked state of the toggle action. | ||||
bool | get_draw_as_radio () const | |||
Returns whether the action should have proxies like a radio action. | ||||
const GtkToggleAction* | gobj () const | |||
Provides access to the underlying C GObject. | ||||
GtkToggleAction* | gobj () | |||
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 | set_active (bool is_active=true) | |||
Sets the checked state on the toggle action. | ||||
void | set_draw_as_radio (bool draw_as_radio=true) | |||
Sets whether the action should have proxies like a radio action. | ||||
Glib::SignalProxy0<void> | signal_toggled () | |||
| ||||
void | toggled () | |||
Emits the "toggled" signal on the toggle action. | ||||
virtual | ~ToggleAction () | |||
Static Public Member Functions | ||||
static 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) | |||
static Glib::RefPtr<ToggleAction> | create (const Glib::ustring& name, const Glib::ustring& label=Glib::ustring(), const Glib::ustring& tooltip=Glib::ustring(), bool is_active=false) | |||
static Glib::RefPtr<ToggleAction> | create () | |||
Protected Member Functions | ||||
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) | ||||
ToggleAction () | ||||
Related Functions | ||||
(Note that these are not member functions.) | ||||
Glib::RefPtr<Gtk::ToggleAction> | wrap (GtkToggleAction* object, bool take_copy=false) | |||
|
virtual Gtk::ToggleAction::~ToggleAction | ( | ) | [virtual] |
Gtk::ToggleAction::ToggleAction | ( | ) | [protected] |
Gtk::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 | |||
) | [explicit, protected] |
static Glib::RefPtr<ToggleAction> Gtk::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 | |||
) | [static] |
static Glib::RefPtr<ToggleAction> Gtk::ToggleAction::create | ( | const Glib::ustring & | name, | |
const Glib::ustring & | label = Glib::ustring() , |
|||
const Glib::ustring & | tooltip = Glib::ustring() , |
|||
bool | is_active = false | |||
) | [static] |
static Glib::RefPtr<ToggleAction> Gtk::ToggleAction::create | ( | ) | [static] |
bool Gtk::ToggleAction::get_active | ( | ) | const |
Returns the checked state of the toggle action.
bool Gtk::ToggleAction::get_draw_as_radio | ( | ) | const |
Returns whether the action should have proxies like a radio action.
const GtkToggleAction* Gtk::ToggleAction::gobj | ( | ) | const [inline] |
Provides access to the underlying C GObject.
Reimplemented from Gtk::Action.
Reimplemented in Gtk::RadioAction.
GtkToggleAction* Gtk::ToggleAction::gobj | ( | ) | [inline] |
Provides access to the underlying C GObject.
Reimplemented from Gtk::Action.
Reimplemented in Gtk::RadioAction.
GtkToggleAction* Gtk::ToggleAction::gobj_copy | ( | ) |
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.
void Gtk::ToggleAction::set_active | ( | bool | is_active = true |
) |
Sets the checked state on the toggle action.
is_active | Whether the action should be checked or not. |
void Gtk::ToggleAction::set_draw_as_radio | ( | bool | draw_as_radio = true |
) |
Sets whether the action should have proxies like a radio action.
draw_as_radio | Whether the action should have proxies like a radio action. |
Glib::SignalProxy0< void > Gtk::ToggleAction::signal_toggled | ( | ) |
void toggled()
void Gtk::ToggleAction::toggled | ( | ) |
Emits the "toggled" signal on the toggle action.
Glib::RefPtr<Gtk::ToggleAction> wrap | ( | GtkToggleAction * | 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. |