Gnome::Gtk4::NamedAction
Description
A Gnome::Gtk4::ShortcutAction that activates an action by name.
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-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 Gnome::Gtk4::Widget
for how to add actions to widgets.
method new-namedaction ( Str $name --> Gnome::Gtk4::NamedAction \)
$name; the detailed name of the action.
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.