KeyvalTrigger

open class KeyvalTrigger(pointer: <Error class: unknown class><<Error class: unknown class>>) : ShortcutTrigger

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

Constructors

Link copied to clipboard
constructor(keyval: <Error class: unknown class>, modifiers: <Error class: unknown class>)

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

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkKeyvalTriggerPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkShortcutTriggerPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val keyval: <Error class: unknown class>

The key value for the trigger.

Link copied to clipboard
open val modifiers: <Error class: unknown class>

The key modifiers for the trigger.

Functions

Link copied to clipboard
open fun compare(trigger2: ShortcutTrigger): Int

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

Link copied to clipboard
open fun equal(trigger2: ShortcutTrigger): Boolean

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

Link copied to clipboard
open fun getKeyval(): <Error class: unknown class>

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

Link copied to clipboard
open fun getModifiers(): <Error class: unknown class>

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

Link copied to clipboard
open fun hash(): <Error class: unknown class>

Generates a hash value for a GtkShortcutTrigger.

Link copied to clipboard
open fun print(string: <Error class: unknown class>)

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

Link copied to clipboard
open fun printLabel(display: <Error class: unknown class>, string: <Error class: unknown class>): Boolean

Prints the given trigger into a string.

Link copied to clipboard
open fun toLabel(display: <Error class: unknown class>): String

Gets textual representation for the given trigger.

Link copied to clipboard
open fun trigger(event: <Error class: unknown class>, enableMnemonics: Boolean): <Error class: unknown class>

Checks if the given @event triggers @self.