Top Description Inners Fields Constructors Methods
org.lwjgl.openxr

public Class XrActionStateVector2f

extends Struct<XrActionStateVector2f>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

2D float vector action state.
Description

When multiple input sources are bound to this action, the currentState follows the previously defined rule to resolve ambiguity.

Valid Usage (Implicit)
See Also

XrVector2f, GetActionStateVector2f

Layout


struct XrActionStateVector2f {
    XrStructureType type;
    void * next;
    XrVector2f currentState;
    XrBool32 changedSinceLastSync;
    XrTime lastChangeTime;
    XrBool32 isActive;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CHANGEDSINCELASTSYNC

The struct member offsets.

public static final int
CURRENTSTATE

The struct member offsets.

public static final int
ISACTIVE

The struct member offsets.

public static final int
LASTCHANGETIME

The struct member offsets.

public static final int
NEXT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
XrActionStateVector2f(long address, ByteBuffer container)

public
XrActionStateVector2f(ByteBuffer container)

Creates a XrActionStateVector2f instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static XrActionStateVector2f
calloc()

Returns a new XrActionStateVector2f instance allocated with memCalloc.

public static XrActionStateVector2f.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new XrActionStateVector2f.Buffer instance allocated with memCalloc.

public static XrActionStateVector2f
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrActionStateVector2f instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static XrActionStateVector2f.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrActionStateVector2f.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public boolean
changedSinceLastSync()

TRUE if the value of currentState is different than it was before the most recent call to SyncActions.

public XrActionStateVector2f
changedSinceLastSync(boolean value)

Sets the specified value to the changedSinceLastSync field.

protected XrActionStateVector2f
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static XrActionStateVector2f
create()

Returns a new XrActionStateVector2f instance allocated with BufferUtils.

public static XrActionStateVector2f
create(long address)

Returns a new XrActionStateVector2f instance for the specified memory address.

public static XrActionStateVector2f.Buffer
create(int
the buffer capacity
capacity
)

Returns a new XrActionStateVector2f.Buffer instance allocated with BufferUtils.

public static XrActionStateVector2f.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a XrActionStateVector2f.Buffer instance at the specified memory.

public static XrActionStateVector2f
createSafe(long address)

Like create, but returns null if address is NULL.

public static XrActionStateVector2f.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public XrVector2f
currentState()

the current XrVector2f state of the Action.

public XrActionStateVector2f
currentState(XrVector2f value)

Copies the specified XrVector2f to the currentState field.

public XrActionStateVector2f
currentState(Consumer<XrVector2f> consumer)

Passes the currentState field to the specified Consumer.

public boolean
isActive()

TRUE if and only if there exists an input source that is contributing to the current state of this action.

public XrActionStateVector2f
isActive(boolean value)

Sets the specified value to the isActive field.

public long
lastChangeTime()

the XrTime in nanoseconds since this action’s value last changed.

public XrActionStateVector2f
lastChangeTime(long value)

Sets the specified value to the lastChangeTime field.

public static XrActionStateVector2f
malloc()

Returns a new XrActionStateVector2f instance allocated with memAlloc.

public static XrActionStateVector2f.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new XrActionStateVector2f.Buffer instance allocated with memAlloc.

public static XrActionStateVector2f
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new XrActionStateVector2f instance allocated on the specified MemoryStack.

public static XrActionStateVector2f.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new XrActionStateVector2f.Buffer instance allocated on the specified MemoryStack.

public static int
nchangedSinceLastSync(long struct)

Unsafe version of changedSinceLastSync.

public static void
nchangedSinceLastSync(long struct, int value)

Unsafe version of changedSinceLastSync.

public static XrVector2f
ncurrentState(long struct)

Unsafe version of currentState.

public static void
ncurrentState(long struct, XrVector2f value)

Unsafe version of currentState.

public long
next()

NULL or a pointer to the next structure in a structure chain.

public XrActionStateVector2f
next(long value)

Sets the specified value to the next field.

public static int
nisActive(long struct)

Unsafe version of isActive.

public static void
nisActive(long struct, int value)

Unsafe version of isActive.

public static long
nlastChangeTime(long struct)

Unsafe version of lastChangeTime.

public static void
nlastChangeTime(long struct, long value)

Unsafe version of lastChangeTime.

public static long
nnext(long struct)

Unsafe version of next.

public static void
nnext(long struct, long value)

Unsafe version of next.

public static int
ntype(long struct)

Unsafe version of type.

public static void
ntype(long struct, int value)

Unsafe version of type.

public XrActionStateVector2f
set(int type, long next, XrVector2f currentState, boolean changedSinceLastSync, long lastChangeTime, boolean isActive)

Initializes this struct with the specified values.

public XrActionStateVector2f

Returns:

this struct
set
(XrActionStateVector2f
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
type()

the XrStructureType of this structure.

public XrActionStateVector2f
type(int value)

Sets the specified value to the type field.

public XrActionStateVector2f
type$Default()

Sets the TYPE_ACTION_STATE_VECTOR2F value to the type field.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

CHANGEDSINCELASTSYNCback to summary
public static final int CHANGEDSINCELASTSYNC

The struct member offsets.

CURRENTSTATEback to summary
public static final int CURRENTSTATE

The struct member offsets.

ISACTIVEback to summary
public static final int ISACTIVE

The struct member offsets.

LASTCHANGETIMEback to summary
public static final int LASTCHANGETIME

The struct member offsets.

NEXTback to summary
public static final int NEXT

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

TYPEback to summary
public static final int TYPE

The struct member offsets.

Constructor Detail

XrActionStateVector2fback to summary
protected XrActionStateVector2f(long address, ByteBuffer container)
XrActionStateVector2fback to summary
public XrActionStateVector2f(ByteBuffer container)

Creates a XrActionStateVector2f instance at the current position of the specified ByteBuffer container. 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

callocback to summary
public static XrActionStateVector2f calloc()

Returns a new XrActionStateVector2f instance allocated with memCalloc. The instance must be explicitly freed.

callocback to summary
public static XrActionStateVector2f.Buffer calloc(int capacity)

Returns a new XrActionStateVector2f.Buffer instance allocated with memCalloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

callocback to summary
public static XrActionStateVector2f calloc(MemoryStack stack)

Returns a new XrActionStateVector2f instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
stack:MemoryStack

the stack from which to allocate

callocback to summary
public static XrActionStateVector2f.Buffer calloc(int capacity, MemoryStack stack)

Returns a new XrActionStateVector2f.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

changedSinceLastSyncback to summary
public boolean changedSinceLastSync()

TRUE if the value of currentState is different than it was before the most recent call to SyncActions.

Annotations
@NativeType:XrBool32
changedSinceLastSyncback to summary
public XrActionStateVector2f changedSinceLastSync(boolean value)

Sets the specified value to the changedSinceLastSync field.

createback to summary
protected XrActionStateVector2f create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static XrActionStateVector2f create()

Returns a new XrActionStateVector2f instance allocated with BufferUtils.

createback to summary
public static XrActionStateVector2f create(long address)

Returns a new XrActionStateVector2f instance for the specified memory address.

createback to summary
public static XrActionStateVector2f.Buffer create(int capacity)

Returns a new XrActionStateVector2f.Buffer instance allocated with BufferUtils.

Parameters
capacity:int

the buffer capacity

createback to summary
public static XrActionStateVector2f.Buffer create(long address, int capacity)

Create a XrActionStateVector2f.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static XrActionStateVector2f createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static XrActionStateVector2f.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
currentStateback to summary
public XrVector2f currentState()

the current XrVector2f state of the Action.

currentStateback to summary
public XrActionStateVector2f currentState(XrVector2f value)

Copies the specified XrVector2f to the currentState field.

currentStateback to summary
public XrActionStateVector2f currentState(Consumer<XrVector2f> consumer)

Passes the currentState field to the specified Consumer.

isActiveback to summary
public boolean isActive()

TRUE if and only if there exists an input source that is contributing to the current state of this action.

Annotations
@NativeType:XrBool32
isActiveback to summary
public XrActionStateVector2f isActive(boolean value)

Sets the specified value to the isActive field.

lastChangeTimeback to summary
public long lastChangeTime()

the XrTime in nanoseconds since this action’s value last changed.

Annotations
@NativeType:XrTime
lastChangeTimeback to summary
public XrActionStateVector2f lastChangeTime(long value)

Sets the specified value to the lastChangeTime field.

mallocback to summary
public static XrActionStateVector2f malloc()

Returns a new XrActionStateVector2f instance allocated with memAlloc. The instance must be explicitly freed.

mallocback to summary
public static XrActionStateVector2f.Buffer malloc(int capacity)

Returns a new XrActionStateVector2f.Buffer instance allocated with memAlloc. The instance must be explicitly freed.

Parameters
capacity:int

the buffer capacity

mallocback to summary
public static XrActionStateVector2f malloc(MemoryStack stack)

Returns a new XrActionStateVector2f instance allocated on the specified MemoryStack.

Parameters
stack:MemoryStack

the stack from which to allocate

mallocback to summary
public static XrActionStateVector2f.Buffer malloc(int capacity, MemoryStack stack)

Returns a new XrActionStateVector2f.Buffer instance allocated on the specified MemoryStack.

Parameters
capacity:int

the buffer capacity

stack:MemoryStack

the stack from which to allocate

nchangedSinceLastSyncback to summary
public static int nchangedSinceLastSync(long struct)

Unsafe version of changedSinceLastSync.

nchangedSinceLastSyncback to summary
public static void nchangedSinceLastSync(long struct, int value)

Unsafe version of changedSinceLastSync.

ncurrentStateback to summary
public static XrVector2f ncurrentState(long struct)

Unsafe version of currentState.

ncurrentStateback to summary
public static void ncurrentState(long struct, XrVector2f value)

Unsafe version of currentState.

nextback to summary
public long next()

NULL or a pointer to the next structure in a structure chain. No such structures are defined in core OpenXR.

Annotations
@NativeType:void *
nextback to summary
public XrActionStateVector2f next(long value)

Sets the specified value to the next field.

nisActiveback to summary
public static int nisActive(long struct)

Unsafe version of isActive.

nisActiveback to summary
public static void nisActive(long struct, int value)

Unsafe version of isActive.

nlastChangeTimeback to summary
public static long nlastChangeTime(long struct)

Unsafe version of lastChangeTime.

nlastChangeTimeback to summary
public static void nlastChangeTime(long struct, long value)

Unsafe version of lastChangeTime.

nnextback to summary
public static long nnext(long struct)

Unsafe version of next.

nnextback to summary
public static void nnext(long struct, long value)

Unsafe version of next.

ntypeback to summary
public static int ntype(long struct)

Unsafe version of type.

ntypeback to summary
public static void ntype(long struct, int value)

Unsafe version of type.

setback to summary
public XrActionStateVector2f set(int type, long next, XrVector2f currentState, boolean changedSinceLastSync, long lastChangeTime, boolean isActive)

Initializes this struct with the specified values.

setback to summary
public XrActionStateVector2f set(XrActionStateVector2f src)

Copies the specified struct data to this struct.

Parameters
src:XrActionStateVector2f

the source struct

Returns:XrActionStateVector2f

this struct

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
typeback to summary
public int type()

the XrStructureType of this structure.

Annotations
@NativeType:XrStructureType
typeback to summary
public XrActionStateVector2f type(int value)

Sets the specified value to the type field.

type$Defaultback to summary
public XrActionStateVector2f type$Default()

Sets the TYPE_ACTION_STATE_VECTOR2F value to the type field.

org.lwjgl.openxr back to summary

public Class XrActionStateVector2f.Buffer

extends StructBuffer<XrActionStateVector2f, XrActionStateVector2f.Buffer>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable

An array of XrActionStateVector2f structs.

Field Summary

Modifier and TypeField and Description
private static final XrActionStateVector2f

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new XrActionStateVector2f.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public boolean
public XrActionStateVector2f.Buffer
changedSinceLastSync(boolean value)

Sets the specified value to the XrActionStateVector2f#changedSinceLastSync field.

public XrVector2f
public XrActionStateVector2f.Buffer
currentState(XrVector2f value)

Copies the specified XrVector2f to the XrActionStateVector2f#currentState field.

public XrActionStateVector2f.Buffer
currentState(Consumer<XrVector2f> consumer)

Passes the XrActionStateVector2f#currentState field to the specified Consumer.

protected XrActionStateVector2f
public boolean

Returns:

the value of the XrActionStateVector2f#isActive field.
isActive
()

public XrActionStateVector2f.Buffer
isActive(boolean value)

Sets the specified value to the XrActionStateVector2f#isActive field.

public long

Returns:

the value of the XrActionStateVector2f#lastChangeTime field.
lastChangeTime
()

public XrActionStateVector2f.Buffer
lastChangeTime(long value)

Sets the specified value to the XrActionStateVector2f#lastChangeTime field.

public long

Returns:

the value of the XrActionStateVector2f#next field.
next
()

public XrActionStateVector2f.Buffer
next(long value)

Sets the specified value to the XrActionStateVector2f#next field.

protected XrActionStateVector2f.Buffer
public int

Returns:

the value of the XrActionStateVector2f#type field.
type
()

public XrActionStateVector2f.Buffer
type(int value)

Sets the specified value to the XrActionStateVector2f#type field.

public XrActionStateVector2f.Buffer
Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final XrActionStateVector2f ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new XrActionStateVector2f.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by XrActionStateVector2f#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

changedSinceLastSyncback to summary
public boolean changedSinceLastSync()
Returns:boolean

the value of the XrActionStateVector2f#changedSinceLastSync field.

Annotations
@NativeType:XrBool32
changedSinceLastSyncback to summary
public XrActionStateVector2f.Buffer changedSinceLastSync(boolean value)

Sets the specified value to the XrActionStateVector2f#changedSinceLastSync field.

currentStateback to summary
public XrVector2f currentState()
Returns:XrVector2f

a XrVector2f view of the XrActionStateVector2f#currentState field.

currentStateback to summary
public XrActionStateVector2f.Buffer currentState(XrVector2f value)

Copies the specified XrVector2f to the XrActionStateVector2f#currentState field.

currentStateback to summary
public XrActionStateVector2f.Buffer currentState(Consumer<XrVector2f> consumer)

Passes the XrActionStateVector2f#currentState field to the specified Consumer.

getElementFactoryback to summary
protected XrActionStateVector2f getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
isActiveback to summary
public boolean isActive()
Returns:boolean

the value of the XrActionStateVector2f#isActive field.

Annotations
@NativeType:XrBool32
isActiveback to summary
public XrActionStateVector2f.Buffer isActive(boolean value)

Sets the specified value to the XrActionStateVector2f#isActive field.

lastChangeTimeback to summary
public long lastChangeTime()
Returns:long

the value of the XrActionStateVector2f#lastChangeTime field.

Annotations
@NativeType:XrTime
lastChangeTimeback to summary
public XrActionStateVector2f.Buffer lastChangeTime(long value)

Sets the specified value to the XrActionStateVector2f#lastChangeTime field.

nextback to summary
public long next()
Returns:long

the value of the XrActionStateVector2f#next field.

Annotations
@NativeType:void *
nextback to summary
public XrActionStateVector2f.Buffer next(long value)

Sets the specified value to the XrActionStateVector2f#next field.

selfback to summary
protected XrActionStateVector2f.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
typeback to summary
public int type()
Returns:int

the value of the XrActionStateVector2f#type field.

Annotations
@NativeType:XrStructureType
typeback to summary
public XrActionStateVector2f.Buffer type(int value)

Sets the specified value to the XrActionStateVector2f#type field.

type$Defaultback to summary
public XrActionStateVector2f.Buffer type$Default()

Sets the TYPE_ACTION_STATE_VECTOR2F value to the XrActionStateVector2f#type field.