Gnome::Gtk4::SignalAction
#------------------------------------------------------------------------------- #--[Class Description]---------------------------------------------------------- #-------------------------------------------------------------------------------
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.
Uml Diagram =for image :src<asset_files/images/plantuml/SignalAction.png> :width<70%> :class<inline>
#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------
Class initialization
new
:native-object
Create an object using a native object from an object of the same type found 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]-------------------------------------------------------------------- #-------------------------------------------------------------------------------
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.