Package org.lwjgl.openxr
Class XrEventDataVisibilityMaskChangedKHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrEventDataVisibilityMaskChangedKHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrEventDataVisibilityMaskChangedKHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceVisibility Mask.Valid Usage (Implicit)
- The
XR_KHR_visibility_maskextension must be enabled prior to usingXrEventDataVisibilityMaskChangedKHR typemust beTYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHRnextmust beNULLor a valid pointer to the next structure in a structure chainsessionmust be a validXrSessionhandleviewConfigurationTypemust be a validXrViewConfigurationTypevalue
Layout
struct XrEventDataVisibilityMaskChangedKHR { XrStructureTypetype(); void const *next(); XrSessionsession(); XrViewConfigurationTypeviewConfigurationType(); uint32_tviewIndex(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrEventDataVisibilityMaskChangedKHR.BufferAn array ofXrEventDataVisibilityMaskChangedKHRstructs.
-
Constructor Summary
Constructors Constructor Description XrEventDataVisibilityMaskChangedKHR(java.nio.ByteBuffer container)Creates aXrEventDataVisibilityMaskChangedKHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrEventDataVisibilityMaskChangedKHRcalloc()Returns a newXrEventDataVisibilityMaskChangedKHRinstance allocated withmemCalloc.static XrEventDataVisibilityMaskChangedKHR.Buffercalloc(int capacity)Returns a newXrEventDataVisibilityMaskChangedKHR.Bufferinstance allocated withmemCalloc.static XrEventDataVisibilityMaskChangedKHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataVisibilityMaskChangedKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataVisibilityMaskChangedKHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataVisibilityMaskChangedKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrEventDataVisibilityMaskChangedKHRcreate()Returns a newXrEventDataVisibilityMaskChangedKHRinstance allocated withBufferUtils.static XrEventDataVisibilityMaskChangedKHR.Buffercreate(int capacity)Returns a newXrEventDataVisibilityMaskChangedKHR.Bufferinstance allocated withBufferUtils.static XrEventDataVisibilityMaskChangedKHRcreate(long address)Returns a newXrEventDataVisibilityMaskChangedKHRinstance for the specified memory address.static XrEventDataVisibilityMaskChangedKHR.Buffercreate(long address, int capacity)Create aXrEventDataVisibilityMaskChangedKHR.Bufferinstance at the specified memory.static XrEventDataVisibilityMaskChangedKHRcreate(XrEventDataBaseHeader value)Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataVisibilityMaskChangedKHR.static XrEventDataVisibilityMaskChangedKHR.Buffercreate(XrEventDataBaseHeader.Buffer value)Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataVisibilityMaskChangedKHR.Buffer.static XrEventDataVisibilityMaskChangedKHRcreateSafe(long address)static XrEventDataVisibilityMaskChangedKHR.BuffercreateSafe(long address, int capacity)static XrEventDataVisibilityMaskChangedKHRmalloc()Returns a newXrEventDataVisibilityMaskChangedKHRinstance allocated withmemAlloc.static XrEventDataVisibilityMaskChangedKHR.Buffermalloc(int capacity)Returns a newXrEventDataVisibilityMaskChangedKHR.Bufferinstance allocated withmemAlloc.static XrEventDataVisibilityMaskChangedKHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataVisibilityMaskChangedKHR.Bufferinstance allocated on the specifiedMemoryStack.static XrEventDataVisibilityMaskChangedKHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrEventDataVisibilityMaskChangedKHRinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrEventDataVisibilityMaskChangedKHRnext(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 intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.static intnviewConfigurationType(long struct)Unsafe version ofviewConfigurationType().static voidnviewConfigurationType(long struct, int value)Unsafe version ofviewConfigurationType.static intnviewIndex(long struct)Unsafe version ofviewIndex().static voidnviewIndex(long struct, int value)Unsafe version ofviewIndex.longsession()theXrSessionfor which the view mask has changed.XrEventDataVisibilityMaskChangedKHRsession(XrSession value)Sets the specified value to thesession()field.XrEventDataVisibilityMaskChangedKHRset(int type, long next, XrSession session, int viewConfigurationType, int viewIndex)Initializes this struct with the specified values.XrEventDataVisibilityMaskChangedKHRset(XrEventDataVisibilityMaskChangedKHR src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrEventDataVisibilityMaskChangedKHRtype(int value)Sets the specified value to thetype()field.XrEventDataVisibilityMaskChangedKHRtype$Default()Sets theTYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHRvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.intviewConfigurationType()the view configuration whose mask has changed.XrEventDataVisibilityMaskChangedKHRviewConfigurationType(int value)Sets the specified value to theviewConfigurationType()field.intviewIndex()the individual view within the view configuration to which the change refers.XrEventDataVisibilityMaskChangedKHRviewIndex(int value)Sets the specified value to theviewIndex()field.
-
-
-
Constructor Detail
-
XrEventDataVisibilityMaskChangedKHR
public XrEventDataVisibilityMaskChangedKHR(java.nio.ByteBuffer container)
Creates aXrEventDataVisibilityMaskChangedKHRinstance 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 or this extension.
-
session
public long session()
theXrSessionfor which the view mask has changed.
-
viewConfigurationType
public int viewConfigurationType()
the view configuration whose mask has changed.
-
viewIndex
public int viewIndex()
the individual view within the view configuration to which the change refers.
-
type
public XrEventDataVisibilityMaskChangedKHR type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrEventDataVisibilityMaskChangedKHR type$Default()
Sets theTYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHRvalue to thetype()field.
-
next
public XrEventDataVisibilityMaskChangedKHR next(long value)
Sets the specified value to thenext()field.
-
session
public XrEventDataVisibilityMaskChangedKHR session(XrSession value)
Sets the specified value to thesession()field.
-
viewConfigurationType
public XrEventDataVisibilityMaskChangedKHR viewConfigurationType(int value)
Sets the specified value to theviewConfigurationType()field.
-
viewIndex
public XrEventDataVisibilityMaskChangedKHR viewIndex(int value)
Sets the specified value to theviewIndex()field.
-
set
public XrEventDataVisibilityMaskChangedKHR set(int type, long next, XrSession session, int viewConfigurationType, int viewIndex)
Initializes this struct with the specified values.
-
set
public XrEventDataVisibilityMaskChangedKHR set(XrEventDataVisibilityMaskChangedKHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrEventDataVisibilityMaskChangedKHR malloc()
Returns a newXrEventDataVisibilityMaskChangedKHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrEventDataVisibilityMaskChangedKHR calloc()
Returns a newXrEventDataVisibilityMaskChangedKHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrEventDataVisibilityMaskChangedKHR create()
Returns a newXrEventDataVisibilityMaskChangedKHRinstance allocated withBufferUtils.
-
create
public static XrEventDataVisibilityMaskChangedKHR create(long address)
Returns a newXrEventDataVisibilityMaskChangedKHRinstance for the specified memory address.
-
createSafe
@Nullable public static XrEventDataVisibilityMaskChangedKHR createSafe(long address)
-
create
public static XrEventDataVisibilityMaskChangedKHR create(XrEventDataBaseHeader value)
Downcasts the specifiedXrEventDataBaseHeaderinstance toXrEventDataVisibilityMaskChangedKHR.
-
malloc
public static XrEventDataVisibilityMaskChangedKHR.Buffer malloc(int capacity)
Returns a newXrEventDataVisibilityMaskChangedKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrEventDataVisibilityMaskChangedKHR.Buffer calloc(int capacity)
Returns a newXrEventDataVisibilityMaskChangedKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataVisibilityMaskChangedKHR.Buffer create(int capacity)
Returns a newXrEventDataVisibilityMaskChangedKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrEventDataVisibilityMaskChangedKHR.Buffer create(long address, int capacity)
Create aXrEventDataVisibilityMaskChangedKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrEventDataVisibilityMaskChangedKHR.Buffer createSafe(long address, int capacity)
-
create
public static XrEventDataVisibilityMaskChangedKHR.Buffer create(XrEventDataBaseHeader.Buffer value)
Downcasts the specifiedXrEventDataBaseHeader.Bufferinstance toXrEventDataVisibilityMaskChangedKHR.Buffer.
-
malloc
public static XrEventDataVisibilityMaskChangedKHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataVisibilityMaskChangedKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrEventDataVisibilityMaskChangedKHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataVisibilityMaskChangedKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrEventDataVisibilityMaskChangedKHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataVisibilityMaskChangedKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrEventDataVisibilityMaskChangedKHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrEventDataVisibilityMaskChangedKHR.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().
-
nviewConfigurationType
public static int nviewConfigurationType(long struct)
Unsafe version ofviewConfigurationType().
-
nviewIndex
public static int nviewIndex(long struct)
Unsafe version ofviewIndex().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nviewConfigurationType
public static void nviewConfigurationType(long struct, int value)Unsafe version ofviewConfigurationType.
-
nviewIndex
public static void nviewIndex(long struct, int value)Unsafe version ofviewIndex.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-