Class XrEyesANDROID

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrEyesANDROID extends Struct<XrEyesANDROID> implements NativeResource
struct XrEyesANDROID {
    XrStructureType type;
    void * next;
    XrEyeANDROID eyes[XR_EYE_MAX_ANDROID];
    XrEyeTrackingModeANDROID mode;
}
  • 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.
    • EYES

      public static final int EYES
      The struct member offsets.
    • MODE

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

    • XrEyesANDROID

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

      @NativeType("XrStructureType") public int type()
      Returns:
      the value of the type field.
    • next

      @NativeType("void *") public long next()
      Returns:
      the value of the next field.
    • eyes

      @NativeType("XrEyeANDROID[XR_EYE_MAX_ANDROID]") public XrEyeANDROID.Buffer eyes()
      Returns:
      a XrEyeANDROID.Buffer view of the eyes field.
    • eyes

      public XrEyeANDROID eyes(int index)
      Returns:
      a XrEyeANDROID view of the struct at the specified index of the eyes field.
    • mode

      @NativeType("XrEyeTrackingModeANDROID") public int mode()
      Returns:
      the value of the mode field.
    • type

      public XrEyesANDROID type(@NativeType("XrStructureType") int value)
      Sets the specified value to the type field.
    • type$Default

      public XrEyesANDROID type$Default()
      Sets the TYPE_EYES_ANDROID value to the type field.
    • next

      public XrEyesANDROID next(@NativeType("void *") long value)
      Sets the specified value to the next field.
    • eyes

      public XrEyesANDROID eyes(@NativeType("XrEyeANDROID[XR_EYE_MAX_ANDROID]") XrEyeANDROID.Buffer value)
      Copies the specified XrEyeANDROID.Buffer to the eyes field.
    • eyes

      public XrEyesANDROID eyes(int index, XrEyeANDROID value)
      Copies the specified XrEyeANDROID at the specified index of the eyes field.
    • eyes

      public XrEyesANDROID eyes(Consumer<XrEyeANDROID.Buffer> consumer)
      Passes the eyes field to the specified Consumer.
    • eyes

      public XrEyesANDROID eyes(int index, Consumer<XrEyeANDROID> consumer)
      Passes the element at index of the eyes field to the specified Consumer.
    • mode

      public XrEyesANDROID mode(@NativeType("XrEyeTrackingModeANDROID") int value)
      Sets the specified value to the mode field.
    • set

      public XrEyesANDROID set(int type, long next, XrEyeANDROID.Buffer eyes, int mode)
      Initializes this struct with the specified values.
    • set

      public XrEyesANDROID set(XrEyesANDROID src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static XrEyeANDROID.Buffer neyes(long struct)
      Unsafe version of eyes().
    • neyes

      public static XrEyeANDROID neyes(long struct, int index)
      Unsafe version of eyes.
    • nmode

      public static int nmode(long struct)
      Unsafe version of mode().
    • 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.
    • neyes

      public static void neyes(long struct, XrEyeANDROID.Buffer value)
      Unsafe version of eyes.
    • neyes

      public static void neyes(long struct, int index, XrEyeANDROID value)
      Unsafe version of eyes.
    • nmode

      public static void nmode(long struct, int value)
      Unsafe version of mode.