Package org.lwjgl.openxr
Class XrEventDataMainSessionVisibilityChangedEXTX
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrEventDataMainSessionVisibilityChangedEXTX
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrEventDataMainSessionVisibilityChangedEXTX extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceEvent representing main session visibility change.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.visibleis anXrBool32which indicates ifsessionis now visible or is not.flagsis 0 or one or moreXrOverlayMainSessionFlagBitsEXTXwhich indicates various state information for the main session.
Valid Usage (Implicit)
- The
XR_EXTX_overlayextension must be enabled prior to usingXrEventDataMainSessionVisibilityChangedEXTX typemust beTYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTXnextmust beNULLor a valid pointer to the next structure in a structure chainflagsmust be a valid combination ofXrOverlayMainSessionFlagBitsEXTXvaluesflagsmust not be 0
Layout
struct XrEventDataMainSessionVisibilityChangedEXTX { XrStructureType type; void const * next; XrBool32 visible; XrOverlayMainSessionFlagsEXTX flags; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrEventDataMainSessionVisibilityChangedEXTX.BufferAn array ofXrEventDataMainSessionVisibilityChangedEXTXstructs.
-
Constructor Summary
Constructors Constructor Description XrEventDataMainSessionVisibilityChangedEXTX(java.nio.ByteBuffer container)Creates aXrEventDataMainSessionVisibilityChangedEXTXinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrEventDataMainSessionVisibilityChangedEXTXcalloc()Returns a newXrEventDataMainSessionVisibilityChangedEXTXinstance allocated withmemCalloc.static XrEventDataMainSessionVisibilityChangedEXTX.Buffercalloc(int capacity)Returns a newXrEventDataMainSessionVisibilityChangedEXTX.Bufferinstance allocated withmemCalloc.static XrEventDataMainSessionVisibilityChangedEXTX.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataMainSessionVisibilityChangedEXTX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataMainSessionVisibilityChangedEXTXcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataMainSessionVisibilityChangedEXTXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataMainSessionVisibilityChangedEXTXcreate()Returns a newXrEventDataMainSessionVisibilityChangedEXTXinstance allocated withBufferUtils.static XrEventDataMainSessionVisibilityChangedEXTX.Buffercreate(int capacity)Returns a newXrEventDataMainSessionVisibilityChangedEXTX.Bufferinstance allocated withBufferUtils.static XrEventDataMainSessionVisibilityChangedEXTXcreate(long address)Returns a newXrEventDataMainSessionVisibilityChangedEXTXinstance for the specified memory address.static XrEventDataMainSessionVisibilityChangedEXTX.Buffercreate(long address, int capacity)Create aXrEventDataMainSessionVisibilityChangedEXTX.Bufferinstance at the specified memory.static XrEventDataMainSessionVisibilityChangedEXTXcreate(XrEventDataBaseHeader value)Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataMainSessionVisibilityChangedEXTX.static XrEventDataMainSessionVisibilityChangedEXTX.Buffercreate(XrEventDataBaseHeader.Buffer value)Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataMainSessionVisibilityChangedEXTX.Buffer.static XrEventDataMainSessionVisibilityChangedEXTXcreateSafe(long address)static XrEventDataMainSessionVisibilityChangedEXTX.BuffercreateSafe(long address, int capacity)longflags()XrEventDataMainSessionVisibilityChangedEXTXflags(long value)Sets the specified value to theflagsfield.static XrEventDataMainSessionVisibilityChangedEXTXmalloc()Returns a newXrEventDataMainSessionVisibilityChangedEXTXinstance allocated withmemAlloc.static XrEventDataMainSessionVisibilityChangedEXTX.Buffermalloc(int capacity)Returns a newXrEventDataMainSessionVisibilityChangedEXTX.Bufferinstance allocated withmemAlloc.static XrEventDataMainSessionVisibilityChangedEXTX.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataMainSessionVisibilityChangedEXTX.Bufferinstance allocated on the specifiedMemoryStack.static XrEventDataMainSessionVisibilityChangedEXTXmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataMainSessionVisibilityChangedEXTXinstance allocated on the specifiedMemoryStack.longnext()XrEventDataMainSessionVisibilityChangedEXTXnext(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.static intnvisible(long struct)Unsafe version ofvisible().static voidnvisible(long struct, int value)Unsafe version ofvisible.XrEventDataMainSessionVisibilityChangedEXTXset(int type, long next, boolean visible, long flags)Initializes this struct with the specified values.XrEventDataMainSessionVisibilityChangedEXTXset(XrEventDataMainSessionVisibilityChangedEXTX src)Copies the specified struct data to this struct.intsizeof()inttype()XrEventDataMainSessionVisibilityChangedEXTXtype(int value)Sets the specified value to thetypefield.XrEventDataMainSessionVisibilityChangedEXTXtype$Default()Sets theTYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTXvalue to thetypefield.booleanvisible()XrEventDataMainSessionVisibilityChangedEXTXvisible(boolean value)Sets the specified value to thevisiblefield.
-
-
-
Constructor Detail
-
XrEventDataMainSessionVisibilityChangedEXTX
public XrEventDataMainSessionVisibilityChangedEXTX(java.nio.ByteBuffer container)
Creates aXrEventDataMainSessionVisibilityChangedEXTXinstance 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.
-
visible
public boolean visible()
- Returns:
- the value of the
visiblefield.
-
flags
public long flags()
- Returns:
- the value of the
flagsfield.
-
type
public XrEventDataMainSessionVisibilityChangedEXTX type(int value)
Sets the specified value to thetypefield.
-
type$Default
public XrEventDataMainSessionVisibilityChangedEXTX type$Default()
Sets theTYPE_EVENT_DATA_MAIN_SESSION_VISIBILITY_CHANGED_EXTXvalue to thetypefield.
-
next
public XrEventDataMainSessionVisibilityChangedEXTX next(long value)
Sets the specified value to thenextfield.
-
visible
public XrEventDataMainSessionVisibilityChangedEXTX visible(boolean value)
Sets the specified value to thevisiblefield.
-
flags
public XrEventDataMainSessionVisibilityChangedEXTX flags(long value)
Sets the specified value to theflagsfield.
-
set
public XrEventDataMainSessionVisibilityChangedEXTX set(int type, long next, boolean visible, long flags)
Initializes this struct with the specified values.
-
set
public XrEventDataMainSessionVisibilityChangedEXTX set(XrEventDataMainSessionVisibilityChangedEXTX src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrEventDataMainSessionVisibilityChangedEXTX malloc()
Returns a newXrEventDataMainSessionVisibilityChangedEXTXinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrEventDataMainSessionVisibilityChangedEXTX calloc()
Returns a newXrEventDataMainSessionVisibilityChangedEXTXinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrEventDataMainSessionVisibilityChangedEXTX create()
Returns a newXrEventDataMainSessionVisibilityChangedEXTXinstance allocated withBufferUtils.
-
create
public static XrEventDataMainSessionVisibilityChangedEXTX create(long address)
Returns a newXrEventDataMainSessionVisibilityChangedEXTXinstance for the specified memory address.
-
createSafe
@Nullable public static XrEventDataMainSessionVisibilityChangedEXTX createSafe(long address)
-
create
public static XrEventDataMainSessionVisibilityChangedEXTX create(XrEventDataBaseHeader value)
Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataMainSessionVisibilityChangedEXTX.
-
malloc
public static XrEventDataMainSessionVisibilityChangedEXTX.Buffer malloc(int capacity)
Returns a newXrEventDataMainSessionVisibilityChangedEXTX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrEventDataMainSessionVisibilityChangedEXTX.Buffer calloc(int capacity)
Returns a newXrEventDataMainSessionVisibilityChangedEXTX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataMainSessionVisibilityChangedEXTX.Buffer create(int capacity)
Returns a newXrEventDataMainSessionVisibilityChangedEXTX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataMainSessionVisibilityChangedEXTX.Buffer create(long address, int capacity)
Create aXrEventDataMainSessionVisibilityChangedEXTX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrEventDataMainSessionVisibilityChangedEXTX.Buffer createSafe(long address, int capacity)
-
create
public static XrEventDataMainSessionVisibilityChangedEXTX.Buffer create(XrEventDataBaseHeader.Buffer value)
Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataMainSessionVisibilityChangedEXTX.Buffer.
-
malloc
public static XrEventDataMainSessionVisibilityChangedEXTX malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataMainSessionVisibilityChangedEXTXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrEventDataMainSessionVisibilityChangedEXTX calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataMainSessionVisibilityChangedEXTXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrEventDataMainSessionVisibilityChangedEXTX.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataMainSessionVisibilityChangedEXTX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrEventDataMainSessionVisibilityChangedEXTX.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataMainSessionVisibilityChangedEXTX.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().
-
nvisible
public static int nvisible(long struct)
Unsafe version ofvisible().
-
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.
-
nvisible
public static void nvisible(long struct, int value)Unsafe version ofvisible.
-
nflags
public static void nflags(long struct, long value)Unsafe version offlags.
-
-