Package org.lwjgl.openxr
Class XrActionSuggestedBinding
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrActionSuggestedBinding
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrActionSuggestedBinding extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSuggested binding for a single action.Valid Usage (Implicit)
actionmust be a validXrActionhandle
See Also
XrInteractionProfileSuggestedBinding,SuggestInteractionProfileBindingsLayout
struct XrActionSuggestedBinding { XrActionaction(); XrPathbinding(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrActionSuggestedBinding.BufferAn array ofXrActionSuggestedBindingstructs.
-
Constructor Summary
Constructors Constructor Description XrActionSuggestedBinding(java.nio.ByteBuffer container)Creates aXrActionSuggestedBindinginstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longaction()theXrActionhandle for an actionXrActionSuggestedBindingaction(XrAction value)Sets the specified value to theaction()field.longbinding()theXrPathof a binding for the action specified inaction.XrActionSuggestedBindingbinding(long value)Sets the specified value to thebinding()field.static XrActionSuggestedBindingcalloc()Returns a newXrActionSuggestedBindinginstance allocated withmemCalloc.static XrActionSuggestedBinding.Buffercalloc(int capacity)Returns a newXrActionSuggestedBinding.Bufferinstance allocated withmemCalloc.static XrActionSuggestedBinding.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrActionSuggestedBinding.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrActionSuggestedBindingcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrActionSuggestedBindinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrActionSuggestedBindingcreate()Returns a newXrActionSuggestedBindinginstance allocated withBufferUtils.static XrActionSuggestedBinding.Buffercreate(int capacity)Returns a newXrActionSuggestedBinding.Bufferinstance allocated withBufferUtils.static XrActionSuggestedBindingcreate(long address)Returns a newXrActionSuggestedBindinginstance for the specified memory address.static XrActionSuggestedBinding.Buffercreate(long address, int capacity)Create aXrActionSuggestedBinding.Bufferinstance at the specified memory.static XrActionSuggestedBindingcreateSafe(long address)static XrActionSuggestedBinding.BuffercreateSafe(long address, int capacity)static XrActionSuggestedBindingmalloc()Returns a newXrActionSuggestedBindinginstance allocated withmemAlloc.static XrActionSuggestedBinding.Buffermalloc(int capacity)Returns a newXrActionSuggestedBinding.Bufferinstance allocated withmemAlloc.static XrActionSuggestedBinding.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrActionSuggestedBinding.Bufferinstance allocated on the specifiedMemoryStack.static XrActionSuggestedBindingmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrActionSuggestedBindinginstance allocated on the specifiedMemoryStack.static longnaction(long struct)Unsafe version ofaction().static voidnaction(long struct, XrAction value)Unsafe version ofaction.static longnbinding(long struct)Unsafe version ofbinding().static voidnbinding(long struct, long value)Unsafe version ofbinding.XrActionSuggestedBindingset(XrAction action, long binding)Initializes this struct with the specified values.XrActionSuggestedBindingset(XrActionSuggestedBinding src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
XrActionSuggestedBinding
public XrActionSuggestedBinding(java.nio.ByteBuffer container)
Creates aXrActionSuggestedBindinginstance 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
-
action
public long action()
theXrActionhandle for an action
-
binding
public long binding()
theXrPathof a binding for the action specified inaction. This path is any top level user path plus input source path, for example pathname:/user/hand/right/input/trigger/click. See suggested bindings for more details.
-
action
public XrActionSuggestedBinding action(XrAction value)
Sets the specified value to theaction()field.
-
binding
public XrActionSuggestedBinding binding(long value)
Sets the specified value to thebinding()field.
-
set
public XrActionSuggestedBinding set(XrAction action, long binding)
Initializes this struct with the specified values.
-
set
public XrActionSuggestedBinding set(XrActionSuggestedBinding src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrActionSuggestedBinding malloc()
Returns a newXrActionSuggestedBindinginstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrActionSuggestedBinding calloc()
Returns a newXrActionSuggestedBindinginstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrActionSuggestedBinding create()
Returns a newXrActionSuggestedBindinginstance allocated withBufferUtils.
-
create
public static XrActionSuggestedBinding create(long address)
Returns a newXrActionSuggestedBindinginstance for the specified memory address.
-
createSafe
@Nullable public static XrActionSuggestedBinding createSafe(long address)
-
malloc
public static XrActionSuggestedBinding.Buffer malloc(int capacity)
Returns a newXrActionSuggestedBinding.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrActionSuggestedBinding.Buffer calloc(int capacity)
Returns a newXrActionSuggestedBinding.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrActionSuggestedBinding.Buffer create(int capacity)
Returns a newXrActionSuggestedBinding.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrActionSuggestedBinding.Buffer create(long address, int capacity)
Create aXrActionSuggestedBinding.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrActionSuggestedBinding.Buffer createSafe(long address, int capacity)
-
malloc
public static XrActionSuggestedBinding malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrActionSuggestedBindinginstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrActionSuggestedBinding calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrActionSuggestedBindinginstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrActionSuggestedBinding.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrActionSuggestedBinding.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrActionSuggestedBinding.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrActionSuggestedBinding.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
naction
public static long naction(long struct)
Unsafe version ofaction().
-
nbinding
public static long nbinding(long struct)
Unsafe version ofbinding().
-
nbinding
public static void nbinding(long struct, long value)Unsafe version ofbinding.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-