Package org.lwjgl.openxr
Class XrInteractionProfileState
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrInteractionProfileState
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrInteractionProfileState extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceReceives active interaction profile for a top level path.Description
The runtime must only include interaction profiles that the application has provided bindings for via
SuggestInteractionProfileBindingsorNULL_PATH. If the runtime is rebinding an interaction profile provided by the application to a device that the application did not provide bindings for, it must return the interaction profile path that it is emulating. If the runtime is unable to provide input because it cannot emulate any of the application-provided interaction profiles, it must returnNULL_PATH.Valid Usage (Implicit)
typemust beTYPE_INTERACTION_PROFILE_STATEnextmust beNULLor a valid pointer to the next structure in a structure chain
See Also
XrActionSuggestedBinding,GetCurrentInteractionProfile,SuggestInteractionProfileBindingsLayout
struct XrInteractionProfileState { XrStructureTypetype(); void *next(); XrPathinteractionProfile(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrInteractionProfileState.BufferAn array ofXrInteractionProfileStatestructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intINTERACTIONPROFILE
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrInteractionProfileState(java.nio.ByteBuffer container)Creates aXrInteractionProfileStateinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrInteractionProfileStatecalloc()Returns a newXrInteractionProfileStateinstance allocated withmemCalloc.static XrInteractionProfileState.Buffercalloc(int capacity)Returns a newXrInteractionProfileState.Bufferinstance allocated withmemCalloc.static XrInteractionProfileState.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrInteractionProfileState.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrInteractionProfileStatecalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrInteractionProfileStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrInteractionProfileStatecreate()Returns a newXrInteractionProfileStateinstance allocated withBufferUtils.static XrInteractionProfileState.Buffercreate(int capacity)Returns a newXrInteractionProfileState.Bufferinstance allocated withBufferUtils.static XrInteractionProfileStatecreate(long address)Returns a newXrInteractionProfileStateinstance for the specified memory address.static XrInteractionProfileState.Buffercreate(long address, int capacity)Create aXrInteractionProfileState.Bufferinstance at the specified memory.static XrInteractionProfileStatecreateSafe(long address)static XrInteractionProfileState.BuffercreateSafe(long address, int capacity)longinteractionProfile()theXrPathof the interaction profile path for thetopLevelUserPathused to retrieve this state, orNULL_PATHif there is no active interaction profile at that top level user path.XrInteractionProfileStateinteractionProfile(long value)Sets the specified value to theinteractionProfile()field.static XrInteractionProfileStatemalloc()Returns a newXrInteractionProfileStateinstance allocated withmemAlloc.static XrInteractionProfileState.Buffermalloc(int capacity)Returns a newXrInteractionProfileState.Bufferinstance allocated withmemAlloc.static XrInteractionProfileState.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrInteractionProfileState.Bufferinstance allocated on the specifiedMemoryStack.static XrInteractionProfileStatemalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrInteractionProfileStateinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrInteractionProfileStatenext(long value)Sets the specified value to thenext()field.static longninteractionProfile(long struct)Unsafe version ofinteractionProfile().static voidninteractionProfile(long struct, long value)Unsafe version ofinteractionProfile.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.XrInteractionProfileStateset(int type, long next, long interactionProfile)Initializes this struct with the specified values.XrInteractionProfileStateset(XrInteractionProfileState src)Copies the specified struct data to this struct.intsizeof()inttype()theXrStructureTypeof this structure.XrInteractionProfileStatetype(int value)Sets the specified value to thetype()field.XrInteractionProfileStatetype$Default()Sets theTYPE_INTERACTION_PROFILE_STATEvalue to thetype()field.
-
-
-
Constructor Detail
-
XrInteractionProfileState
public XrInteractionProfileState(java.nio.ByteBuffer container)
Creates aXrInteractionProfileStateinstance 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.
-
interactionProfile
public long interactionProfile()
theXrPathof the interaction profile path for thetopLevelUserPathused to retrieve this state, orNULL_PATHif there is no active interaction profile at that top level user path.
-
type
public XrInteractionProfileState type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrInteractionProfileState type$Default()
Sets theTYPE_INTERACTION_PROFILE_STATEvalue to thetype()field.
-
next
public XrInteractionProfileState next(long value)
Sets the specified value to thenext()field.
-
interactionProfile
public XrInteractionProfileState interactionProfile(long value)
Sets the specified value to theinteractionProfile()field.
-
set
public XrInteractionProfileState set(int type, long next, long interactionProfile)
Initializes this struct with the specified values.
-
set
public XrInteractionProfileState set(XrInteractionProfileState src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrInteractionProfileState malloc()
Returns a newXrInteractionProfileStateinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrInteractionProfileState calloc()
Returns a newXrInteractionProfileStateinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrInteractionProfileState create()
Returns a newXrInteractionProfileStateinstance allocated withBufferUtils.
-
create
public static XrInteractionProfileState create(long address)
Returns a newXrInteractionProfileStateinstance for the specified memory address.
-
createSafe
@Nullable public static XrInteractionProfileState createSafe(long address)
-
malloc
public static XrInteractionProfileState.Buffer malloc(int capacity)
Returns a newXrInteractionProfileState.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrInteractionProfileState.Buffer calloc(int capacity)
Returns a newXrInteractionProfileState.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrInteractionProfileState.Buffer create(int capacity)
Returns a newXrInteractionProfileState.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrInteractionProfileState.Buffer create(long address, int capacity)
Create aXrInteractionProfileState.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrInteractionProfileState.Buffer createSafe(long address, int capacity)
-
malloc
public static XrInteractionProfileState malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrInteractionProfileStateinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrInteractionProfileState calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrInteractionProfileStateinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrInteractionProfileState.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrInteractionProfileState.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrInteractionProfileState.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrInteractionProfileState.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().
-
ninteractionProfile
public static long ninteractionProfile(long struct)
Unsafe version ofinteractionProfile().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
ninteractionProfile
public static void ninteractionProfile(long struct, long value)Unsafe version ofinteractionProfile.
-
-