AlternativeTrigger

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

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

Link copied to clipboard
constructor(first: ShortcutTrigger, second: ShortcutTrigger)

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

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The first GtkShortcutTrigger to check.

Link copied to clipboard
val gtkAlternativeTriggerPointer: <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

The second GtkShortcutTrigger to check.

Functions

Link copied to clipboard
open fun compare(trigger2: ShortcutTrigger): <Error class: unknown class>

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 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 override fun toString(): String

Prints the given trigger into a human-readable string.

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.