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