Package org.lwjgl.openxr
Class XrEventDataEventsLost
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrEventDataEventsLost
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrEventDataEventsLost extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceEvent indicating events were lost.Description
Receiving the
XrEventDataEventsLostevent structure indicates that the event queue overflowed and some events were removed at the position within the queue at which this event was found.Valid Usage (Implicit)
typemust beTYPE_EVENT_DATA_EVENTS_LOSTnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
XrEventDataBaseHeader,PollEventLayout
struct XrEventDataEventsLost { XrStructureTypetype(); void const *next(); uint32_tlostEventCount(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrEventDataEventsLost.BufferAn array ofXrEventDataEventsLoststructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intLOSTEVENTCOUNT
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrEventDataEventsLost(java.nio.ByteBuffer container)Creates aXrEventDataEventsLostinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrEventDataEventsLostcalloc()Returns a newXrEventDataEventsLostinstance allocated withmemCalloc.static XrEventDataEventsLost.Buffercalloc(int capacity)Returns a newXrEventDataEventsLost.Bufferinstance allocated withmemCalloc.static XrEventDataEventsLost.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataEventsLost.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataEventsLostcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataEventsLostinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataEventsLostcreate()Returns a newXrEventDataEventsLostinstance allocated withBufferUtils.static XrEventDataEventsLost.Buffercreate(int capacity)Returns a newXrEventDataEventsLost.Bufferinstance allocated withBufferUtils.static XrEventDataEventsLostcreate(long address)Returns a newXrEventDataEventsLostinstance for the specified memory address.static XrEventDataEventsLost.Buffercreate(long address, int capacity)Create aXrEventDataEventsLost.Bufferinstance at the specified memory.static XrEventDataEventsLostcreate(XrEventDataBaseHeader value)Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataEventsLost.static XrEventDataEventsLost.Buffercreate(XrEventDataBaseHeader.Buffer value)Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataEventsLost.Buffer.static XrEventDataEventsLostcreateSafe(long address)static XrEventDataEventsLost.BuffercreateSafe(long address, int capacity)intlostEventCount()the number of events which have overflowed since the last call toPollEvent.XrEventDataEventsLostlostEventCount(int value)Sets the specified value to thelostEventCount()field.static XrEventDataEventsLostmalloc()Returns a newXrEventDataEventsLostinstance allocated withmemAlloc.static XrEventDataEventsLost.Buffermalloc(int capacity)Returns a newXrEventDataEventsLost.Bufferinstance allocated withmemAlloc.static XrEventDataEventsLost.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataEventsLost.Bufferinstance allocated on the specifiedMemoryStack.static XrEventDataEventsLostmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataEventsLostinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrEventDataEventsLostnext(long value)Sets the specified value to thenext()field.static intnlostEventCount(long struct)Unsafe version oflostEventCount().static voidnlostEventCount(long struct, int value)Unsafe version oflostEventCount.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.XrEventDataEventsLostset(int type, long next, int lostEventCount)Initializes this struct with the specified values.XrEventDataEventsLostset(XrEventDataEventsLost src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrEventDataEventsLosttype(int value)Sets the specified value to thetype()field.XrEventDataEventsLosttype$Default()Sets theTYPE_EVENT_DATA_EVENTS_LOSTvalue to thetype()field.
-
-
-
Constructor Detail
-
XrEventDataEventsLost
public XrEventDataEventsLost(java.nio.ByteBuffer container)
Creates aXrEventDataEventsLostinstance 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.
-
lostEventCount
public int lostEventCount()
the number of events which have overflowed since the last call toPollEvent.
-
type
public XrEventDataEventsLost type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrEventDataEventsLost type$Default()
Sets theTYPE_EVENT_DATA_EVENTS_LOSTvalue to thetype()field.
-
next
public XrEventDataEventsLost next(long value)
Sets the specified value to thenext()field.
-
lostEventCount
public XrEventDataEventsLost lostEventCount(int value)
Sets the specified value to thelostEventCount()field.
-
set
public XrEventDataEventsLost set(int type, long next, int lostEventCount)
Initializes this struct with the specified values.
-
set
public XrEventDataEventsLost set(XrEventDataEventsLost src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrEventDataEventsLost malloc()
Returns a newXrEventDataEventsLostinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrEventDataEventsLost calloc()
Returns a newXrEventDataEventsLostinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrEventDataEventsLost create()
Returns a newXrEventDataEventsLostinstance allocated withBufferUtils.
-
create
public static XrEventDataEventsLost create(long address)
Returns a newXrEventDataEventsLostinstance for the specified memory address.
-
createSafe
@Nullable public static XrEventDataEventsLost createSafe(long address)
-
create
public static XrEventDataEventsLost create(XrEventDataBaseHeader value)
Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataEventsLost.
-
malloc
public static XrEventDataEventsLost.Buffer malloc(int capacity)
Returns a newXrEventDataEventsLost.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrEventDataEventsLost.Buffer calloc(int capacity)
Returns a newXrEventDataEventsLost.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataEventsLost.Buffer create(int capacity)
Returns a newXrEventDataEventsLost.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataEventsLost.Buffer create(long address, int capacity)
Create aXrEventDataEventsLost.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrEventDataEventsLost.Buffer createSafe(long address, int capacity)
-
create
public static XrEventDataEventsLost.Buffer create(XrEventDataBaseHeader.Buffer value)
Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataEventsLost.Buffer.
-
malloc
public static XrEventDataEventsLost malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataEventsLostinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrEventDataEventsLost calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataEventsLostinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrEventDataEventsLost.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataEventsLost.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrEventDataEventsLost.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataEventsLost.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().
-
nlostEventCount
public static int nlostEventCount(long struct)
Unsafe version oflostEventCount().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nlostEventCount
public static void nlostEventCount(long struct, int value)Unsafe version oflostEventCount.
-
-