Class XrHandGestureQCOM.Buffer

All Implemented Interfaces:
AutoCloseable, Iterable<XrHandGestureQCOM>, NativeResource, Pointer
Enclosing class:
XrHandGestureQCOM

public static class XrHandGestureQCOM.Buffer extends StructBuffer<XrHandGestureQCOM, XrHandGestureQCOM.Buffer> implements NativeResource
An array of XrHandGestureQCOM structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new XrHandGestureQCOM.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by XrHandGestureQCOM.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • 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.Buffer gesture(@NativeType("XrHandGestureTypeQCOM") int value)
      Sets the specified value to the gesture field.
    • gestureRatio

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

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