KeyvalTrigger

A GtkShortcutTrigger that triggers when a specific keyval and modifiers are pressed.

Constructors

this
this(GtkKeyvalTrigger* gtkKeyvalTrigger, bool ownedRef)

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

this
this(uint keyval, GdkModifierType modifiers)

Creates a GtkShortcutTrigger that will trigger whenever the key with the given @keyval and @modifiers is pressed.

Members

Functions

getKeyval
uint getKeyval()

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

getKeyvalTriggerStruct
GtkKeyvalTrigger* getKeyvalTriggerStruct(bool transferOwnership)

Get the main Gtk struct

getModifiers
GdkModifierType getModifiers()

Gets the modifiers that must be present to succeed triggering @self.

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gtkKeyvalTrigger
GtkKeyvalTrigger* gtkKeyvalTrigger;

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