Klasse ActionMap

Alle implementierten Schnittstellen:
PointerInterface

public class ActionMap extends Interface
`GActionMap` is an interface for action containers.

The `GActionMap` interface is implemented by [iface@Gio.ActionGroup]
implementations that operate by containing a number of named
[iface@Gio.Action] instances, such as [class@Gio.SimpleActionGroup].

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

  • Konstruktordetails

  • Methodendetails

    • 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.
      Parameter:
      action - a [iface@Gio.Action]
    • 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`.
      Parameter:
      action_name - the name of an action
      Gibt zurück:
      a [iface@Gio.Action]
    • 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`.
      Parameter:
      action_name - the name of an action
      Gibt zurück:
      a [iface@Gio.Action]
    • 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.
      Parameter:
      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.
      Parameter:
      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()