Class XrEyeGazesFB

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrEyeGazesFB extends Struct<XrEyeGazesFB> implements NativeResource

 struct XrEyeGazesFB {
     XrStructureType type;
     void * next;
     {@link XrEyeGazeFB XrEyeGazeFB} gaze[XR_EYE_POSITION_COUNT_FB];
     XrTime time;
 }
  • 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.
    • GAZE

      public static final int GAZE
      The struct member offsets.
    • TIME

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

    • XrEyeGazesFB

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

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

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

      public XrEyeGazeFB.Buffer gaze()
      Returns:
      a XrEyeGazeFB.Buffer view of the gaze field.
    • gaze

      public XrEyeGazeFB gaze(int index)
      Returns:
      a XrEyeGazeFB view of the struct at the specified index of the gaze field.
    • time

      public long time()
      Returns:
      the value of the time field.
    • type

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

      public XrEyeGazesFB type$Default()
      Sets the TYPE_EYE_GAZES_FB value to the type field.
    • next

      public XrEyeGazesFB next(long value)
      Sets the specified value to the next field.
    • gaze

      public XrEyeGazesFB gaze(XrEyeGazeFB.Buffer value)
      Copies the specified XrEyeGazeFB.Buffer to the gaze field.
    • gaze

      public XrEyeGazesFB gaze(int index, XrEyeGazeFB value)
      Copies the specified XrEyeGazeFB at the specified index of the gaze field.
    • gaze

      public XrEyeGazesFB gaze(Consumer<XrEyeGazeFB.Buffer> consumer)
      Passes the gaze field to the specified Consumer.
    • gaze

      public XrEyeGazesFB gaze(int index, Consumer<XrEyeGazeFB> consumer)
      Passes the element at index of the gaze field to the specified Consumer.
    • time

      public XrEyeGazesFB time(long value)
      Sets the specified value to the time field.
    • set

      public XrEyeGazesFB set(int type, long next, XrEyeGazeFB.Buffer gaze, long time)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static XrEyeGazeFB.Buffer ngaze(long struct)
      Unsafe version of gaze().
    • ngaze

      public static XrEyeGazeFB ngaze(long struct, int index)
      Unsafe version of gaze.
    • ntime

      public static long ntime(long struct)
      Unsafe version of time().
    • 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.
    • ngaze

      public static void ngaze(long struct, XrEyeGazeFB.Buffer value)
      Unsafe version of gaze.
    • ngaze

      public static void ngaze(long struct, int index, XrEyeGazeFB value)
      Unsafe version of gaze.
    • ntime

      public static void ntime(long struct, long value)
      Unsafe version of time.