Package org.lwjgl.openxr
Class XrEventDataPassthroughStateChangedFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrEventDataPassthroughStateChangedFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrEventDataPassthroughStateChangedFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceAn event for passthrough state changes.Member Descriptions
typeis theXrStructureTypeof this structure.nextisNULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR or this extension.flagsXrPassthroughStateChangedFlagsFBthat specify additional behavior.
Valid Usage (Implicit)
- The
XR_FB_passthroughextension must be enabled prior to usingXrEventDataPassthroughStateChangedFB typemust beTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FBnextmust beNULLor a valid pointer to the next structure in a structure chainflagsmust be a valid combination ofXrPassthroughStateChangedFlagBitsFBvaluesflagsmust not be 0
Layout
struct XrEventDataPassthroughStateChangedFB { XrStructureType type; void const * next; XrPassthroughStateChangedFlagsFB flags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrEventDataPassthroughStateChangedFB.BufferAn array ofXrEventDataPassthroughStateChangedFBstructs.
-
Constructor Summary
Constructors Constructor Description XrEventDataPassthroughStateChangedFB(java.nio.ByteBuffer container)Creates aXrEventDataPassthroughStateChangedFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrEventDataPassthroughStateChangedFBcalloc()Returns a newXrEventDataPassthroughStateChangedFBinstance allocated withmemCalloc.static XrEventDataPassthroughStateChangedFB.Buffercalloc(int capacity)Returns a newXrEventDataPassthroughStateChangedFB.Bufferinstance allocated withmemCalloc.static XrEventDataPassthroughStateChangedFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataPassthroughStateChangedFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataPassthroughStateChangedFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataPassthroughStateChangedFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataPassthroughStateChangedFBcreate()Returns a newXrEventDataPassthroughStateChangedFBinstance allocated withBufferUtils.static XrEventDataPassthroughStateChangedFB.Buffercreate(int capacity)Returns a newXrEventDataPassthroughStateChangedFB.Bufferinstance allocated withBufferUtils.static XrEventDataPassthroughStateChangedFBcreate(long address)Returns a newXrEventDataPassthroughStateChangedFBinstance for the specified memory address.static XrEventDataPassthroughStateChangedFB.Buffercreate(long address, int capacity)Create aXrEventDataPassthroughStateChangedFB.Bufferinstance at the specified memory.static XrEventDataPassthroughStateChangedFBcreateSafe(long address)static XrEventDataPassthroughStateChangedFB.BuffercreateSafe(long address, int capacity)longflags()XrEventDataPassthroughStateChangedFBflags(long value)Sets the specified value to theflagsfield.static XrEventDataPassthroughStateChangedFBmalloc()Returns a newXrEventDataPassthroughStateChangedFBinstance allocated withmemAlloc.static XrEventDataPassthroughStateChangedFB.Buffermalloc(int capacity)Returns a newXrEventDataPassthroughStateChangedFB.Bufferinstance allocated withmemAlloc.static XrEventDataPassthroughStateChangedFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataPassthroughStateChangedFB.Bufferinstance allocated on the specifiedMemoryStack.static XrEventDataPassthroughStateChangedFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataPassthroughStateChangedFBinstance allocated on the specifiedMemoryStack.longnext()XrEventDataPassthroughStateChangedFBnext(long value)Sets the specified value to thenextfield.static longnflags(long struct)Unsafe version offlags().static voidnflags(long struct, long value)Unsafe version offlags.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrEventDataPassthroughStateChangedFBset(int type, long next, long flags)Initializes this struct with the specified values.XrEventDataPassthroughStateChangedFBset(XrEventDataPassthroughStateChangedFB src)Copies the specified struct data to this struct.intsizeof()inttype()XrEventDataPassthroughStateChangedFBtype(int value)Sets the specified value to thetypefield.XrEventDataPassthroughStateChangedFBtype$Default()Sets theTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FBvalue to thetypefield.
-
-
-
Constructor Detail
-
XrEventDataPassthroughStateChangedFB
public XrEventDataPassthroughStateChangedFB(java.nio.ByteBuffer container)
Creates aXrEventDataPassthroughStateChangedFBinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
type
public int type()
- Returns:
- the value of the
typefield.
-
next
public long next()
- Returns:
- the value of the
nextfield.
-
flags
public long flags()
- Returns:
- the value of the
flagsfield.
-
type
public XrEventDataPassthroughStateChangedFB type(int value)
Sets the specified value to thetypefield.
-
type$Default
public XrEventDataPassthroughStateChangedFB type$Default()
Sets theTYPE_EVENT_DATA_PASSTHROUGH_STATE_CHANGED_FBvalue to thetypefield.
-
next
public XrEventDataPassthroughStateChangedFB next(long value)
Sets the specified value to thenextfield.
-
flags
public XrEventDataPassthroughStateChangedFB flags(long value)
Sets the specified value to theflagsfield.
-
set
public XrEventDataPassthroughStateChangedFB set(int type, long next, long flags)
Initializes this struct with the specified values.
-
set
public XrEventDataPassthroughStateChangedFB set(XrEventDataPassthroughStateChangedFB src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrEventDataPassthroughStateChangedFB malloc()
Returns a newXrEventDataPassthroughStateChangedFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrEventDataPassthroughStateChangedFB calloc()
Returns a newXrEventDataPassthroughStateChangedFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrEventDataPassthroughStateChangedFB create()
Returns a newXrEventDataPassthroughStateChangedFBinstance allocated withBufferUtils.
-
create
public static XrEventDataPassthroughStateChangedFB create(long address)
Returns a newXrEventDataPassthroughStateChangedFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrEventDataPassthroughStateChangedFB createSafe(long address)
-
malloc
public static XrEventDataPassthroughStateChangedFB.Buffer malloc(int capacity)
Returns a newXrEventDataPassthroughStateChangedFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrEventDataPassthroughStateChangedFB.Buffer calloc(int capacity)
Returns a newXrEventDataPassthroughStateChangedFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataPassthroughStateChangedFB.Buffer create(int capacity)
Returns a newXrEventDataPassthroughStateChangedFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataPassthroughStateChangedFB.Buffer create(long address, int capacity)
Create aXrEventDataPassthroughStateChangedFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrEventDataPassthroughStateChangedFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrEventDataPassthroughStateChangedFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataPassthroughStateChangedFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrEventDataPassthroughStateChangedFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataPassthroughStateChangedFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrEventDataPassthroughStateChangedFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataPassthroughStateChangedFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrEventDataPassthroughStateChangedFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataPassthroughStateChangedFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nnext
public static long nnext(long struct)
Unsafe version ofnext().
-
nflags
public static long nflags(long struct)
Unsafe version offlags().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nflags
public static void nflags(long struct, long value)Unsafe version offlags.
-
-