CallbackAction

open class CallbackAction(pointer: <Error class: unknown class><<Error class: unknown class>>) : ShortcutAction

A GtkShortcutAction that invokes a callback.

Constructors

Link copied to clipboard
constructor(callback: ShortcutFunc)

Create a custom action that calls the given @callback when activated.

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkCallbackActionPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkShortcutActionPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun activate(flags: ShortcutActionFlags, widget: Widget, args: <Error class: unknown class>? = null): Boolean

Activates the action on the @widget with the given @args.

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

Prints the given action into a string for the developer.

Link copied to clipboard
open override fun toString(): String

Prints the given action into a human-readable string.