Class NamedAction

All Implemented Interfaces:
PointerInterface

public class NamedAction extends ShortcutAction
A `GtkShortcutAction` that activates an action by name.

https://docs.gtk.org/gtk4/class.NamedAction.html

  • Constructor Details

    • NamedAction

      public NamedAction(PointerContainer pointer)
    • NamedAction

      public NamedAction(@Nonnull Str name)
      Creates an action that when activated, activates
      the named action on the widget.

      It also passes the given arguments to it.

      See [method@Gtk.Widget.insert_action_group] for
      how to add actions to widgets.
      Parameters:
      name - the detailed name of the action
    • NamedAction

      public NamedAction(String name)
      Creates an action that when activated, activates
      the named action on the widget.

      It also passes the given arguments to it.

      See [method@Gtk.Widget.insert_action_group] for
      how to add actions to widgets.
      Parameters:
      name - the detailed name of the action
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getActionName

      public Str getActionName()
      Returns the name of the action that will be activated.
      Returns:
      the name of the action to activate
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()