|
| ShortcutTrigger (ShortcutTrigger &&src) noexcept |
|
ShortcutTrigger & | operator= (ShortcutTrigger &&src) noexcept |
|
| ~ShortcutTrigger () noexcept override |
|
GtkShortcutTrigger * | gobj () |
| Provides access to the underlying C GObject.
|
|
const GtkShortcutTrigger * | gobj () const |
| Provides access to the underlying C GObject.
|
|
GtkShortcutTrigger * | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
Glib::ustring | to_string () const |
| Prints the given trigger into a human-readable string.
|
|
Glib::ustring | to_label (const Glib::RefPtr< const Gdk::Display > &display) const |
| Gets textual representation for the given trigger.
|
|
bool | equal (const Glib::RefPtr< const ShortcutTrigger > &trigger2) const |
| Checks if trigger1 and trigger2 trigger under the same conditions.
|
|
int | compare (const Glib::RefPtr< const ShortcutTrigger > &trigger2) const |
| The types of trigger1 and trigger2 are gconstpointer only to allow use of this function as a CompareFunc .
|
|
Gdk::KeyMatch | trigger (const Glib::RefPtr< const Gdk::Event > & event, bool enable_mnemonics) const |
| Checks if the given event triggers self.
|
|
| 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) |
|
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 |
|
Triggers to track if shortcuts should be activated.
Gtk::ShortcutTrigger is the object used to track if a Gtk::Shortcut should be activated. For this purpose, trigger() can be called on a Gdk::Event.
ShortcutTriggers contain methods that allow easy presentation to end users as well as being printed for debugging.
All ShortcutTriggers are immutable, you can only specify their properties during construction. If you want to change a trigger, you have to replace it with a new one.
- See also
- Gtk::Shortcut
- Since gtkmm 3.98:
Gets textual representation for the given trigger.
This function is returning a translated string for presentation to end users for example in menu items or in help texts.
The display in use may influence the resulting string in various forms, such as resolving hardware keycodes or by causing display-specific modifier names.
The form of the representation may change at any time and is not guaranteed to stay identical.
- Parameters
-
- Returns
- A new string.