AlternativeTrigger

A GtkShortcutTrigger that combines two triggers.

The GtkAlternativeTrigger triggers when either of two trigger.

This can be cascaded to combine more than two triggers.

Constructors

this
this(GtkAlternativeTrigger* gtkAlternativeTrigger, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(ShortcutTrigger first, ShortcutTrigger second)

Creates a GtkShortcutTrigger that will trigger whenever either of the two given triggers gets triggered.

Members

Functions

getAlternativeTriggerStruct
GtkAlternativeTrigger* getAlternativeTriggerStruct(bool transferOwnership)

Get the main Gtk struct

getFirst
ShortcutTrigger getFirst()

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

getSecond
ShortcutTrigger getSecond()

Gets the second of the two alternative triggers that may trigger @self.

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gtkAlternativeTrigger
GtkAlternativeTrigger* gtkAlternativeTrigger;

the main Gtk struct

Inherited Members

From ShortcutTrigger

gtkShortcutTrigger
GtkShortcutTrigger* gtkShortcutTrigger;

the main Gtk struct

getShortcutTriggerStruct
GtkShortcutTrigger* getShortcutTriggerStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
compare
int compare(ShortcutTrigger trigger2)

The types of @trigger1 and @trigger2 are #gconstpointer only to allow use of this function as a #GCompareFunc.

equal
bool equal(ShortcutTrigger trigger2)

Checks if @trigger1 and @trigger2 trigger under the same conditions.

hash
uint hash()

Generates a hash value for a GtkShortcutTrigger.

print
void print(StringG string_)

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

printLabel
bool printLabel(Display display, StringG string_)

Prints the given trigger into a string.

toLabel
string toLabel(Display display)

Gets textual representation for the given trigger.

toString
string toString()

Prints the given trigger into a human-readable string.

trigger
GdkKeyMatch trigger(Event event, bool enableMnemonics)

Checks if the given @event triggers @self.

Meta