Package org.lwjgl.openxr
Class XrKeyboardTrackingDescriptionFB
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrKeyboardTrackingDescriptionFB
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrKeyboardTrackingDescriptionFB extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescription of a trackable keyboard.Description
XrKeyboardTrackingDescriptionFBdescribes a trackable keyboard and its associated metadata.Valid Usage (Implicit)
- The
XR_FB_keyboard_trackingextension must be enabled prior to usingXrKeyboardTrackingDescriptionFB
See Also
XrVector3f,QuerySystemTrackedKeyboardFBLayout
struct XrKeyboardTrackingDescriptionFB { uint64_ttrackedKeyboardId();XrVector3fsize(); XrKeyboardTrackingFlagsFBflags(); charname()[XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrKeyboardTrackingDescriptionFB.BufferAn array ofXrKeyboardTrackingDescriptionFBstructs.
-
Constructor Summary
Constructors Constructor Description XrKeyboardTrackingDescriptionFB(java.nio.ByteBuffer container)Creates aXrKeyboardTrackingDescriptionFBinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrKeyboardTrackingDescriptionFBcalloc()Returns a newXrKeyboardTrackingDescriptionFBinstance allocated withmemCalloc.static XrKeyboardTrackingDescriptionFB.Buffercalloc(int capacity)Returns a newXrKeyboardTrackingDescriptionFB.Bufferinstance allocated withmemCalloc.static XrKeyboardTrackingDescriptionFB.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrKeyboardTrackingDescriptionFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrKeyboardTrackingDescriptionFBcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrKeyboardTrackingDescriptionFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrKeyboardTrackingDescriptionFBcreate()Returns a newXrKeyboardTrackingDescriptionFBinstance allocated withBufferUtils.static XrKeyboardTrackingDescriptionFB.Buffercreate(int capacity)Returns a newXrKeyboardTrackingDescriptionFB.Bufferinstance allocated withBufferUtils.static XrKeyboardTrackingDescriptionFBcreate(long address)Returns a newXrKeyboardTrackingDescriptionFBinstance for the specified memory address.static XrKeyboardTrackingDescriptionFB.Buffercreate(long address, int capacity)Create aXrKeyboardTrackingDescriptionFB.Bufferinstance at the specified memory.static XrKeyboardTrackingDescriptionFBcreateSafe(long address)static XrKeyboardTrackingDescriptionFB.BuffercreateSafe(long address, int capacity)longflags()additional information on the type of keyboard available.static XrKeyboardTrackingDescriptionFBmalloc()Returns a newXrKeyboardTrackingDescriptionFBinstance allocated withmemAlloc.static XrKeyboardTrackingDescriptionFB.Buffermalloc(int capacity)Returns a newXrKeyboardTrackingDescriptionFB.Bufferinstance allocated withmemAlloc.static XrKeyboardTrackingDescriptionFB.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrKeyboardTrackingDescriptionFB.Bufferinstance allocated on the specifiedMemoryStack.static XrKeyboardTrackingDescriptionFBmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrKeyboardTrackingDescriptionFBinstance allocated on the specifiedMemoryStack.java.nio.ByteBuffername()human readable keyboard identifier.java.lang.StringnameString()human readable keyboard identifier.static longnflags(long struct)Unsafe version offlags().static java.nio.ByteBuffernname(long struct)Unsafe version ofname().static java.lang.StringnnameString(long struct)Unsafe version ofnameString().static XrVector3fnsize(long struct)Unsafe version ofsize().static longntrackedKeyboardId(long struct)Unsafe version oftrackedKeyboardId().XrVector3fsize()bounding box.intsizeof()longtrackedKeyboardId()abstract identifier describing the type of keyboard.
-
-
-
Constructor Detail
-
XrKeyboardTrackingDescriptionFB
public XrKeyboardTrackingDescriptionFB(java.nio.ByteBuffer container)
Creates aXrKeyboardTrackingDescriptionFBinstance 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
-
trackedKeyboardId
public long trackedKeyboardId()
abstract identifier describing the type of keyboard.
-
size
public XrVector3f size()
bounding box.
-
flags
public long flags()
additional information on the type of keyboard available. IfKEYBOARD_TRACKING_EXISTS_BIT_FBis not set there is no keyboard.
-
name, nameString
public java.nio.ByteBuffer name() public java.lang.String nameString()
human readable keyboard identifier.
-
malloc
public static XrKeyboardTrackingDescriptionFB malloc()
Returns a newXrKeyboardTrackingDescriptionFBinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrKeyboardTrackingDescriptionFB calloc()
Returns a newXrKeyboardTrackingDescriptionFBinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrKeyboardTrackingDescriptionFB create()
Returns a newXrKeyboardTrackingDescriptionFBinstance allocated withBufferUtils.
-
create
public static XrKeyboardTrackingDescriptionFB create(long address)
Returns a newXrKeyboardTrackingDescriptionFBinstance for the specified memory address.
-
createSafe
@Nullable public static XrKeyboardTrackingDescriptionFB createSafe(long address)
-
malloc
public static XrKeyboardTrackingDescriptionFB.Buffer malloc(int capacity)
Returns a newXrKeyboardTrackingDescriptionFB.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrKeyboardTrackingDescriptionFB.Buffer calloc(int capacity)
Returns a newXrKeyboardTrackingDescriptionFB.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrKeyboardTrackingDescriptionFB.Buffer create(int capacity)
Returns a newXrKeyboardTrackingDescriptionFB.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrKeyboardTrackingDescriptionFB.Buffer create(long address, int capacity)
Create aXrKeyboardTrackingDescriptionFB.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrKeyboardTrackingDescriptionFB.Buffer createSafe(long address, int capacity)
-
malloc
public static XrKeyboardTrackingDescriptionFB malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrKeyboardTrackingDescriptionFBinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrKeyboardTrackingDescriptionFB calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrKeyboardTrackingDescriptionFBinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrKeyboardTrackingDescriptionFB.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrKeyboardTrackingDescriptionFB.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrKeyboardTrackingDescriptionFB.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrKeyboardTrackingDescriptionFB.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntrackedKeyboardId
public static long ntrackedKeyboardId(long struct)
Unsafe version oftrackedKeyboardId().
-
nsize
public static XrVector3f nsize(long struct)
Unsafe version ofsize().
-
nflags
public static long nflags(long struct)
Unsafe version offlags().
-
nname
public static java.nio.ByteBuffer nname(long struct)
Unsafe version ofname().
-
nnameString
public static java.lang.String nnameString(long struct)
Unsafe version ofnameString().
-
-