public static class NkCursor.Buffer extends org.lwjgl.system.StructBuffer<NkCursor,NkCursor.Buffer> implements org.lwjgl.system.NativeResource
NkCursor structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NkCursor.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
NkImage |
img()
Returns a
NkImage view of the img field. |
NkCursor.Buffer |
img(java.util.function.Consumer<NkImage> consumer)
Passes the
img field to the specified Consumer. |
NkCursor.Buffer |
img(NkImage value)
Copies the specified
NkImage to the img field. |
NkVec2 |
offset()
Returns a
NkVec2 view of the offset field. |
NkCursor.Buffer |
offset(java.util.function.Consumer<NkVec2> consumer)
Passes the
offset field to the specified Consumer. |
NkCursor.Buffer |
offset(NkVec2 value)
Copies the specified
NkVec2 to the offset field. |
NkVec2 |
size()
Returns a
NkVec2 view of the size field. |
NkCursor.Buffer |
size(java.util.function.Consumer<NkVec2> consumer)
Passes the
size field to the specified Consumer. |
NkCursor.Buffer |
size(NkVec2 value)
Copies the specified
NkVec2 to the size field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
NkCursor.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 NkCursor.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public NkCursor.Buffer img(NkImage value)
NkImage to the img field.public NkCursor.Buffer img(java.util.function.Consumer<NkImage> consumer)
img field to the specified Consumer.public NkCursor.Buffer size(NkVec2 value)
NkVec2 to the size field.public NkCursor.Buffer size(java.util.function.Consumer<NkVec2> consumer)
size field to the specified Consumer.public NkCursor.Buffer offset(NkVec2 value)
NkVec2 to the offset field.public NkCursor.Buffer offset(java.util.function.Consumer<NkVec2> consumer)
offset field to the specified Consumer.Copyright LWJGL. All Rights Reserved. License terms.