#include <activatable.h>
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.
Definition at line 61 of file tk/ytkmm/ytkmm/gtkmm/activatable.h.
◆ Activatable()
Gtk::Activatable::Activatable |
( |
| ) |
|
|
protected |
You should derive from this class to use it.
◆ ~Activatable()
virtual Gtk::Activatable::~Activatable |
( |
| ) |
|
|
virtual |
◆ add_interface()
static void Gtk::Activatable::add_interface |
( |
GType |
gtype_implementer | ) |
|
|
static |
◆ do_set_related_action()
void Gtk::Activatable::do_set_related_action |
( |
const Glib::RefPtr< Action > & |
action | ) |
|
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
- Parameters
-
◆ get_related_action() [1/2]
Glib::RefPtr<Action> Gtk::Activatable::get_related_action |
( |
| ) |
|
◆ get_related_action() [2/2]
Glib::RefPtr<const Action> Gtk::Activatable::get_related_action |
( |
| ) |
const |
◆ get_type()
static GType Gtk::Activatable::get_type |
( |
| ) |
|
|
static |
Get the GType for this class, for use with the underlying GObject type system.
◆ get_use_action_appearance()
bool Gtk::Activatable::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.
- Returns
- Whether activatable uses its actions appearance.
◆ gobj() [1/2]
◆ gobj() [2/2]
◆ property_related_action() [1/2]
Glib::PropertyProxy< Glib::RefPtr<Action> > Gtk::Activatable::property_related_action |
( |
| ) |
|
The action this activatable will activate and receive updates from.
- Returns
- A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.
◆ property_related_action() [2/2]
Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Action> > Gtk::Activatable::property_related_action |
( |
| ) |
const |
The action this activatable will activate and receive updates from.
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
◆ property_use_action_appearance() [1/2]
Glib::PropertyProxy< bool > Gtk::Activatable::property_use_action_appearance |
( |
| ) |
|
Whether to use the related actions appearance properties.
- Returns
- A PropertyProxy that allows you to get or set the value of the property, or receive notification when the value of the property changes.
◆ property_use_action_appearance() [2/2]
Glib::PropertyProxy_ReadOnly< bool > Gtk::Activatable::property_use_action_appearance |
( |
| ) |
const |
Whether to use the related actions appearance properties.
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
◆ set_related_action()
void Gtk::Activatable::set_related_action |
( |
const Glib::RefPtr< Action > & |
action | ) |
|
◆ set_use_action_appearance()
void Gtk::Activatable::set_use_action_appearance |
( |
bool |
use_appearance = true | ) |
|
◆ sync_action_properties()
void Gtk::Activatable::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.
- Parameters
-
◆ sync_action_properties_vfunc()
virtual void Gtk::Activatable::sync_action_properties_vfunc |
( |
const Glib::RefPtr< Action > & |
action | ) |
|
|
virtual |
◆ update_vfunc()
virtual void Gtk::Activatable::update_vfunc |
( |
const Glib::RefPtr< Action > & |
action, |
|
|
const Glib::ustring & |
property_name |
|
) |
| |
|
virtual |
◆ wrap()
A Glib::wrap() method for this object.
- Parameters
-
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. |
- Returns
- A C++ instance that wraps this C instance.
The documentation for this class was generated from the following file: