Class XrHandGestureQCOM
- All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer
struct XrHandGestureQCOM {
XrHandGestureTypeQCOM gesture;
float gestureRatio;
float flipRatio;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Struct
Struct.StructValidationNested classes/interfaces inherited from interface Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrHandGestureQCOM(ByteBuffer container) Creates aXrHandGestureQCOMinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrHandGestureQCOMcalloc()Returns a newXrHandGestureQCOMinstance allocated withmemCalloc.static XrHandGestureQCOM.Buffercalloc(int capacity) Returns a newXrHandGestureQCOM.Bufferinstance allocated withmemCalloc.static XrHandGestureQCOM.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrHandGestureQCOM.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandGestureQCOMcalloc(MemoryStack stack) Returns a newXrHandGestureQCOMinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrHandGestureQCOMcreate()Returns a newXrHandGestureQCOMinstance allocated withBufferUtils.static XrHandGestureQCOM.Buffercreate(int capacity) Returns a newXrHandGestureQCOM.Bufferinstance allocated withBufferUtils.static XrHandGestureQCOMcreate(long address) Returns a newXrHandGestureQCOMinstance for the specified memory address.static XrHandGestureQCOM.Buffercreate(long address, int capacity) Create aXrHandGestureQCOM.Bufferinstance at the specified memory.static @Nullable XrHandGestureQCOMcreateSafe(long address) static @Nullable XrHandGestureQCOM.BuffercreateSafe(long address, int capacity) floatflipRatio(float value) Sets the specified value to theflipRatiofield.intgesture()gesture(int value) Sets the specified value to thegesturefield.floatgestureRatio(float value) Sets the specified value to thegestureRatiofield.static XrHandGestureQCOMmalloc()Returns a newXrHandGestureQCOMinstance allocated withmemAlloc.static XrHandGestureQCOM.Buffermalloc(int capacity) Returns a newXrHandGestureQCOM.Bufferinstance allocated withmemAlloc.static XrHandGestureQCOM.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrHandGestureQCOM.Bufferinstance allocated on the specifiedMemoryStack.static XrHandGestureQCOMmalloc(MemoryStack stack) Returns a newXrHandGestureQCOMinstance allocated on the specifiedMemoryStack.static floatnflipRatio(long struct) Unsafe version offlipRatio().static voidnflipRatio(long struct, float value) Unsafe version offlipRatio.static intngesture(long struct) Unsafe version ofgesture().static voidngesture(long struct, int value) Unsafe version ofgesture.static floatngestureRatio(long struct) Unsafe version ofgestureRatio().static voidngestureRatio(long struct, float value) Unsafe version ofgestureRatio.set(int gesture, float gestureRatio, float flipRatio) Initializes this struct with the specified values.set(XrHandGestureQCOM src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).Methods inherited from class Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
GESTURE
public static final int GESTUREThe struct member offsets. -
GESTURERATIO
public static final int GESTURERATIOThe struct member offsets. -
FLIPRATIO
public static final int FLIPRATIOThe struct member offsets.
-
-
Constructor Details
-
XrHandGestureQCOM
Creates aXrHandGestureQCOMinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<XrHandGestureQCOM>
-
gesture
- Returns:
- the value of the
gesturefield.
-
gestureRatio
public float gestureRatio()- Returns:
- the value of the
gestureRatiofield.
-
flipRatio
public float flipRatio()- Returns:
- the value of the
flipRatiofield.
-
gesture
Sets the specified value to thegesturefield. -
gestureRatio
Sets the specified value to thegestureRatiofield. -
flipRatio
Sets the specified value to theflipRatiofield. -
set
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
Returns a newXrHandGestureQCOMinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrHandGestureQCOMinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrHandGestureQCOMinstance allocated withBufferUtils. -
create
Returns a newXrHandGestureQCOMinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrHandGestureQCOM.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrHandGestureQCOM.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrHandGestureQCOM.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrHandGestureQCOM.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrHandGestureQCOMinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrHandGestureQCOMinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrHandGestureQCOM.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrHandGestureQCOM.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ngesture
public static int ngesture(long struct) Unsafe version ofgesture(). -
ngestureRatio
public static float ngestureRatio(long struct) Unsafe version ofgestureRatio(). -
nflipRatio
public static float nflipRatio(long struct) Unsafe version offlipRatio(). -
ngesture
public static void ngesture(long struct, int value) Unsafe version ofgesture. -
ngestureRatio
public static void ngestureRatio(long struct, float value) Unsafe version ofgestureRatio. -
nflipRatio
public static void nflipRatio(long struct, float value) Unsafe version offlipRatio.
-