Package org.lwjgl.openxr
Class XrRect2Df
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openxr.XrRect2Df
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class XrRect2Df extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceRect in two dimensions.Description
This structure is used for component values that may be fractional (floating-point).
See Also
Layout
struct XrRect2Df {XrOffset2Dfoffset();XrExtent2Dfextent(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXrRect2Df.BufferAn array ofXrRect2Dfstructs.
-
Constructor Summary
Constructors Constructor Description XrRect2Df(java.nio.ByteBuffer container)Creates aXrRect2Dfinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static XrRect2Dfcalloc()Returns a newXrRect2Dfinstance allocated withmemCalloc.static XrRect2Df.Buffercalloc(int capacity)Returns a newXrRect2Df.Bufferinstance allocated withmemCalloc.static XrRect2Df.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrRect2Df.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRect2Dfcalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrRect2Dfinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static XrRect2Dfcreate()Returns a newXrRect2Dfinstance allocated withBufferUtils.static XrRect2Df.Buffercreate(int capacity)Returns a newXrRect2Df.Bufferinstance allocated withBufferUtils.static XrRect2Dfcreate(long address)Returns a newXrRect2Dfinstance for the specified memory address.static XrRect2Df.Buffercreate(long address, int capacity)Create aXrRect2Df.Bufferinstance at the specified memory.static XrRect2DfcreateSafe(long address)static XrRect2Df.BuffercreateSafe(long address, int capacity)XrExtent2Dfextent()theXrExtent2Dfspecifying the rectangle extent.XrRect2Dfextent(java.util.function.Consumer<XrExtent2Df> consumer)Passes theextent()field to the specifiedConsumer.XrRect2Dfextent(XrExtent2Df value)Copies the specifiedXrExtent2Dfto theextent()field.static XrRect2Dfmalloc()Returns a newXrRect2Dfinstance allocated withmemAlloc.static XrRect2Df.Buffermalloc(int capacity)Returns a newXrRect2Df.Bufferinstance allocated withmemAlloc.static XrRect2Df.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newXrRect2Df.Bufferinstance allocated on the specifiedMemoryStack.static XrRect2Dfmalloc(org.lwjgl.system.MemoryStack stack)Returns a newXrRect2Dfinstance allocated on the specifiedMemoryStack.static XrExtent2Dfnextent(long struct)Unsafe version ofextent().static voidnextent(long struct, XrExtent2Df value)Unsafe version ofextent.static XrOffset2Dfnoffset(long struct)Unsafe version ofoffset().static voidnoffset(long struct, XrOffset2Df value)Unsafe version ofoffset.XrOffset2Dfoffset()theXrOffset2Dfspecifying the rectangle offset.XrRect2Dfoffset(java.util.function.Consumer<XrOffset2Df> consumer)Passes theoffset()field to the specifiedConsumer.XrRect2Dfoffset(XrOffset2Df value)Copies the specifiedXrOffset2Dfto theoffset()field.XrRect2Dfset(XrOffset2Df offset, XrExtent2Df extent)Initializes this struct with the specified values.XrRect2Dfset(XrRect2Df src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
XrRect2Df
public XrRect2Df(java.nio.ByteBuffer container)
Creates aXrRect2Dfinstance 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
-
offset
public XrOffset2Df offset()
theXrOffset2Dfspecifying the rectangle offset.
-
extent
public XrExtent2Df extent()
theXrExtent2Dfspecifying the rectangle extent.
-
offset
public XrRect2Df offset(XrOffset2Df value)
Copies the specifiedXrOffset2Dfto theoffset()field.
-
offset
public XrRect2Df offset(java.util.function.Consumer<XrOffset2Df> consumer)
Passes theoffset()field to the specifiedConsumer.
-
extent
public XrRect2Df extent(XrExtent2Df value)
Copies the specifiedXrExtent2Dfto theextent()field.
-
extent
public XrRect2Df extent(java.util.function.Consumer<XrExtent2Df> consumer)
Passes theextent()field to the specifiedConsumer.
-
set
public XrRect2Df set(XrOffset2Df offset, XrExtent2Df extent)
Initializes this struct with the specified values.
-
set
public XrRect2Df set(XrRect2Df src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static XrRect2Df malloc()
Returns a newXrRect2Dfinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static XrRect2Df calloc()
Returns a newXrRect2Dfinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static XrRect2Df create()
Returns a newXrRect2Dfinstance allocated withBufferUtils.
-
create
public static XrRect2Df create(long address)
Returns a newXrRect2Dfinstance for the specified memory address.
-
createSafe
@Nullable public static XrRect2Df createSafe(long address)
-
malloc
public static XrRect2Df.Buffer malloc(int capacity)
Returns a newXrRect2Df.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static XrRect2Df.Buffer calloc(int capacity)
Returns a newXrRect2Df.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static XrRect2Df.Buffer create(int capacity)
Returns a newXrRect2Df.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static XrRect2Df.Buffer create(long address, int capacity)
Create aXrRect2Df.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static XrRect2Df.Buffer createSafe(long address, int capacity)
-
malloc
public static XrRect2Df malloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrRect2Dfinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static XrRect2Df calloc(org.lwjgl.system.MemoryStack stack)
Returns a newXrRect2Dfinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static XrRect2Df.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrRect2Df.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static XrRect2Df.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newXrRect2Df.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
noffset
public static XrOffset2Df noffset(long struct)
Unsafe version ofoffset().
-
nextent
public static XrExtent2Df nextent(long struct)
Unsafe version ofextent().
-
noffset
public static void noffset(long struct, XrOffset2Df value)Unsafe version ofoffset.
-
nextent
public static void nextent(long struct, XrExtent2Df value)Unsafe version ofextent.
-
-