Package org.lwjgl.openxr
Class XrRect2Di.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<XrRect2Di,XrRect2Di.Buffer>
-
- org.lwjgl.openxr.XrRect2Di.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<XrRect2Di>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- XrRect2Di
public static class XrRect2Di.Buffer extends org.lwjgl.system.StructBuffer<XrRect2Di,XrRect2Di.Buffer> implements org.lwjgl.system.NativeResource
An array ofXrRect2Distructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XrExtent2Diextent()XrRect2Di.Bufferextent(java.util.function.Consumer<XrExtent2Di> consumer)Passes theXrRect2Di.extent()field to the specifiedConsumer.XrRect2Di.Bufferextent(XrExtent2Di value)Copies the specifiedXrExtent2Dito theXrRect2Di.extent()field.XrOffset2Dioffset()XrRect2Di.Bufferoffset(java.util.function.Consumer<XrOffset2Di> consumer)Passes theXrRect2Di.offset()field to the specifiedConsumer.XrRect2Di.Bufferoffset(XrOffset2Di value)Copies the specifiedXrOffset2Dito theXrRect2Di.offset()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newXrRect2Di.Bufferinstance 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 byXrRect2Di.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
offset
public XrOffset2Di offset()
- Returns:
- a
XrOffset2Diview of theXrRect2Di.offset()field.
-
extent
public XrExtent2Di extent()
- Returns:
- a
XrExtent2Diview of theXrRect2Di.extent()field.
-
offset
public XrRect2Di.Buffer offset(XrOffset2Di value)
Copies the specifiedXrOffset2Dito theXrRect2Di.offset()field.
-
offset
public XrRect2Di.Buffer offset(java.util.function.Consumer<XrOffset2Di> consumer)
Passes theXrRect2Di.offset()field to the specifiedConsumer.
-
extent
public XrRect2Di.Buffer extent(XrExtent2Di value)
Copies the specifiedXrExtent2Dito theXrRect2Di.extent()field.
-
extent
public XrRect2Di.Buffer extent(java.util.function.Consumer<XrExtent2Di> consumer)
Passes theXrRect2Di.extent()field to the specifiedConsumer.
-
-