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
GType _gType() @property
ShortcutTrigger self()Returns `this`, for use in `with` statements.
ShortcutTriggerGidBuilder builder()Get builder for [gtk.shortcut_trigger.ShortcutTrigger] Returns: New builder object
gtk.shortcut_trigger.ShortcutTrigger parseString(string string_)Tries to parse the given string into a trigger.
int compare(gtk.shortcut_trigger.ShortcutTrigger trigger2)The 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)Checks if trigger1 and trigger2 trigger under the same conditions.
uint hash()Generates a hash value for a [gtk.shortcut_trigger.ShortcutTrigger].
void print(glib.string_.String string_)Prints 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_)Prints the given trigger into a string.
string toLabel(gdk.display.Display display)Gets textual representation for the given trigger.
string toString_()Prints the given trigger into a human-readable string.
gdk.types.KeyMatch trigger(gdk.event.Event event, bool enableMnemonics)Checks if the given event triggers self.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [gtk.shortcut_trigger.ShortcutTrigger]