MnemonicTrigger

A gtk.shortcut_trigger.ShortcutTrigger that triggers when a specific mnemonic is pressed.

Mnemonics require a *mnemonic modifier* (typically <kbd>Alt</kbd>) to be pressed together with the mnemonic key.

Constructors

this
this(uint keyval)

Creates a gtk.shortcut_trigger.ShortcutTrigger that will trigger whenever the key with the given keyval is pressed and mnemonics have been activated.

Members

Functions

getKeyval
uint getKeyval()

Gets the keyval that must be pressed to succeed triggering self.

Inherited Members

From ShortcutTrigger

parseString
gtk.shortcut_trigger.ShortcutTrigger parseString(string string_)

Tries to parse the given string into a trigger.

compare
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.

equal
bool equal(gtk.shortcut_trigger.ShortcutTrigger trigger2)

Checks if trigger1 and trigger2 trigger under the same conditions.

hash
uint hash()

Generates a hash value for a gtk.shortcut_trigger.ShortcutTrigger.

print
void print(glib.string_.String string_)

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

printLabel
bool printLabel(gdk.display.Display display, glib.string_.String string_)

Prints the given trigger into a string.

toLabel
string toLabel(gdk.display.Display display)

Gets textual representation for the given trigger.

toString_
string toString_()

Prints the given trigger into a human-readable string.

trigger
gdk.types.KeyMatch trigger(gdk.event.Event event, bool enableMnemonics)

Checks if the given event triggers self.