Package org.lwjgl.openxr
Class XrInputSourceLocalizedNameGetInfo
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrInputSourceLocalizedNameGetInfo
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrInputSourceLocalizedNameGetInfo extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceInformation to query the bound input sources for an action.Valid Usage (Implicit)
typemust beTYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFOnextmust beNULLor a valid pointer to the next structure in a structure chainwhichComponentsmust be a valid combination ofXrInputSourceLocalizedNameFlagBitsvalueswhichComponentsmust not be 0
See Also
EnumerateBoundSourcesForAction,GetInputSourceLocalizedNameLayout
struct XrInputSourceLocalizedNameGetInfo { XrStructureTypetype(); void const *next(); XrPath sourcePath; XrInputSourceLocalizedNameFlagswhichComponents(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrInputSourceLocalizedNameGetInfo.BufferAn array ofXrInputSourceLocalizedNameGetInfostructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSOURCEPATH
TYPE
WHICHCOMPONENTSThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrInputSourceLocalizedNameGetInfo(java.nio.ByteBuffer container)Creates aXrInputSourceLocalizedNameGetInfoinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrInputSourceLocalizedNameGetInfocalloc()Returns a newXrInputSourceLocalizedNameGetInfoinstance allocated withmemCalloc.static XrInputSourceLocalizedNameGetInfo.Buffercalloc(int capacity)Returns a newXrInputSourceLocalizedNameGetInfo.Bufferinstance allocated withmemCalloc.static XrInputSourceLocalizedNameGetInfo.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrInputSourceLocalizedNameGetInfo.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrInputSourceLocalizedNameGetInfocalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrInputSourceLocalizedNameGetInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrInputSourceLocalizedNameGetInfocreate()Returns a newXrInputSourceLocalizedNameGetInfoinstance allocated withBufferUtils.static XrInputSourceLocalizedNameGetInfo.Buffercreate(int capacity)Returns a newXrInputSourceLocalizedNameGetInfo.Bufferinstance allocated withBufferUtils.static XrInputSourceLocalizedNameGetInfocreate(long address)Returns a newXrInputSourceLocalizedNameGetInfoinstance for the specified memory address.static XrInputSourceLocalizedNameGetInfo.Buffercreate(long address, int capacity)Create aXrInputSourceLocalizedNameGetInfo.Bufferinstance at the specified memory.static XrInputSourceLocalizedNameGetInfocreateSafe(long address)static XrInputSourceLocalizedNameGetInfo.BuffercreateSafe(long address, int capacity)static XrInputSourceLocalizedNameGetInfomalloc()Returns a newXrInputSourceLocalizedNameGetInfoinstance allocated withmemAlloc.static XrInputSourceLocalizedNameGetInfo.Buffermalloc(int capacity)Returns a newXrInputSourceLocalizedNameGetInfo.Bufferinstance allocated withmemAlloc.static XrInputSourceLocalizedNameGetInfo.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrInputSourceLocalizedNameGetInfo.Bufferinstance allocated on the specifiedMemoryStack.static XrInputSourceLocalizedNameGetInfomalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrInputSourceLocalizedNameGetInfoinstance allocated on the specifiedMemoryStack.longnext()NULLor a pointer to the next structure in a structure chain.XrInputSourceLocalizedNameGetInfonext(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 longnsourcePath(long struct)Unsafe version ofsourcePath().static voidnsourcePath(long struct, long value)Unsafe version ofsourcePath.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.static longnwhichComponents(long struct)Unsafe version ofwhichComponents().static voidnwhichComponents(long struct, long value)Unsafe version ofwhichComponents.XrInputSourceLocalizedNameGetInfoset(int type, long next, long sourcePath, long whichComponents)Initializes this struct with the specified values.XrInputSourceLocalizedNameGetInfoset(XrInputSourceLocalizedNameGetInfo src)Copies the specified struct data to this struct.intsizeof()longsourcePath()XrInputSourceLocalizedNameGetInfosourcePath(long value)Sets the specified value to thesourcePathfield.inttype()theXrStructureTypeof this structure.XrInputSourceLocalizedNameGetInfotype(int value)Sets the specified value to thetype()field.XrInputSourceLocalizedNameGetInfotype$Default()Sets theTYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFOvalue to thetype()field.longwhichComponents()any set of flags fromXrInputSourceLocalizedNameFlagBits.XrInputSourceLocalizedNameGetInfowhichComponents(long value)Sets the specified value to thewhichComponents()field.
-
-
-
Constructor Detail
-
XrInputSourceLocalizedNameGetInfo
public XrInputSourceLocalizedNameGetInfo(java.nio.ByteBuffer container)
Creates aXrInputSourceLocalizedNameGetInfoinstance 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.
-
sourcePath
public long sourcePath()
- Returns:
- the value of the
sourcePathfield.
-
whichComponents
public long whichComponents()
any set of flags fromXrInputSourceLocalizedNameFlagBits.
-
type
public XrInputSourceLocalizedNameGetInfo type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrInputSourceLocalizedNameGetInfo type$Default()
Sets theTYPE_INPUT_SOURCE_LOCALIZED_NAME_GET_INFOvalue to thetype()field.
-
next
public XrInputSourceLocalizedNameGetInfo next(long value)
Sets the specified value to thenext()field.
-
sourcePath
public XrInputSourceLocalizedNameGetInfo sourcePath(long value)
Sets the specified value to thesourcePathfield.
-
whichComponents
public XrInputSourceLocalizedNameGetInfo whichComponents(long value)
Sets the specified value to thewhichComponents()field.
-
set
public XrInputSourceLocalizedNameGetInfo set(int type, long next, long sourcePath, long whichComponents)
Initializes this struct with the specified values.
-
set
public XrInputSourceLocalizedNameGetInfo set(XrInputSourceLocalizedNameGetInfo src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrInputSourceLocalizedNameGetInfo malloc()
Returns a newXrInputSourceLocalizedNameGetInfoinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrInputSourceLocalizedNameGetInfo calloc()
Returns a newXrInputSourceLocalizedNameGetInfoinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrInputSourceLocalizedNameGetInfo create()
Returns a newXrInputSourceLocalizedNameGetInfoinstance allocated withBufferUtils.
-
create
public static XrInputSourceLocalizedNameGetInfo create(long address)
Returns a newXrInputSourceLocalizedNameGetInfoinstance for the specified memory address.
-
createSafe
@Nullable public static XrInputSourceLocalizedNameGetInfo createSafe(long address)
-
malloc
public static XrInputSourceLocalizedNameGetInfo.Buffer malloc(int capacity)
Returns a newXrInputSourceLocalizedNameGetInfo.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrInputSourceLocalizedNameGetInfo.Buffer calloc(int capacity)
Returns a newXrInputSourceLocalizedNameGetInfo.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrInputSourceLocalizedNameGetInfo.Buffer create(int capacity)
Returns a newXrInputSourceLocalizedNameGetInfo.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrInputSourceLocalizedNameGetInfo.Buffer create(long address, int capacity)
Create aXrInputSourceLocalizedNameGetInfo.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrInputSourceLocalizedNameGetInfo.Buffer createSafe(long address, int capacity)
-
malloc
public static XrInputSourceLocalizedNameGetInfo malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrInputSourceLocalizedNameGetInfoinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrInputSourceLocalizedNameGetInfo calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrInputSourceLocalizedNameGetInfoinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrInputSourceLocalizedNameGetInfo.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrInputSourceLocalizedNameGetInfo.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrInputSourceLocalizedNameGetInfo.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrInputSourceLocalizedNameGetInfo.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().
-
nsourcePath
public static long nsourcePath(long struct)
Unsafe version ofsourcePath().
-
nwhichComponents
public static long nwhichComponents(long struct)
Unsafe version ofwhichComponents().
-
ntype
public static void ntype(long struct, int value)Unsafe version oftype.
-
nnext
public static void nnext(long struct, long value)Unsafe version ofnext.
-
nsourcePath
public static void nsourcePath(long struct, long value)Unsafe version ofsourcePath.
-
nwhichComponents
public static void nwhichComponents(long struct, long value)Unsafe version ofwhichComponents.
-
-