ShortcutTrigger

abstract class ShortcutTrigger(val gtkShortcutTriggerPointer: <Error class: unknown class><<Error class: unknown class>>)(source)

GtkShortcutTrigger tracks how a GtkShortcut should be activated.

To find out if a GtkShortcutTrigger triggers, you can call method@Gtk.ShortcutTrigger.trigger on a GdkEvent.

GtkShortcutTriggers contain functions that allow easy presentation to end users as well as being printed for debugging.

All GtkShortcutTriggers are immutable, you can only specify their properties during construction. If you want to change a trigger, you have to replace it with a new one.

Inheritors

Constructors

Link copied to clipboard
constructor(string: String)

Tries to parse the given string into a trigger.

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

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class ShortcutTriggerImpl(pointer: <Error class: unknown class><<Error class: unknown class>>) : ShortcutTrigger

The ShortcutTriggerImpl type represents a native instance of the abstract ShortcutTrigger class.

Properties

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

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.