Class XrActionCreateInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrActionCreateInfo extends Struct<XrActionCreateInfo> implements NativeResource

 struct XrActionCreateInfo {
     XrStructureType type;
     void const * next;
     char actionName[XR_MAX_ACTION_NAME_SIZE];
     XrActionType actionType;
     uint32_t countSubactionPaths;
     XrPath const * subactionPaths;
     char localizedActionName[XR_MAX_LOCALIZED_ACTION_NAME_SIZE];
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • ACTIONNAME

      public static final int ACTIONNAME
      The struct member offsets.
    • ACTIONTYPE

      public static final int ACTIONTYPE
      The struct member offsets.
    • COUNTSUBACTIONPATHS

      public static final int COUNTSUBACTIONPATHS
      The struct member offsets.
    • SUBACTIONPATHS

      public static final int SUBACTIONPATHS
      The struct member offsets.
    • LOCALIZEDACTIONNAME

      public static final int LOCALIZEDACTIONNAME
      The struct member offsets.
  • Constructor Details

    • XrActionCreateInfo

      public XrActionCreateInfo(ByteBuffer container)
      Creates a XrActionCreateInfo instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<XrActionCreateInfo>
    • type

      public int type()
      Returns:
      the value of the type field.
    • next

      public long next()
      Returns:
      the value of the next field.
    • actionName

      public ByteBuffer actionName()
      Returns:
      a ByteBuffer view of the actionName field.
    • actionNameString

      public String actionNameString()
      Returns:
      the null-terminated string stored in the actionName field.
    • actionType

      public int actionType()
      Returns:
      the value of the actionType field.
    • countSubactionPaths

      public int countSubactionPaths()
      Returns:
      the value of the countSubactionPaths field.
    • subactionPaths

      public @Nullable LongBuffer subactionPaths()
      Returns:
      a LongBuffer view of the data pointed to by the subactionPaths field.
    • localizedActionName

      public ByteBuffer localizedActionName()
      Returns:
      a ByteBuffer view of the localizedActionName field.
    • localizedActionNameString

      public String localizedActionNameString()
      Returns:
      the null-terminated string stored in the localizedActionName field.
    • type

      public XrActionCreateInfo type(int value)
      Sets the specified value to the type field.
    • type$Default

      public XrActionCreateInfo type$Default()
      Sets the TYPE_ACTION_CREATE_INFO value to the type field.
    • next

      public XrActionCreateInfo next(long value)
      Sets the specified value to the next field.
    • actionName

      public XrActionCreateInfo actionName(ByteBuffer value)
      Copies the specified encoded string to the actionName field.
    • actionType

      public XrActionCreateInfo actionType(int value)
      Sets the specified value to the actionType field.
    • countSubactionPaths

      public XrActionCreateInfo countSubactionPaths(int value)
      Sets the specified value to the countSubactionPaths field.
    • subactionPaths

      public XrActionCreateInfo subactionPaths(@Nullable LongBuffer value)
      Sets the address of the specified LongBuffer to the subactionPaths field.
    • localizedActionName

      public XrActionCreateInfo localizedActionName(ByteBuffer value)
      Copies the specified encoded string to the localizedActionName field.
    • set

      public XrActionCreateInfo set(int type, long next, ByteBuffer actionName, int actionType, int countSubactionPaths, @Nullable LongBuffer subactionPaths, ByteBuffer localizedActionName)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static XrActionCreateInfo malloc()
      Returns a new XrActionCreateInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static XrActionCreateInfo calloc()
      Returns a new XrActionCreateInfo instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static XrActionCreateInfo create()
      Returns a new XrActionCreateInfo instance allocated with BufferUtils.
    • create

      public static XrActionCreateInfo create(long address)
      Returns a new XrActionCreateInfo instance for the specified memory address.
    • createSafe

      public static @Nullable XrActionCreateInfo createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrActionCreateInfo.Buffer malloc(int capacity)
      Returns a new XrActionCreateInfo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static XrActionCreateInfo.Buffer calloc(int capacity)
      Returns a new XrActionCreateInfo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrActionCreateInfo.Buffer create(int capacity)
      Returns a new XrActionCreateInfo.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static XrActionCreateInfo.Buffer create(long address, int capacity)
      Create a XrActionCreateInfo.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable XrActionCreateInfo.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static XrActionCreateInfo malloc(MemoryStack stack)
      Returns a new XrActionCreateInfo instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static XrActionCreateInfo calloc(MemoryStack stack)
      Returns a new XrActionCreateInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static XrActionCreateInfo.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new XrActionCreateInfo.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static XrActionCreateInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XrActionCreateInfo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • ntype

      public static int ntype(long struct)
      Unsafe version of type().
    • nnext

      public static long nnext(long struct)
      Unsafe version of next().
    • nactionName

      public static ByteBuffer nactionName(long struct)
      Unsafe version of actionName().
    • nactionNameString

      public static String nactionNameString(long struct)
      Unsafe version of actionNameString().
    • nactionType

      public static int nactionType(long struct)
      Unsafe version of actionType().
    • ncountSubactionPaths

      public static int ncountSubactionPaths(long struct)
      Unsafe version of countSubactionPaths().
    • nsubactionPaths

      public static @Nullable LongBuffer nsubactionPaths(long struct)
      Unsafe version of subactionPaths.
    • nlocalizedActionName

      public static ByteBuffer nlocalizedActionName(long struct)
      Unsafe version of localizedActionName().
    • nlocalizedActionNameString

      public static String nlocalizedActionNameString(long struct)
      Unsafe version of localizedActionNameString().
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nnext

      public static void nnext(long struct, long value)
      Unsafe version of next.
    • nactionName

      public static void nactionName(long struct, ByteBuffer value)
      Unsafe version of actionName.
    • nactionType

      public static void nactionType(long struct, int value)
      Unsafe version of actionType.
    • ncountSubactionPaths

      public static void ncountSubactionPaths(long struct, int value)
      Sets the specified value to the countSubactionPaths field of the specified struct.
    • nsubactionPaths

      public static void nsubactionPaths(long struct, @Nullable LongBuffer value)
      Unsafe version of subactionPaths.
    • nlocalizedActionName

      public static void nlocalizedActionName(long struct, ByteBuffer value)
      Unsafe version of localizedActionName.