Package org.lwjgl.nuklear
Class NkStyleChart.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleChart,NkStyleChart.Buffer>
-
- org.lwjgl.nuklear.NkStyleChart.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<NkStyleChart>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleChart
public static class NkStyleChart.Buffer extends org.lwjgl.system.StructBuffer<NkStyleChart,NkStyleChart.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStyleChartstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItembackground()NkStyleChart.Bufferbackground(java.util.function.Consumer<NkStyleItem> consumer)Passes thebackgroundfield to the specifiedConsumer.NkStyleChart.Bufferbackground(NkStyleItem value)Copies the specifiedNkStyleItemto thebackgroundfield.floatborder()NkStyleChart.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()NkStyleChart.Bufferborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleChart.Bufferborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.NkColorcolor()NkStyleChart.Buffercolor(java.util.function.Consumer<NkColor> consumer)Passes thecolorfield to the specifiedConsumer.NkStyleChart.Buffercolor(NkColor value)Copies the specifiedNkColorto thecolorfield.NkVec2padding()NkStyleChart.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleChart.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()NkStyleChart.Bufferrounding(float value)Sets the specified value to theroundingfield.NkColorselected_color()NkStyleChart.Bufferselected_color(java.util.function.Consumer<NkColor> consumer)Passes theselected_colorfield to the specifiedConsumer.NkStyleChart.Bufferselected_color(NkColor value)Copies the specifiedNkColorto theselected_colorfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleChart.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 byNkStyleChart.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
-
background
public NkStyleItem background()
- Returns:
- a
NkStyleItemview of thebackgroundfield.
-
border
public float border()
- Returns:
- the value of the
borderfield.
-
rounding
public float rounding()
- Returns:
- the value of the
roundingfield.
-
background
public NkStyleChart.Buffer background(NkStyleItem value)
Copies the specifiedNkStyleItemto thebackgroundfield.
-
background
public NkStyleChart.Buffer background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackgroundfield to the specifiedConsumer.
-
border_color
public NkStyleChart.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
border_color
public NkStyleChart.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
selected_color
public NkStyleChart.Buffer selected_color(NkColor value)
Copies the specifiedNkColorto theselected_colorfield.
-
selected_color
public NkStyleChart.Buffer selected_color(java.util.function.Consumer<NkColor> consumer)
Passes theselected_colorfield to the specifiedConsumer.
-
color
public NkStyleChart.Buffer color(NkColor value)
Copies the specifiedNkColorto thecolorfield.
-
color
public NkStyleChart.Buffer color(java.util.function.Consumer<NkColor> consumer)
Passes thecolorfield to the specifiedConsumer.
-
border
public NkStyleChart.Buffer border(float value)
Sets the specified value to theborderfield.
-
rounding
public NkStyleChart.Buffer rounding(float value)
Sets the specified value to theroundingfield.
-
padding
public NkStyleChart.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
padding
public NkStyleChart.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
-