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 ofNkStyleChart
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItem
background()
Returns aNkStyleItem
view of thebackground
field.NkStyleChart.Buffer
background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackground
field to the specifiedConsumer
.NkStyleChart.Buffer
background(NkStyleItem value)
Copies the specifiedNkStyleItem
to thebackground
field.float
border()
Returns the value of theborder
field.NkStyleChart.Buffer
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleChart.Buffer
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleChart.Buffer
border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.NkColor
color()
Returns aNkColor
view of thecolor
field.NkStyleChart.Buffer
color(java.util.function.Consumer<NkColor> consumer)
Passes thecolor
field to the specifiedConsumer
.NkStyleChart.Buffer
color(NkColor value)
Copies the specifiedNkColor
to thecolor
field.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleChart.Buffer
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleChart.Buffer
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.float
rounding()
Returns the value of therounding
field.NkStyleChart.Buffer
rounding(float value)
Sets the specified value to therounding
field.NkColor
selected_color()
Returns aNkColor
view of theselected_color
field.NkStyleChart.Buffer
selected_color(java.util.function.Consumer<NkColor> consumer)
Passes theselected_color
field to the specifiedConsumer
.NkStyleChart.Buffer
selected_color(NkColor value)
Copies the specifiedNkColor
to theselected_color
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleChart.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 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 aNkStyleItem
view of thebackground
field.
-
border
public float border()
Returns the value of theborder
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
background
public NkStyleChart.Buffer background(NkStyleItem value)
Copies the specifiedNkStyleItem
to thebackground
field.
-
background
public NkStyleChart.Buffer background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackground
field to the specifiedConsumer
.
-
border_color
public NkStyleChart.Buffer border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleChart.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
selected_color
public NkStyleChart.Buffer selected_color(NkColor value)
Copies the specifiedNkColor
to theselected_color
field.
-
selected_color
public NkStyleChart.Buffer selected_color(java.util.function.Consumer<NkColor> consumer)
Passes theselected_color
field to the specifiedConsumer
.
-
color
public NkStyleChart.Buffer color(NkColor value)
Copies the specifiedNkColor
to thecolor
field.
-
color
public NkStyleChart.Buffer color(java.util.function.Consumer<NkColor> consumer)
Passes thecolor
field to the specifiedConsumer
.
-
border
public NkStyleChart.Buffer border(float value)
Sets the specified value to theborder
field.
-
rounding
public NkStyleChart.Buffer rounding(float value)
Sets the specified value to therounding
field.
-
padding
public NkStyleChart.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleChart.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
-