Class

Gtk.ShortcutTrigger

Description [src]

abstract class Gtk.ShortcutTrigger : GObject.Object {
  /* No available fields */
}

GtkShortcutTrigger is the object used to track if a GtkShortcut should be activated. For this purpose, gtk_shortcut_trigger_trigger() can be called on a GdkEvent.

GtkShortcutTriggers contain functions that allow easy presentation to end users as well as being printed for debugging.

All GtkShortcutTriggers 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.

Ancestors

  • GObject

Constructors

gtk_shortcut_trigger_parse_string

Tries to parse the given string into a trigger. On success, the parsed trigger is returned. When parsing failed, NULL is returned.

Instance methods

gtk_shortcut_trigger_compare

The types of trigger1 and trigger2 are #gconstpointer only to allow use of this function as a GCompareFunc. They must each be a GtkShortcutTrigger.

gtk_shortcut_trigger_equal

Checks if trigger1 and trigger2 trigger under the same conditions.

gtk_shortcut_trigger_hash

Generates a hash value for a GtkShortcutTrigger.

gtk_shortcut_trigger_print

Prints the given trigger into a string for the developer. This is meant for debugging and logging.

gtk_shortcut_trigger_print_label

Prints the given trigger into a string. This function is returning a translated string for presentation to end users for example in menu items or in help texts.

gtk_shortcut_trigger_to_label

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.

gtk_shortcut_trigger_to_string

Prints the given trigger into a human-readable string. This is a small wrapper around gtk_shortcut_trigger_print() to help when debugging.

gtk_shortcut_trigger_trigger

Checks if the given event triggers self.

Class structure

struct GtkShortcutTriggerClass {
  /* no available fields */
}