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.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkStyleChart.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItembackground()Returns aNkStyleItemview of thebackgroundfield.NkStyleChart.Bufferbackground(java.util.function.Consumer<NkStyleItem> consumer)Passes thebackgroundfield to the specifiedConsumer.NkStyleChart.Bufferbackground(NkStyleItem value)Copies the specifiedNkStyleItemto thebackgroundfield.floatborder()Returns the value of theborderfield.NkStyleChart.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.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()Returns aNkColorview of thecolorfield.NkStyleChart.Buffercolor(java.util.function.Consumer<NkColor> consumer)Passes thecolorfield to the specifiedConsumer.NkStyleChart.Buffercolor(NkColor value)Copies the specifiedNkColorto thecolorfield.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleChart.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleChart.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()Returns the value of theroundingfield.NkStyleChart.Bufferrounding(float value)Sets the specified value to theroundingfield.NkColorselected_color()Returns aNkColorview of theselected_colorfield.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 aNkStyleItemview of thebackgroundfield.
-
background
public NkStyleChart.Buffer background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackgroundfield to the specifiedConsumer.
-
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(java.util.function.Consumer<NkColor> consumer)
Passes theselected_colorfield to the specifiedConsumer.
-
color
public NkStyleChart.Buffer color(java.util.function.Consumer<NkColor> consumer)
Passes thecolorfield to the specifiedConsumer.
-
border
public float border()
Returns the value of theborderfield.
-
rounding
public float rounding()
Returns the value of theroundingfield.
-
padding
public NkStyleChart.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
background
public NkStyleChart.Buffer background(NkStyleItem value)
Copies the specifiedNkStyleItemto thebackgroundfield.
-
border_color
public NkStyleChart.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
selected_color
public NkStyleChart.Buffer selected_color(NkColor value)
Copies the specifiedNkColorto theselected_colorfield.
-
color
public NkStyleChart.Buffer color(NkColor value)
Copies the specifiedNkColorto thecolorfield.
-
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.
-
-