Class XrHandGestureQCOM

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrHandGestureQCOM extends Struct<XrHandGestureQCOM> implements NativeResource
struct XrHandGestureQCOM {
    XrHandGestureTypeQCOM gesture;
    float gestureRatio;
    float flipRatio;
}
  • Field Details

    • SIZEOF

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

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

      public static final int GESTURE
      The struct member offsets.
    • GESTURERATIO

      public static final int GESTURERATIO
      The struct member offsets.
    • FLIPRATIO

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

    • XrHandGestureQCOM

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

      @NativeType("XrHandGestureTypeQCOM") public int gesture()
      Returns:
      the value of the gesture field.
    • gestureRatio

      public float gestureRatio()
      Returns:
      the value of the gestureRatio field.
    • flipRatio

      public float flipRatio()
      Returns:
      the value of the flipRatio field.
    • gesture

      public XrHandGestureQCOM gesture(@NativeType("XrHandGestureTypeQCOM") int value)
      Sets the specified value to the gesture field.
    • gestureRatio

      public XrHandGestureQCOM gestureRatio(float value)
      Sets the specified value to the gestureRatio field.
    • flipRatio

      public XrHandGestureQCOM flipRatio(float value)
      Sets the specified value to the flipRatio field.
    • set

      public XrHandGestureQCOM set(int gesture, float gestureRatio, float flipRatio)
      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 XrHandGestureQCOM malloc()
      Returns a new XrHandGestureQCOM instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static int ngesture(long struct)
      Unsafe version of gesture().
    • ngestureRatio

      public static float ngestureRatio(long struct)
      Unsafe version of gestureRatio().
    • nflipRatio

      public static float nflipRatio(long struct)
      Unsafe version of flipRatio().
    • ngesture

      public static void ngesture(long struct, int value)
      Unsafe version of gesture.
    • ngestureRatio

      public static void ngestureRatio(long struct, float value)
      Unsafe version of gestureRatio.
    • nflipRatio

      public static void nflipRatio(long struct, float value)
      Unsafe version of flipRatio.