ShortcutTrigger

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

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.

Skipped during bindings generation

  • method to_string: C function gtk_shortcut_trigger_to_string is ignored

Inheritors

Constructors

Link copied to clipboard
constructor(string: String)

Tries to parse the given string into a trigger.

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

Types

Link copied to clipboard
object Companion

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): 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 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.