Package org.lwjgl.openxr
Class XrInteractionProfileSuggestedBinding
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrInteractionProfileSuggestedBinding
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrInteractionProfileSuggestedBinding extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSuggested bindings for a interaction profile.Valid Usage (Implicit)
typemust beTYPE_INTERACTION_PROFILE_SUGGESTED_BINDINGnextmust beNULLor a valid pointer to the next structure in a structure chain. See also:XrBindingModificationsKHRsuggestedBindingsmust be a pointer to an array ofcountSuggestedBindingsvalidXrActionSuggestedBindingstructures- The
countSuggestedBindingsparameter must be greater than 0
See Also
XrActionSuggestedBinding,SuggestInteractionProfileBindingsLayout
struct XrInteractionProfileSuggestedBinding { XrStructureTypetype(); void const *next(); XrPathinteractionProfile(); uint32_tcountSuggestedBindings();XrActionSuggestedBindingconst *suggestedBindings(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrInteractionProfileSuggestedBinding.BufferAn array ofXrInteractionProfileSuggestedBindingstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOUNTSUGGESTEDBINDINGS
INTERACTIONPROFILE
NEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSUGGESTEDBINDINGS
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description XrInteractionProfileSuggestedBinding(java.nio.ByteBuffer container)Creates aXrInteractionProfileSuggestedBindinginstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrInteractionProfileSuggestedBindingcalloc()Returns a newXrInteractionProfileSuggestedBindinginstance allocated withmemCalloc.static XrInteractionProfileSuggestedBinding.Buffercalloc(int capacity)Returns a newXrInteractionProfileSuggestedBinding.Bufferinstance allocated withmemCalloc.static XrInteractionProfileSuggestedBinding.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrInteractionProfileSuggestedBinding.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrInteractionProfileSuggestedBindingcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrInteractionProfileSuggestedBindinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcountSuggestedBindings()the number of suggested bindings in the array pointed to bysuggestedBindings.static XrInteractionProfileSuggestedBindingcreate()Returns a newXrInteractionProfileSuggestedBindinginstance allocated withBufferUtils.static XrInteractionProfileSuggestedBinding.Buffercreate(int capacity)Returns a newXrInteractionProfileSuggestedBinding.Bufferinstance allocated withBufferUtils.static XrInteractionProfileSuggestedBindingcreate(long address)Returns a newXrInteractionProfileSuggestedBindinginstance for the specified memory address.static XrInteractionProfileSuggestedBinding.Buffercreate(long address, int capacity)Create aXrInteractionProfileSuggestedBinding.Bufferinstance at the specified memory.static XrInteractionProfileSuggestedBindingcreateSafe(long address)static XrInteractionProfileSuggestedBinding.BuffercreateSafe(long address, int capacity)longinteractionProfile()theXrPathof an interaction profile.XrInteractionProfileSuggestedBindinginteractionProfile(long value)Sets the specified value to theinteractionProfile()field.static XrInteractionProfileSuggestedBindingmalloc()Returns a newXrInteractionProfileSuggestedBindinginstance allocated withmemAlloc.static XrInteractionProfileSuggestedBinding.Buffermalloc(int capacity)Returns a newXrInteractionProfileSuggestedBinding.Bufferinstance allocated withmemAlloc.static XrInteractionProfileSuggestedBinding.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrInteractionProfileSuggestedBinding.Bufferinstance allocated on the specifiedMemoryStack.static XrInteractionProfileSuggestedBindingmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrInteractionProfileSuggestedBindinginstance allocated on the specifiedMemoryStack.static intncountSuggestedBindings(long struct)Unsafe version ofcountSuggestedBindings().static voidncountSuggestedBindings(long struct, int value)Sets the specified value to thecountSuggestedBindingsfield of the specifiedstruct.longnext()NULLor a pointer to the next structure in a structure chain.XrInteractionProfileSuggestedBindingnext(long value)Sets the specified value to thenext()field.XrInteractionProfileSuggestedBindingnext(XrBindingModificationsKHR value)Prepends the specifiedXrBindingModificationsKHRvalue to thenextchain.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 XrActionSuggestedBinding.BuffernsuggestedBindings(long struct)Unsafe version ofsuggestedBindings().static voidnsuggestedBindings(long struct, XrActionSuggestedBinding.Buffer value)Unsafe version ofsuggestedBindings.static intntype(long struct)Unsafe version oftype().static voidntype(long struct, int value)Unsafe version oftype.XrInteractionProfileSuggestedBindingset(int type, long next, long interactionProfile, XrActionSuggestedBinding.Buffer suggestedBindings)Initializes this struct with the specified values.XrInteractionProfileSuggestedBindingset(XrInteractionProfileSuggestedBinding src)Copies the specified struct data to this struct.intsizeof()XrActionSuggestedBinding.BuffersuggestedBindings()a pointer to an array ofXrActionSuggestedBindingstructures that define all of the application’s suggested bindings for the specified interaction profile.XrInteractionProfileSuggestedBindingsuggestedBindings(XrActionSuggestedBinding.Buffer value)Sets the address of the specifiedXrActionSuggestedBinding.Bufferto thesuggestedBindings()field.inttype()theXrStructureTypeof this structure.XrInteractionProfileSuggestedBindingtype(int value)Sets the specified value to thetype()field.XrInteractionProfileSuggestedBindingtype$Default()Sets theTYPE_INTERACTION_PROFILE_SUGGESTED_BINDINGvalue to thetype()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrInteractionProfileSuggestedBinding
public XrInteractionProfileSuggestedBinding(java.nio.ByteBuffer container)
Creates aXrInteractionProfileSuggestedBindinginstance 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 an interaction profile.
-
countSuggestedBindings
public int countSuggestedBindings()
the number of suggested bindings in the array pointed to bysuggestedBindings.
-
suggestedBindings
public XrActionSuggestedBinding.Buffer suggestedBindings()
a pointer to an array ofXrActionSuggestedBindingstructures that define all of the application’s suggested bindings for the specified interaction profile.
-
type
public XrInteractionProfileSuggestedBinding type(int value)
Sets the specified value to thetype()field.
-
type$Default
public XrInteractionProfileSuggestedBinding type$Default()
Sets theTYPE_INTERACTION_PROFILE_SUGGESTED_BINDINGvalue to thetype()field.
-
next
public XrInteractionProfileSuggestedBinding next(long value)
Sets the specified value to thenext()field.
-
next
public XrInteractionProfileSuggestedBinding next(XrBindingModificationsKHR value)
Prepends the specifiedXrBindingModificationsKHRvalue to thenextchain.
-
interactionProfile
public XrInteractionProfileSuggestedBinding interactionProfile(long value)
Sets the specified value to theinteractionProfile()field.
-
suggestedBindings
public XrInteractionProfileSuggestedBinding suggestedBindings(XrActionSuggestedBinding.Buffer value)
Sets the address of the specifiedXrActionSuggestedBinding.Bufferto thesuggestedBindings()field.
-
set
public XrInteractionProfileSuggestedBinding set(int type, long next, long interactionProfile, XrActionSuggestedBinding.Buffer suggestedBindings)
Initializes this struct with the specified values.
-
set
public XrInteractionProfileSuggestedBinding set(XrInteractionProfileSuggestedBinding src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrInteractionProfileSuggestedBinding malloc()
Returns a newXrInteractionProfileSuggestedBindinginstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrInteractionProfileSuggestedBinding calloc()
Returns a newXrInteractionProfileSuggestedBindinginstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrInteractionProfileSuggestedBinding create()
Returns a newXrInteractionProfileSuggestedBindinginstance allocated withBufferUtils.
-
create
public static XrInteractionProfileSuggestedBinding create(long address)
Returns a newXrInteractionProfileSuggestedBindinginstance for the specified memory address.
-
createSafe
@Nullable public static XrInteractionProfileSuggestedBinding createSafe(long address)
-
malloc
public static XrInteractionProfileSuggestedBinding.Buffer malloc(int capacity)
Returns a newXrInteractionProfileSuggestedBinding.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrInteractionProfileSuggestedBinding.Buffer calloc(int capacity)
Returns a newXrInteractionProfileSuggestedBinding.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrInteractionProfileSuggestedBinding.Buffer create(int capacity)
Returns a newXrInteractionProfileSuggestedBinding.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrInteractionProfileSuggestedBinding.Buffer create(long address, int capacity)
Create aXrInteractionProfileSuggestedBinding.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrInteractionProfileSuggestedBinding.Buffer createSafe(long address, int capacity)
-
malloc
public static XrInteractionProfileSuggestedBinding malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrInteractionProfileSuggestedBindinginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrInteractionProfileSuggestedBinding calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrInteractionProfileSuggestedBindinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrInteractionProfileSuggestedBinding.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrInteractionProfileSuggestedBinding.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrInteractionProfileSuggestedBinding.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrInteractionProfileSuggestedBinding.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().
-
ncountSuggestedBindings
public static int ncountSuggestedBindings(long struct)
Unsafe version ofcountSuggestedBindings().
-
nsuggestedBindings
public static XrActionSuggestedBinding.Buffer nsuggestedBindings(long struct)
Unsafe version ofsuggestedBindings().
-
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.
-
ncountSuggestedBindings
public static void ncountSuggestedBindings(long struct, int value)Sets the specified value to thecountSuggestedBindingsfield of the specifiedstruct.
-
nsuggestedBindings
public static void nsuggestedBindings(long struct, XrActionSuggestedBinding.Buffer value)Unsafe version ofsuggestedBindings.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-