About all my projects
Gnome::Gtk4::SignalAction

Gnome::Gtk4::SignalAction

Description

A Gnome::Gtk4::ShortcutAction 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.

Class initialization

new

:native-object

Create an object using a native object from elsewhere. See also Gnome::N::TopLevelSupportClass.

multi method new ( N-Object :$native-object! )

new-signalaction

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

It will also unpack the args into arguments passed to the signal.

method new-signalaction ( Str $signal-name --> Gnome::Gtk4::SignalAction \)
  • $signal-name; name of the signal to emit.

Methods

get-signal-name

Returns the name of the signal that will be emitted.

method get-signal-name (--> Str )

Return value; the name of the signal to emit.