SignalAction

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

A GtkShortcutAction that emits a signal.

Signals that are used in this way are referred to as keybinding signals, and they are expected to be defined with the %G_SIGNAL_ACTION flag.

Constructors

Link copied to clipboard
constructor(signalName: String)

Creates an action that when activated, emits the given action signal on the provided widget.

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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gtkShortcutActionPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkSignalActionPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val signalName: String

The name of the signal to emit.

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 getSignalName(): String

Returns the name of the signal that will be emitted.

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

Prints the given action into a string for the developer.