NamedAction

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

A GtkShortcutAction that activates an action by name.

Constructors

Link copied to clipboard
constructor(name: String)

Creates an action that when activated, activates the named action on the widget.

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val actionName: String

The name of the action to activate.

Link copied to clipboard
val gtkNamedActionPointer: <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 getActionName(): String

Returns the name of the action that will be activated.

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

Prints the given action into a string for the developer.