|
| virtual | ~Activatable () |
| |
| GtkActivatable* | gobj () |
| | Provides access to the underlying C GObject. More...
|
| |
| const GtkActivatable* | gobj () const |
| | Provides access to the underlying C GObject. More...
|
| |
| void | do_set_related_action (const Glib::RefPtr< Action >& action) |
| | This is a utility function for Gtk::Activatable implementors. More...
|
| |
| Glib::RefPtr< Action > | get_related_action () |
| | Gets the related Gtk::Action for activatable. More...
|
| |
| Glib::RefPtr< const Action > | get_related_action () const |
| | Gets the related Gtk::Action for activatable. More...
|
| |
| bool | get_use_action_appearance () const |
| | Gets whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance. More...
|
| |
| void | sync_action_properties (const Glib::RefPtr< Action >& action) |
| | This is called to update the activatable completely, this is called internally when the Gtk::Activatable::property_related_action() property is set or unset and by the implementing class when Gtk::Activatable::signal_use_action_appearance() changes. More...
|
| |
| void | set_related_action (const Glib::RefPtr< Action >& action) |
| | Sets the related action on the activatable object. More...
|
| |
| void | set_use_action_appearance (bool use_appearance=true) |
| | Sets whether this activatable should reset its layout and appearance when setting the related action or when the action changes appearance. More...
|
| |
Glib::PropertyProxy
< Glib::RefPtr< Action > > | property_related_action () |
| | The action this activatable will activate and receive updates from. More...
|
| |
Glib::PropertyProxy_ReadOnly
< Glib::RefPtr< Action > > | property_related_action () const |
| | The action this activatable will activate and receive updates from. More...
|
| |
| Glib::PropertyProxy< bool > | property_use_action_appearance () |
| | Whether to use the related actions appearance properties. More...
|
| |
Glib::PropertyProxy_ReadOnly
< bool > | property_use_action_appearance () const |
| | Whether to use the related actions appearance properties. More...
|
| |
| virtual void | update_vfunc (const Glib::RefPtr< Action >& action, const Glib::ustring& property_name) |
| |
| virtual void | sync_action_properties_vfunc (const Glib::RefPtr< Action >& action) |
| |
| | Interface (const Glib::Interface_Class &interface_class) |
| |
| | Interface (GObject *castitem) |
| |
| virtual | ~Interface () |
| |
| GObject * | gobj () |
| |
| const GObject * | gobj () const |
| |
| void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
| |
| void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
| |
| void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
| |
| void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
| |
| void | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
| |
| sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
| |
| void | freeze_notify () |
| |
| void | thaw_notify () |
| |
| virtual void | reference () const |
| |
| virtual void | unreference () const |
| |
| GObject * | gobj () |
| |
| const GObject * | gobj () const |
| |
| GObject * | gobj_copy () const |
| |
| void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
| |
| void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
| |
| void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
| |
| void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
| |
| void | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
| |
| sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
| |
| void | freeze_notify () |
| |
| void | thaw_notify () |
| |
| GObject * | gobj () |
| |
| const GObject * | gobj () const |
| |
| GObject * | gobj_copy () const |
| |
| | trackable (const trackable &src) |
| |
| trackable & | operator= (const trackable &src) |
| |
| void | add_destroy_notify_callback (void *data, func_destroy_notify func) const |
| |
| void | remove_destroy_notify_callback (void *data) const |
| |
| void | notify_callbacks () |
| |
Activatable widgets can be connected to a Gtk::Action and reflect the state of the action.
An Activatable can also provide feedback through its action, as it is responsible for activating the related action.
- Since gtkmm 2.16:
This is a utility function for Gtk::Activatable implementors.
When implementing Gtk::Activatable you must call this when handling changes of the Gtk::Activatable::property_related_action(), and you must also use this to break references in Object->dispose().
This function adds a reference to the currently set related action for you, it also makes sure the Gtk::Activatable->update() method is called when the related Gtk::Action properties change and registers to the action's proxy list.
<note>Be careful to call this before setting the local copy of the Gtk::Action property, since this function uses gtk_activatable_get_action() to retrieve the previous action</note>
- Since gtkmm 2.16:
- Parameters
-