Gnome::Gtk4::NamedAction
#------------------------------------------------------------------------------- #--[Class Description]---------------------------------------------------------- #-------------------------------------------------------------------------------
Description
A Gnome::Gtk4::ShortcutAction that activates an action by name.
Uml Diagram =for image :src<asset_files/images/plantuml/NamedAction.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-namedaction
Creates an action that when activated, activates the named action on the widget.
It also passes the given arguments to it.
See .insert-action-group() in class Widget for how to add actions to widgets.
method new-namedaction ( Str $name --> Gnome::Gtk4::NamedAction )
$name; the detailed name of the action.
#------------------------------------------------------------------------------- #--[Methods]-------------------------------------------------------------------- #-------------------------------------------------------------------------------
Methods
#-------------------------------------------------------------------------------
get-action-name
Returns the name of the action that will be activated.
method get-action-name (--> Str )
Return value; the name of the action to activate.