Class XrEyeGazeFB

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrEyeGazeFB extends Struct<XrEyeGazeFB> implements NativeResource

 struct XrEyeGazeFB {
     XrBool32 isValid;
     {@link XrPosef XrPosef} gazePose;
     float gazeConfidence;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int ISVALID
      The struct member offsets.
    • GAZEPOSE

      public static final int GAZEPOSE
      The struct member offsets.
    • GAZECONFIDENCE

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

    • XrEyeGazeFB

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

      public boolean isValid()
      Returns:
      the value of the isValid field.
    • gazePose

      public XrPosef gazePose()
      Returns:
      a XrPosef view of the gazePose field.
    • gazeConfidence

      public float gazeConfidence()
      Returns:
      the value of the gazeConfidence field.
    • isValid

      public XrEyeGazeFB isValid(boolean value)
      Sets the specified value to the isValid field.
    • gazePose

      public XrEyeGazeFB gazePose(XrPosef value)
      Copies the specified XrPosef to the gazePose field.
    • gazePose

      public XrEyeGazeFB gazePose(Consumer<XrPosef> consumer)
      Passes the gazePose field to the specified Consumer.
    • gazeConfidence

      public XrEyeGazeFB gazeConfidence(float value)
      Sets the specified value to the gazeConfidence field.
    • set

      public XrEyeGazeFB set(boolean isValid, XrPosef gazePose, float gazeConfidence)
      Initializes this struct with the specified values.
    • set

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int nisValid(long struct)
      Unsafe version of isValid().
    • ngazePose

      public static XrPosef ngazePose(long struct)
      Unsafe version of gazePose().
    • ngazeConfidence

      public static float ngazeConfidence(long struct)
      Unsafe version of gazeConfidence().
    • nisValid

      public static void nisValid(long struct, int value)
      Unsafe version of isValid.
    • ngazePose

      public static void ngazePose(long struct, XrPosef value)
      Unsafe version of gazePose.
    • ngazeConfidence

      public static void ngazeConfidence(long struct, float value)
      Unsafe version of gazeConfidence.