Package org.lwjgl.openxr
Class XrEventDataSessionStateChanged
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrEventDataSessionStateChanged
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrEventDataSessionStateChanged extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceEvent indicating session state changed.Description
Receiving the
XrEventDataSessionStateChangedevent structure indicates that the application has changed lifecycle state.Valid Usage (Implicit)
typemust beTYPE_EVENT_DATA_SESSION_STATE_CHANGEDnextmust beNULLor a valid pointer to the next structure in a structure chainsessionmust be a validXrSessionhandlestatemust be a validXrSessionStatevalue
See Also
XrEventDataBaseHeader,PollEventLayout
struct XrEventDataSessionStateChanged { XrStructureTypetype(); void const *next(); XrSessionsession(); XrSessionStatestate(); XrTimetime(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrEventDataSessionStateChanged.BufferAn array ofXrEventDataSessionStateChangedstructs.
-
Constructor Summary
Constructors Constructor Description XrEventDataSessionStateChanged(java.nio.ByteBuffer container)Creates aXrEventDataSessionStateChangedinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrEventDataSessionStateChangedcalloc()Returns a newXrEventDataSessionStateChangedinstance allocated withmemCalloc.static XrEventDataSessionStateChanged.Buffercalloc(int capacity)Returns a newXrEventDataSessionStateChanged.Bufferinstance allocated withmemCalloc.static XrEventDataSessionStateChanged.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataSessionStateChanged.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataSessionStateChangedcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataSessionStateChangedinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataSessionStateChangedcreate()Returns a newXrEventDataSessionStateChangedinstance allocated withBufferUtils.static XrEventDataSessionStateChanged.Buffercreate(int capacity)Returns a newXrEventDataSessionStateChanged.Bufferinstance allocated withBufferUtils.static XrEventDataSessionStateChangedcreate(long address)Returns a newXrEventDataSessionStateChangedinstance for the specified memory address.static XrEventDataSessionStateChanged.Buffercreate(long address, int capacity)Create aXrEventDataSessionStateChanged.Bufferinstance at the specified memory.static XrEventDataSessionStateChangedcreate(XrEventDataBaseHeader value)Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataSessionStateChanged.static XrEventDataSessionStateChanged.Buffercreate(XrEventDataBaseHeader.Buffer value)Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataSessionStateChanged.Buffer.static XrEventDataSessionStateChangedcreateSafe(long address)static XrEventDataSessionStateChanged.BuffercreateSafe(long address, int capacity)static XrEventDataSessionStateChangedmalloc()Returns a newXrEventDataSessionStateChangedinstance allocated withmemAlloc.static XrEventDataSessionStateChanged.Buffermalloc(int capacity)Returns a newXrEventDataSessionStateChanged.Bufferinstance allocated withmemAlloc.static XrEventDataSessionStateChanged.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataSessionStateChanged.Bufferinstance allocated on the specifiedMemoryStack.static XrEventDataSessionStateChangedmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataSessionStateChangedinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrEventDataSessionStateChangednext(long value)Sets the specified value to thenext()field.static longnnext(long struct)Unsafe version ofnext().static voidnnext(long struct, long value)Unsafe version ofnext.static longnsession(long struct)Unsafe version ofsession().static voidnsession(long struct, XrSession value)Unsafe version ofsession.static intnstate(long struct)Unsafe version ofstate().static voidnstate(long struct, int value)Unsafe version ofstate.static longntime(long struct)Unsafe version oftime().static voidntime(long struct, long value)Unsafe version oftime.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.longsession()theXrSessionwhich has changed state.XrEventDataSessionStateChangedsession(XrSession value)Sets the specified value to thesession()field.XrEventDataSessionStateChangedset(int type, long next, XrSession session, int state, long time)Initializes this struct with the specified values.XrEventDataSessionStateChangedset(XrEventDataSessionStateChanged src)Copies the specified struct data to this struct.intsizeof()intstate()the currentXrSessionStateof thesession.XrEventDataSessionStateChangedstate(int value)Sets the specified value to thestate()field.longtime()anXrTimewhich indicates the time of the state change.XrEventDataSessionStateChangedtime(long value)Sets the specified value to thetime()field.inttype()theXrStructureTypeof this structure.XrEventDataSessionStateChangedtype(int value)Sets the specified value to thetype()field.XrEventDataSessionStateChangedtype$Default()Sets theTYPE_EVENT_DATA_SESSION_STATE_CHANGEDvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrEventDataSessionStateChanged
public XrEventDataSessionStateChanged(java.nio.ByteBuffer container)
Creates aXrEventDataSessionStateChangedinstance 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()
theXrStructureTypeof this structure.
-
next
public long next()
NULLor a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.
-
session
public long session()
theXrSessionwhich has changed state.
-
state
public int state()
the currentXrSessionStateof thesession.
-
time
public long time()
anXrTimewhich indicates the time of the state change.
-
type
public XrEventDataSessionStateChanged type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrEventDataSessionStateChanged type$Default()
Sets theTYPE_EVENT_DATA_SESSION_STATE_CHANGEDvalue to thetype()field.
-
next
public XrEventDataSessionStateChanged next(long value)
Sets the specified value to thenext()field.
-
session
public XrEventDataSessionStateChanged session(XrSession value)
Sets the specified value to thesession()field.
-
state
public XrEventDataSessionStateChanged state(int value)
Sets the specified value to thestate()field.
-
time
public XrEventDataSessionStateChanged time(long value)
Sets the specified value to thetime()field.
-
set
public XrEventDataSessionStateChanged set(int type, long next, XrSession session, int state, long time)
Initializes this struct with the specified values.
-
set
public XrEventDataSessionStateChanged set(XrEventDataSessionStateChanged src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrEventDataSessionStateChanged malloc()
Returns a newXrEventDataSessionStateChangedinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrEventDataSessionStateChanged calloc()
Returns a newXrEventDataSessionStateChangedinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrEventDataSessionStateChanged create()
Returns a newXrEventDataSessionStateChangedinstance allocated withBufferUtils.
-
create
public static XrEventDataSessionStateChanged create(long address)
Returns a newXrEventDataSessionStateChangedinstance for the specified memory address.
-
createSafe
@Nullable public static XrEventDataSessionStateChanged createSafe(long address)
-
create
public static XrEventDataSessionStateChanged create(XrEventDataBaseHeader value)
Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataSessionStateChanged.
-
malloc
public static XrEventDataSessionStateChanged.Buffer malloc(int capacity)
Returns a newXrEventDataSessionStateChanged.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrEventDataSessionStateChanged.Buffer calloc(int capacity)
Returns a newXrEventDataSessionStateChanged.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataSessionStateChanged.Buffer create(int capacity)
Returns a newXrEventDataSessionStateChanged.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataSessionStateChanged.Buffer create(long address, int capacity)
Create aXrEventDataSessionStateChanged.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrEventDataSessionStateChanged.Buffer createSafe(long address, int capacity)
-
create
public static XrEventDataSessionStateChanged.Buffer create(XrEventDataBaseHeader.Buffer value)
Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataSessionStateChanged.Buffer.
-
malloc
public static XrEventDataSessionStateChanged malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataSessionStateChangedinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrEventDataSessionStateChanged calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataSessionStateChangedinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrEventDataSessionStateChanged.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataSessionStateChanged.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrEventDataSessionStateChanged.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataSessionStateChanged.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().
-
nsession
public static long nsession(long struct)
Unsafe version ofsession().
-
nstate
public static int nstate(long struct)
Unsafe version ofstate().
-
ntime
public static long ntime(long struct)
Unsafe version oftime().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nstate
public static void nstate(long struct, int value)Unsafe version ofstate.
-
ntime
public static void ntime(long struct, long value)Unsafe version oftime.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-