gtk.shortcut_trigger
Module for [ShortcutTrigger] class
Types 3
gtk.shortcut_trigger.ShortcutTrigger tracks how a gtk.shortcut.Shortcut should be activated.
To find out if a gtk.shortcut_trigger.ShortcutTrigger triggers, you can call gtk.shortcut_trigger.ShortcutTrigger.trigger on a gdk.event.Event.
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.
Methods
ShortcutTriggerGidBuilder builder() static nothrowGet builder for [gtk.shortcut_trigger.ShortcutTrigger] Returns: New builder objectgtk.shortcut_trigger.ShortcutTrigger parseString(string string_) static nothrowTries to parse the given string into a trigger.int compare(gtk.shortcut_trigger.ShortcutTrigger trigger2) nothrowThe types of trigger1 and trigger2 are `gconstpointer` only to allow use of this function as a [glib.types.CompareFunc].bool equal(gtk.shortcut_trigger.ShortcutTrigger trigger2) nothrowChecks if trigger1 and trigger2 trigger under the same conditions.void print(glib.string_.String string_) nothrowPrints the given trigger into a string for the developer. This is meant for debugging and logging.bool printLabel(gdk.display.Display display, glib.string_.String string_) nothrowPrints the given trigger into a string.string toLabel(gdk.display.Display display) nothrowGets textual representation for the given trigger.gdk.types.KeyMatch trigger(gdk.event.Event event, bool enableMnemonics) nothrowChecks if the given event triggers self.Fluent builder implementation template for gtk.shortcut_trigger.ShortcutTrigger
Fluent builder for gtk.shortcut_trigger.ShortcutTrigger
Methods