Class XrActiveActionSet

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrActiveActionSet extends Struct<XrActiveActionSet> implements NativeResource

 struct XrActiveActionSet {
     XrActionSet actionSet;
     XrPath subactionPath;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int ACTIONSET
      The struct member offsets.
    • SUBACTIONPATH

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

    • XrActiveActionSet

      public XrActiveActionSet(ByteBuffer container)
      Creates a XrActiveActionSet 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<XrActiveActionSet>
    • actionSet

      public long actionSet()
      Returns:
      the value of the actionSet field.
    • subactionPath

      public long subactionPath()
      Returns:
      the value of the subactionPath field.
    • actionSet

      public XrActiveActionSet actionSet(XrActionSet value)
      Sets the specified value to the actionSet field.
    • subactionPath

      public XrActiveActionSet subactionPath(long value)
      Sets the specified value to the subactionPath field.
    • set

      public XrActiveActionSet set(XrActionSet actionSet, long subactionPath)
      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 XrActiveActionSet malloc()
      Returns a new XrActiveActionSet instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

      public static XrActiveActionSet.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XrActiveActionSet.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
    • nactionSet

      public static long nactionSet(long struct)
      Unsafe version of actionSet().
    • nsubactionPath

      public static long nsubactionPath(long struct)
      Unsafe version of subactionPath().
    • nactionSet

      public static void nactionSet(long struct, XrActionSet value)
      Unsafe version of actionSet.
    • nsubactionPath

      public static void nsubactionPath(long struct, long value)
      Unsafe version of subactionPath.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate