|
| | Shortcut (Shortcut && src) noexcept |
| |
| Shortcut & | operator= (Shortcut && src) noexcept |
| |
| | ~Shortcut () noexcept override |
| |
| GtkShortcut * | gobj () |
| | Provides access to the underlying C GObject. More...
|
| |
| const GtkShortcut * | gobj () const |
| | Provides access to the underlying C GObject. More...
|
| |
| GtkShortcut * | gobj_copy () |
| | Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
| |
| Glib::RefPtr< ShortcutTrigger > | get_trigger () const |
| | Gets the trigger used to trigger self. More...
|
| |
| void | set_trigger (const Glib::RefPtr< const ShortcutTrigger > & trigger) |
| | Sets the new trigger for self to be trigger. More...
|
| |
| Glib::RefPtr< ShortcutAction > | get_action () const |
| | Gets the action that is activated by this shortcut. More...
|
| |
| void | set_trigger (const Glib::RefPtr< const ShortcutAction > & action) |
| | Sets the new action for self to be action. More...
|
| |
| Glib::VariantBase | get_arguments () const |
| | Gets the arguments that are passed when activating the shortcut. More...
|
| |
| void | set_arguments (const Glib::VariantBase & args) const |
| | Sets the arguments to pass when activating the shortcut. More...
|
| |
| Glib::PropertyProxy< Glib::RefPtr< ShortcutTrigger > > | property_trigger () |
| | The trigger that triggers this shortcut. More...
|
| |
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr< ShortcutTrigger > > | property_trigger () const |
| | The trigger that triggers this shortcut. More...
|
| |
| Glib::PropertyProxy< Glib::RefPtr< ShortcutAction > > | property_action () |
| | The action that gets activated by this shortcut. More...
|
| |
| Glib::PropertyProxy_ReadOnly< Glib::RefPtr< ShortcutAction > > | property_action () const |
| | The action that gets activated by this shortcut. More...
|
| |
| Glib::PropertyProxy< Glib::VariantBase > | property_arguments () |
| | Arguments passed to activation. More...
|
| |
| Glib::PropertyProxy_ReadOnly< Glib::VariantBase > | property_arguments () const |
| | Arguments passed to activation. More...
|
| |
| | 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 (const Quark &key, void *data, DestroyNotify notify) |
| |
| void | remove_data (const QueryQuark &quark) |
| |
| void * | steal_data (const QueryQuark &quark) |
| |
| Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
| |
| | ObjectBase (const ObjectBase &)=delete |
| |
| ObjectBase & | operator= (const ObjectBase &)=delete |
| |
| 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 |
| |
| PropertyType | get_property (const Glib::ustring &property_name) const |
| |
| sigc::connection | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
| |
| sigc::connection | connect_property_changed (const Glib::ustring &property_name, 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 |
| |
| | trackable () noexcept |
| |
| | trackable (const trackable &src) noexcept |
| |
| | trackable (trackable &&src) noexcept |
| |
| | ~trackable () |
| |
| void | add_destroy_notify_callback (notifiable *data, func_destroy_notify func) const |
| |
| void | notify_callbacks () |
| |
| trackable & | operator= (const trackable &src) |
| |
| trackable & | operator= (trackable &&src) noexcept |
| |
| void | remove_destroy_notify_callback (notifiable *data) const |
| |
An object describing a keyboard shortcut.
Gtk::Shortcut is the low level object used for managing keyboard shortcuts. It contains a description of how to trigger the shortcut via a Gtk::ShortcutTrigger and a way to activate the shortcut on a widget via Gtk::ShortcutAction.
The actual work is usually done via Gtk::ShortcutController, which decides if and when to activate a shortcut. Using that controller directly however is rarely necessary as various higher level convenience APIs exist on Widgets that make it easier to use shortcuts in GTK.
Gtk::Shortcut does provide functionality to make it easy for users to work with shortcuts, either by providing informational strings for display purposes or by allowing shortcuts to be configured.
- See also
- Gtk::ShortcutController, Gtk::ShortcutAction, Gtk::ShortcutTrigger
- Since gtkmm 3.98: