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 _getGType() static nothrow
GType _gType() @property nothrow
ShortcutTrigger self() nothrowReturns `this`, for use in `with` statements.
ShortcutTriggerGidBuilder builder() static nothrowGet builder for [gtk.shortcut_trigger.ShortcutTrigger] Returns: New builder object
gtk.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.
uint hash() nothrowGenerates a hash value for a [gtk.shortcut_trigger.ShortcutTrigger].
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.
string toString_() nothrowPrints the given trigger into a human-readable string.
gdk.types.KeyMatch trigger(gdk.event.Event event, bool enableMnemonics) nothrowChecks if the given event triggers self.
Constructors
this(void * ptr, Flag!"Take" take)
Methods
ShortcutTrigger build() nothrowCreate object from builder. Returns: New object