Class SimpleActionGroup

All Implemented Interfaces:
ActionGroup, ActionMap, Proxy

@Generated("org.javagi.JavaGI") public class SimpleActionGroup extends GObject implements ActionGroup, ActionMap
GSimpleActionGroup is a hash table filled with Action objects, implementing the ActionGroup and ActionMap interfaces.
Since:
2.28
  • Constructor Details

    • SimpleActionGroup

      public SimpleActionGroup(MemorySegment address)
      Create a SimpleActionGroup instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • SimpleActionGroup

      public SimpleActionGroup()
      Create a new SimpleActionGroup.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the SimpleActionGroup class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected SimpleActionGroup asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class GObject
      Returns:
      the instance as if it were its parent type
    • addEntries

      @Deprecated public void addEntries(@Nullable ActionEntry @Nullable [] entries, @Nullable MemorySegment userData)
      Deprecated.
      Use g_action_map_add_action_entries()
      A convenience function for creating multiple GSimpleAction instances and adding them to the action group.
      Parameters:
      entries - a pointer to the first item in an array of GActionEntry structs
      userData - the user data for signal connections
      Since:
      2.30
    • insert

      @Deprecated public void insert(Action action)
      Deprecated.
      Use g_action_map_add_action()

      Adds an action to the action group.

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

      The action group takes its own reference on action.

      Parameters:
      action - a GAction
      Since:
      2.28
    • lookup

      @Deprecated public Action lookup(String actionName)
      Deprecated.
      Use g_action_map_lookup_action()

      Looks up the action with the name actionName in the group.

      If no such action exists, returns null.

      Parameters:
      actionName - the name of an action
      Returns:
      a GAction, or null
      Since:
      2.28
    • remove

      @Deprecated public void remove(String actionName)
      Deprecated.
      Use g_action_map_remove_action()

      Removes the named action from the action group.

      If no action of this name is in the group then nothing happens.

      Parameters:
      actionName - the name of the action
      Since:
      2.28
    • builder

      public static SimpleActionGroup.Builder<? extends SimpleActionGroup.Builder> builder()
      A SimpleActionGroup.Builder object constructs a SimpleActionGroup with the specified properties. Use the various set...() methods to set properties, and finish construction with SimpleActionGroup.Builder.build().
      Returns:
      the builder object