public static class NkStyleItemData.Buffer extends org.lwjgl.system.StructBuffer<NkStyleItemData,NkStyleItemData.Buffer> implements org.lwjgl.system.NativeResource
NkStyleItemData structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NkStyleItemData.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
NkColor |
color()
Returns a
NkColor view of the color field. |
NkStyleItemData.Buffer |
color(java.util.function.Consumer<NkColor> consumer)
Passes the
color field to the specified Consumer. |
NkStyleItemData.Buffer |
color(NkColor value)
Copies the specified
NkColor to the color field. |
NkImage |
image()
Returns a
NkImage view of the image field. |
NkStyleItemData.Buffer |
image(java.util.function.Consumer<NkImage> consumer)
Passes the
image field to the specified Consumer. |
NkStyleItemData.Buffer |
image(NkImage value)
Copies the specified
NkImage to the image field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
NkStyleItemData.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 NkStyleItemData.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 NkStyleItemData.Buffer image(NkImage value)
NkImage to the image field.public NkStyleItemData.Buffer image(java.util.function.Consumer<NkImage> consumer)
image field to the specified Consumer.public NkStyleItemData.Buffer color(NkColor value)
NkColor to the color field.public NkStyleItemData.Buffer color(java.util.function.Consumer<NkColor> consumer)
color field to the specified Consumer.Copyright LWJGL. All Rights Reserved. License terms.