Class PadActionEntry

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtk.PadActionEntry
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class PadActionEntry extends ProxyInstance
Struct defining a pad action entry.
  • Constructor Details

    • PadActionEntry

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

      public PadActionEntry(Arena arena)
      Allocate a new PadActionEntry.
      Parameters:
      arena - to control the memory allocation scope
    • PadActionEntry

      public PadActionEntry()
      Allocate a new PadActionEntry. The memory is allocated with Arena.ofAuto().
    • PadActionEntry

      public PadActionEntry(PadActionType type, int index, int mode, String label, String actionName, Arena arena)
      Allocate a new PadActionEntry with the fields set to the provided values.
      Parameters:
      type - value for the field type
      index - value for the field index
      mode - value for the field mode
      label - value for the field label
      actionName - value for the field actionName
      arena - to control the memory allocation scope
    • PadActionEntry

      public PadActionEntry(PadActionType type, int index, int mode, String label, String actionName)
      Allocate a new PadActionEntry with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      type - value for the field type
      index - value for the field index
      mode - value for the field mode
      label - value for the field label
      actionName - value for the field actionName
  • Method Details

    • getMemoryLayout

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

      public PadActionType readType()
      Read the value of the field type.
      Returns:
      The value of the field type
    • writeType

      public void writeType(PadActionType type)
      Write a value in the field type.
      Parameters:
      type - The new value for the field type
    • readIndex

      public int readIndex()
      Read the value of the field index.
      Returns:
      The value of the field index
    • writeIndex

      public void writeIndex(int index)
      Write a value in the field index.
      Parameters:
      index - The new value for the field index
    • readMode

      public int readMode()
      Read the value of the field mode.
      Returns:
      The value of the field mode
    • writeMode

      public void writeMode(int mode)
      Write a value in the field mode.
      Parameters:
      mode - The new value for the field mode
    • readLabel

      public String readLabel()
      Read the value of the field label.
      Returns:
      The value of the field label
    • writeLabel

      public void writeLabel(String label, Arena _arena)
      Write a value in the field label.
      Parameters:
      label - The new value for the field label
      _arena - to control the memory allocation scope
    • readActionName

      public String readActionName()
      Read the value of the field action_name.
      Returns:
      The value of the field action_name
    • writeActionName

      public void writeActionName(String actionName, Arena _arena)
      Write a value in the field action_name.
      Parameters:
      actionName - The new value for the field action_name
      _arena - to control the memory allocation scope