Class ActionMap

All Implemented Interfaces:
PointerInterface

public class ActionMap extends Interface
The GActionMap interface is implemented by #GActionGroup
implementations that operate by containing a number of
named #GAction instances, such as #GSimpleActionGroup.

One useful application of this interface is to map the
names of actions from various action groups to unique,
prefixed names (e.g. by prepending "app." or "win.").
This is the motivation for the 'Map' part of the interface
name.

https://docs.gtk.org/gio/iface.ActionMap.html

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • addAction

      public void addAction(@Nonnull Action action)
      Adds an action to the @action_map.

      If the action map already contains an action with the same name
      as @action then the old action is dropped from the action map.

      The action map takes its own reference on @action.
      Parameters:
      action - a #GAction
    • lookupAction

      public Action lookupAction(@Nonnull Str action_name)
      Looks up the action with the name @action_name in @action_map.

      If no such action exists, returns %NULL.
      Parameters:
      action_name - the name of an action
      Returns:
      a #GAction, or %NULL
    • lookupAction

      public Action lookupAction(String action_name)
      Looks up the action with the name @action_name in @action_map.

      If no such action exists, returns %NULL.
      Parameters:
      action_name - the name of an action
      Returns:
      a #GAction, or %NULL
    • removeAction

      public void removeAction(@Nonnull Str action_name)
      Removes the named action from the action map.

      If no action of this name is in the map then nothing happens.
      Parameters:
      action_name - the name of the action
    • removeAction

      public void removeAction(String action_name)
      Removes the named action from the action map.

      If no action of this name is in the map then nothing happens.
      Parameters:
      action_name - the name of the action
    • 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()