Package org.lwjgl.openxr
Class XrSceneComponentMSFT
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct XrSceneComponentMSFT {
XrSceneComponentTypeMSFT componentType;
XrUuidMSFT id;
XrUuidMSFT parentId;
XrTime updateTime;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.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.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionXrSceneComponentMSFT(ByteBuffer container) Creates aXrSceneComponentMSFTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic XrSceneComponentMSFTcalloc()Returns a newXrSceneComponentMSFTinstance allocated withmemCalloc.static XrSceneComponentMSFT.Buffercalloc(int capacity) Returns a newXrSceneComponentMSFT.Bufferinstance allocated withmemCalloc.static XrSceneComponentMSFT.Buffercalloc(int capacity, MemoryStack stack) Returns a newXrSceneComponentMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrSceneComponentMSFTcalloc(MemoryStack stack) Returns a newXrSceneComponentMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcomponentType(int value) Sets the specified value to thecomponentTypefield.static XrSceneComponentMSFTcreate()Returns a newXrSceneComponentMSFTinstance allocated withBufferUtils.static XrSceneComponentMSFT.Buffercreate(int capacity) Returns a newXrSceneComponentMSFT.Bufferinstance allocated withBufferUtils.static XrSceneComponentMSFTcreate(long address) Returns a newXrSceneComponentMSFTinstance for the specified memory address.static XrSceneComponentMSFT.Buffercreate(long address, int capacity) Create aXrSceneComponentMSFT.Bufferinstance at the specified memory.static @Nullable XrSceneComponentMSFTcreateSafe(long address) static @Nullable XrSceneComponentMSFT.BuffercreateSafe(long address, int capacity) id()id(Consumer<XrUuidMSFT> consumer) Passes theidfield to the specifiedConsumer.id(XrUuidMSFT value) Copies the specifiedXrUuidMSFTto theidfield.static XrSceneComponentMSFTmalloc()Returns a newXrSceneComponentMSFTinstance allocated withmemAlloc.static XrSceneComponentMSFT.Buffermalloc(int capacity) Returns a newXrSceneComponentMSFT.Bufferinstance allocated withmemAlloc.static XrSceneComponentMSFT.Buffermalloc(int capacity, MemoryStack stack) Returns a newXrSceneComponentMSFT.Bufferinstance allocated on the specifiedMemoryStack.static XrSceneComponentMSFTmalloc(MemoryStack stack) Returns a newXrSceneComponentMSFTinstance allocated on the specifiedMemoryStack.static intncomponentType(long struct) Unsafe version ofcomponentType().static voidncomponentType(long struct, int value) Unsafe version ofcomponentType.static XrUuidMSFTnid(long struct) Unsafe version ofid().static voidnid(long struct, XrUuidMSFT value) Unsafe version ofid.static XrUuidMSFTnparentId(long struct) Unsafe version ofparentId().static voidnparentId(long struct, XrUuidMSFT value) Unsafe version ofparentId.static longnupdateTime(long struct) Unsafe version ofupdateTime().static voidnupdateTime(long struct, long value) Unsafe version ofupdateTime.parentId()parentId(Consumer<XrUuidMSFT> consumer) Passes theparentIdfield to the specifiedConsumer.parentId(XrUuidMSFT value) Copies the specifiedXrUuidMSFTto theparentIdfield.set(int componentType, XrUuidMSFT id, XrUuidMSFT parentId, long updateTime) Initializes this struct with the specified values.set(XrSceneComponentMSFT src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).longupdateTime(long value) Sets the specified value to theupdateTimefield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.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. -
COMPONENTTYPE
public static final int COMPONENTTYPEThe struct member offsets. -
ID
public static final int IDThe struct member offsets. -
PARENTID
public static final int PARENTIDThe struct member offsets. -
UPDATETIME
public static final int UPDATETIMEThe struct member offsets.
-
-
Constructor Details
-
XrSceneComponentMSFT
Creates aXrSceneComponentMSFTinstance 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<XrSceneComponentMSFT>
-
componentType
public int componentType()- Returns:
- the value of the
componentTypefield.
-
id
- Returns:
- a
XrUuidMSFTview of theidfield.
-
parentId
- Returns:
- a
XrUuidMSFTview of theparentIdfield.
-
updateTime
public long updateTime()- Returns:
- the value of the
updateTimefield.
-
componentType
Sets the specified value to thecomponentTypefield. -
id
Copies the specifiedXrUuidMSFTto theidfield. -
id
Passes theidfield to the specifiedConsumer. -
parentId
Copies the specifiedXrUuidMSFTto theparentIdfield. -
parentId
Passes theparentIdfield to the specifiedConsumer. -
updateTime
Sets the specified value to theupdateTimefield. -
set
public XrSceneComponentMSFT set(int componentType, XrUuidMSFT id, XrUuidMSFT parentId, long updateTime) 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 newXrSceneComponentMSFTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newXrSceneComponentMSFTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newXrSceneComponentMSFTinstance allocated withBufferUtils. -
create
Returns a newXrSceneComponentMSFTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newXrSceneComponentMSFT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newXrSceneComponentMSFT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newXrSceneComponentMSFT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aXrSceneComponentMSFT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newXrSceneComponentMSFTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newXrSceneComponentMSFTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newXrSceneComponentMSFT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newXrSceneComponentMSFT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
ncomponentType
public static int ncomponentType(long struct) Unsafe version ofcomponentType(). -
nid
Unsafe version ofid(). -
nparentId
Unsafe version ofparentId(). -
nupdateTime
public static long nupdateTime(long struct) Unsafe version ofupdateTime(). -
ncomponentType
public static void ncomponentType(long struct, int value) Unsafe version ofcomponentType. -
nid
Unsafe version ofid. -
nparentId
Unsafe version ofparentId. -
nupdateTime
public static void nupdateTime(long struct, long value) Unsafe version ofupdateTime.
-