3 #ifndef _GTKMM_TOGGLEACTION_H
4 #define _GTKMM_TOGGLEACTION_H
7 #include <glibmm/ustring.h>
8 #include <sigc++/sigc++.h>
32 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 {
class ToggleAction_Class; }
56 #ifndef DOXYGEN_SHOULD_SKIP_THIS
65 static CppClassType toggleaction_class_;
73 explicit ToggleAction(
const Glib::ConstructParams& construct_params);
85 #ifndef DOXYGEN_SHOULD_SKIP_THIS
88 static GType get_base_type() G_GNUC_CONST;
117 explicit ToggleAction(
const Glib::ustring&
name,
const StockID& stock_id =
StockID(),
const Glib::ustring& label = Glib::ustring(),
const Glib::ustring& tooltip = Glib::ustring(),
bool is_active =
false);
130 explicit ToggleAction(
const Glib::ustring&
name,
const Glib::ustring& icon_name,
const Glib::ustring& label = Glib::ustring(),
const Glib::ustring& tooltip = Glib::ustring(),
bool is_active =
false);
136 static Glib::RefPtr<ToggleAction>
create();
148 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);
163 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);
178 static Glib::RefPtr<ToggleAction>
create_with_icon_name(
const Glib::ustring&
name,
const Glib::ustring& icon_name,
const Glib::ustring& label,
const Glib::ustring& tooltip,
bool is_active =
false);
GtkToggleAction * gobj()
Provides access to the underlying C GObject.
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)
Glib::PropertyProxy_ReadOnly< bool > property_active() const
ToggleAction(const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring(), bool is_active=false)
void set_draw_as_radio(bool draw_as_radio=true)
void set_active(bool is_active=true)
bool get_draw_as_radio() const
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)
Glib::SignalProxy0< void > signal_toggled()
Glib::PropertyProxy< bool > property_draw_as_radio()
Glib::RefPtr< Gtk::ToggleAction > wrap(GtkToggleAction *object, bool take_copy=false)
Glib::PropertyProxy< bool > property_active()
Glib::PropertyProxy_ReadOnly< bool > property_draw_as_radio() const
static Glib::RefPtr< ToggleAction > create_with_icon_name(const Glib::ustring &name, const Glib::ustring &icon_name, const Glib::ustring &label, const Glib::ustring &tooltip, bool is_active=false)
virtual void on_toggled()
This is a default handler for the signal signal_toggled().
GtkToggleAction * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
const GtkToggleAction * gobj() const
Provides access to the underlying C GObject.
static GType get_type() G_GNUC_CONST
ToggleAction(const Glib::ustring &name, const StockID &stock_id=StockID(), const Glib::ustring &label=Glib::ustring(), const Glib::ustring &tooltip=Glib::ustring(), bool is_active=false)
static Glib::RefPtr< ToggleAction > create()
GtkImageIconNameData name