|
| SimpleAction (SimpleAction &&src) noexcept |
|
SimpleAction & | operator= (SimpleAction &&src) noexcept |
|
| ~SimpleAction () noexcept override |
|
GSimpleAction * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GSimpleAction * | gobj () const |
| Provides access to the underlying C GObject.
|
|
GSimpleAction * | 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_enabled (bool enabled=true) |
| Sets the action as enabled or not.
|
|
void | set_state (const Glib::VariantBase & value) |
| Sets the state of the action.
|
|
void | set_state_hint (const Glib::VariantBase &state_hint) |
| Sets the state hint for the action.
|
|
Glib::PropertyProxy< bool > | property_enabled () |
| If action is currently enabled.
|
|
Glib::PropertyProxy_ReadOnly< bool > | property_enabled () const |
| If action is currently enabled.
|
|
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_name () const |
| The name of the action.
|
|
Glib::PropertyProxy_ReadOnly< Glib::VariantType > | property_parameter_type () const |
| The type of the parameter that must be given when activating the action.
|
|
Glib::PropertyProxy< Glib::VariantBase > | property_state () |
| The state of the action, or nullptr if the action is stateless.
|
|
Glib::PropertyProxy_ReadOnly< Glib::VariantBase > | property_state () const |
| The state of the action, or nullptr if the action is stateless.
|
|
Glib::PropertyProxy_ReadOnly< Glib::VariantType > | property_state_type () const |
| The VariantType of the state that the action has, or nullptr if the action is stateless.
|
|
Glib::SignalProxy< void(const Glib::VariantBase &)> | signal_activate () |
|
Glib::SignalProxy< void(const Glib::VariantBase &)> | signal_change_state () |
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark & key) |
|
void | set_data (const Quark & key, void *data) |
|
void | set_data_with_c_callback (const Quark & key, void *data, GDestroyNotify notify) |
|
void | set_data (const Quark & key, void *data, DestroyNotify notify) |
| Prefer set_data_with_c_callback() with a callback with C linkage.
|
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring & property_name, const Glib::ValueBase & value) |
| You probably want to use a specific property_*() accessor method instead.
|
|
void | get_property_value (const Glib::ustring & property_name, Glib::ValueBase & value) const |
| You probably want to use a specific property_*() accessor method instead.
|
|
template<class PropertyType > |
void | set_property (const Glib::ustring & property_name, const PropertyType & value) |
| You probably want to use a specific property_*() accessor method instead.
|
|
template<class PropertyType > |
void | get_property (const Glib::ustring & property_name, PropertyType & value) const |
| You probably want to use a specific property_*() accessor method instead.
|
|
template<class PropertyType > |
PropertyType | get_property (const Glib::ustring & property_name) const |
| You probably want to use a specific property_*() accessor method instead.
|
|
sigc::connection | connect_property_changed (const Glib::ustring & property_name, const sigc::slot< void()> &slot) |
| You can use the signal_changed() signal of the property proxy instead.
|
|
sigc::connection | connect_property_changed (const Glib::ustring & property_name, sigc::slot< void()> &&slot) |
| You can use the signal_changed() signal of the property proxy instead.
|
|
void | freeze_notify () |
| Increases the freeze count on object.
|
|
void | thaw_notify () |
| Reverts the effect of a previous call to freeze_notify().
|
|
virtual void | reference () const |
| Increment the reference count for this object.
|
|
virtual void | unreference () const |
| Decrement the reference count for this object.
|
|
GObject * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GObject * | gobj () const |
| Provides access to the underlying C GObject.
|
|
GObject * | gobj_copy () const |
| Give a ref-ed copy to someone. Use for direct struct access.
|
|
| Action (Action &&src) noexcept |
|
Action & | operator= (Action &&src) noexcept |
|
| ~Action () noexcept override |
|
GAction * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GAction * | gobj () const |
| Provides access to the underlying C GObject.
|
|
Glib::ustring | get_name () const |
| Queries the name of action.
|
|
Glib::VariantType | get_parameter_type () const |
| Queries the type of the parameter that must be given when activating action.
|
|
Glib::VariantType | get_state_type () const |
| Queries the type of the state of action.
|
|
template<typename T_Value > |
void | get_state_hint (T_Value & value) const |
| Requests a hint about the valid range of values for the state of the action.
|
|
Glib::VariantContainerBase | get_state_hint_variant () const |
| Requests a hint about the valid range of values for the state of action.
|
|
bool | get_enabled () const |
| Checks if action is currently enabled.
|
|
template<typename T_Value > |
void | change_state (const T_Value & value) |
| Request for the state of action to be changed to value, assuming that the action has the expected state type.
|
|
template<typename T_Value > |
void | change_state (const Glib::Variant< T_Value > & value) |
|
void | change_state_variant (const Glib::VariantBase & value) |
| Request for the state of action to be changed to value.
|
|
template<typename T_Value > |
void | get_state (T_Value & value) const |
| Queries the current state of the action.
|
|
Glib::VariantBase | get_state_variant () const |
| Queries the current state of action.
|
|
void | activate () |
| Activates the action without a parameter.
|
|
template<typename T_Value > |
void | activate (const T_Value ¶meter) |
| Activates the action with a parameter.
|
|
template<typename T_Value > |
void | activate (const Glib::Variant< T_Value > ¶meter) |
|
void | activate_variant (const Glib::VariantBase ¶meter) |
| Activates the action.
|
|
template<typename T_Value > |
Glib::ustring | print_detailed_name (const T_Value &target_value) |
| Formats a detailed action name from the action's action_name and target_value.
|
|
Glib::PropertyProxy_ReadOnly< bool > | property_enabled () const |
| If action is currently enabled.
|
|
Glib::PropertyProxy_ReadOnly< Glib::ustring > | property_name () const |
| The name of the action.
|
|
Glib::PropertyProxy_ReadOnly< Glib::VariantType > | property_parameter_type () const |
| The type of the parameter that must be given when activating the action.
|
|
Glib::PropertyProxy_ReadOnly< Glib::VariantBase > | property_state () const |
| The state of the action, or nullptr if the action is stateless.
|
|
Glib::PropertyProxy_ReadOnly< Glib::VariantType > | property_state_type () const |
| The Glib::VariantType of the state that the action has, or nullptr if the action is stateless.
|
|
| Interface () |
| A Default constructor.
|
|
| Interface (Interface &&src) noexcept |
|
Interface & | operator= (Interface &&src) noexcept |
|
| Interface (const Glib::Interface_Class &interface_class) |
| Called by constructors of derived classes.
|
|
| Interface (GObject *castitem) |
| Called by constructors of derived classes.
|
|
| ~Interface () noexcept override |
|
| Interface (const Interface &)=delete |
|
Interface & | operator= (const Interface &)=delete |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
|
static GType | get_type () |
| Get the GType for this class, for use with the underlying GObject type system.
|
|
static Glib::RefPtr< SimpleAction > | create (const Glib::ustring & name) |
|
static Glib::RefPtr< SimpleAction > | create (const Glib::ustring & name, const Glib::VariantType ¶meter_type) |
| Creates a new action.
|
|
static Glib::RefPtr< SimpleAction > | create (const Glib::ustring & name, const Glib::VariantType ¶meter_type, const Glib::VariantBase & state) |
| Creates a new stateful action.
|
|
static Glib::RefPtr< SimpleAction > | create (const Glib::ustring & name, const Glib::VariantBase & state) |
| Creates a new stateful action.
|
|
static Glib::RefPtr< SimpleAction > | create_bool (const Glib::ustring & name, bool state=false) |
| Creates a new boolean stateful action.
|
|
static Glib::RefPtr< SimpleAction > | create_radio_string (const Glib::ustring & name, const Glib::ustring &initial_state) |
| Creates a new radio action with a string-based target value.
|
|
static Glib::RefPtr< SimpleAction > | create_radio_integer (const Glib::ustring & name, gint32 initial_state) |
| Creates a new radio action with an integer-based target value.
|
|
static void | add_interface (GType gtype_implementer) |
|
static GType | get_type () |
| Get the GType for this class, for use with the underlying GObject type system.
|
|
static bool | name_is_valid (const Glib::ustring &action_name) |
| Checks if action_name is valid.
|
|
template<typename T_Value > |
static void | parse_detailed_name (const Glib::ustring &detailed_name, Glib::ustring &action_name, T_Value &target_value) |
| Parses a detailed action name into its separate name and target components.
|
|
static void | parse_detailed_name_variant (const Glib::ustring &detailed_name, Glib::ustring &action_name, Glib::VariantBase &target_value) |
| Parses a detailed action name into its separate name and target components.
|
|
static Glib::ustring | print_detailed_name_variant (const Glib::ustring &action_name, const Glib::VariantBase &target_value) |
| Formats a detailed action name from action_name and target_value.
|
|
SimpleAction - A simple Action implementation.
A SimpleAction is the obvious simple implementation of the Action interface. This is the easiest way to create an action for purposes of adding it to a SimpleActionGroup.
See also Gtk::Action.
- Since glibmm 2.32: