Class XrActionStateBoolean

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrActionStateBoolean extends Struct<XrActionStateBoolean> implements NativeResource

 struct XrActionStateBoolean {
     XrStructureType type;
     void * next;
     XrBool32 currentState;
     XrBool32 changedSinceLastSync;
     XrTime lastChangeTime;
     XrBool32 isActive;
 }
  • 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.
    • CURRENTSTATE

      public static final int CURRENTSTATE
      The struct member offsets.
    • CHANGEDSINCELASTSYNC

      public static final int CHANGEDSINCELASTSYNC
      The struct member offsets.
    • LASTCHANGETIME

      public static final int LASTCHANGETIME
      The struct member offsets.
    • ISACTIVE

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

    • XrActionStateBoolean

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

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

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

      public boolean currentState()
      Returns:
      the value of the currentState field.
    • changedSinceLastSync

      public boolean changedSinceLastSync()
      Returns:
      the value of the changedSinceLastSync field.
    • lastChangeTime

      public long lastChangeTime()
      Returns:
      the value of the lastChangeTime field.
    • isActive

      public boolean isActive()
      Returns:
      the value of the isActive field.
    • type

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

      public XrActionStateBoolean type$Default()
      Sets the TYPE_ACTION_STATE_BOOLEAN value to the type field.
    • next

      public XrActionStateBoolean next(long value)
      Sets the specified value to the next field.
    • currentState

      public XrActionStateBoolean currentState(boolean value)
      Sets the specified value to the currentState field.
    • changedSinceLastSync

      public XrActionStateBoolean changedSinceLastSync(boolean value)
      Sets the specified value to the changedSinceLastSync field.
    • lastChangeTime

      public XrActionStateBoolean lastChangeTime(long value)
      Sets the specified value to the lastChangeTime field.
    • isActive

      public XrActionStateBoolean isActive(boolean value)
      Sets the specified value to the isActive field.
    • set

      public XrActionStateBoolean set(int type, long next, boolean currentState, boolean changedSinceLastSync, long lastChangeTime, boolean isActive)
      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 XrActionStateBoolean malloc()
      Returns a new XrActionStateBoolean instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int ncurrentState(long struct)
      Unsafe version of currentState().
    • nchangedSinceLastSync

      public static int nchangedSinceLastSync(long struct)
      Unsafe version of changedSinceLastSync().
    • nlastChangeTime

      public static long nlastChangeTime(long struct)
      Unsafe version of lastChangeTime().
    • nisActive

      public static int nisActive(long struct)
      Unsafe version of isActive().
    • 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.
    • ncurrentState

      public static void ncurrentState(long struct, int value)
      Unsafe version of currentState.
    • nchangedSinceLastSync

      public static void nchangedSinceLastSync(long struct, int value)
      Unsafe version of changedSinceLastSync.
    • nlastChangeTime

      public static void nlastChangeTime(long struct, long value)
      Unsafe version of lastChangeTime.
    • nisActive

      public static void nisActive(long struct, int value)
      Unsafe version of isActive.