AlternativeTrigger

A gtk.shortcut_trigger.ShortcutTrigger that combines two triggers.

The gtk.alternative_trigger.AlternativeTrigger triggers when either of two trigger.

This can be cascaded to combine more than two triggers.

Constructors

this
this(gtk.shortcut_trigger.ShortcutTrigger first, gtk.shortcut_trigger.ShortcutTrigger second)

Creates a gtk.shortcut_trigger.ShortcutTrigger that will trigger whenever either of the two given triggers gets triggered.

Members

Functions

getFirst
gtk.shortcut_trigger.ShortcutTrigger getFirst()

Gets the first of the two alternative triggers that may trigger self.

getSecond
gtk.shortcut_trigger.ShortcutTrigger getSecond()

Gets the second of the two alternative triggers that may trigger 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.