Package org.lwjgl.nuklear
Class NkStyleProgress.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleProgress,NkStyleProgress.Buffer>
-
- org.lwjgl.nuklear.NkStyleProgress.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<NkStyleProgress>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleProgress
public static class NkStyleProgress.Buffer extends org.lwjgl.system.StructBuffer<NkStyleProgress,NkStyleProgress.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStyleProgress
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItem
active()
Returns aNkStyleItem
view of theactive
field.NkStyleProgress.Buffer
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.NkStyleProgress.Buffer
active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.float
border()
Returns the value of theborder
field.NkStyleProgress.Buffer
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleProgress.Buffer
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleProgress.Buffer
border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.NkStyleItem
cursor_active()
Returns aNkStyleItem
view of thecursor_active
field.NkStyleProgress.Buffer
cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_active
field to the specifiedConsumer
.NkStyleProgress.Buffer
cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_active
field.float
cursor_border()
Returns the value of thecursor_border
field.NkStyleProgress.Buffer
cursor_border(float value)
Sets the specified value to thecursor_border
field.NkColor
cursor_border_color()
Returns aNkColor
view of thecursor_border_color
field.NkStyleProgress.Buffer
cursor_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_border_color
field to the specifiedConsumer
.NkStyleProgress.Buffer
cursor_border_color(NkColor value)
Copies the specifiedNkColor
to thecursor_border_color
field.NkStyleItem
cursor_hover()
Returns aNkStyleItem
view of thecursor_hover
field.NkStyleProgress.Buffer
cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hover
field to the specifiedConsumer
.NkStyleProgress.Buffer
cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_hover
field.NkStyleItem
cursor_normal()
Returns aNkStyleItem
view of thecursor_normal
field.NkStyleProgress.Buffer
cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normal
field to the specifiedConsumer
.NkStyleProgress.Buffer
cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_normal
field.float
cursor_rounding()
Returns the value of thecursor_rounding
field.NkStyleProgress.Buffer
cursor_rounding(float value)
Sets the specified value to thecursor_rounding
field.NkDrawBeginCallback
draw_begin()
Returns the value of thedraw_begin
field.NkStyleProgress.Buffer
draw_begin(NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.NkDrawEndCallback
draw_end()
Returns the value of thedraw_end
field.NkStyleProgress.Buffer
draw_end(NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.NkStyleItem
hover()
Returns aNkStyleItem
view of thehover
field.NkStyleProgress.Buffer
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.NkStyleProgress.Buffer
hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.NkStyleItem
normal()
Returns aNkStyleItem
view of thenormal
field.NkStyleProgress.Buffer
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.NkStyleProgress.Buffer
normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleProgress.Buffer
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleProgress.Buffer
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.float
rounding()
Returns the value of therounding
field.NkStyleProgress.Buffer
rounding(float value)
Sets the specified value to therounding
field.NkHandle
userdata()
Returns aNkHandle
view of theuserdata
field.NkStyleProgress.Buffer
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.NkStyleProgress.Buffer
userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleProgress.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 byNkStyleProgress.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
-
normal
public NkStyleItem normal()
Returns aNkStyleItem
view of thenormal
field.
-
hover
public NkStyleItem hover()
Returns aNkStyleItem
view of thehover
field.
-
active
public NkStyleItem active()
Returns aNkStyleItem
view of theactive
field.
-
cursor_normal
public NkStyleItem cursor_normal()
Returns aNkStyleItem
view of thecursor_normal
field.
-
cursor_hover
public NkStyleItem cursor_hover()
Returns aNkStyleItem
view of thecursor_hover
field.
-
cursor_active
public NkStyleItem cursor_active()
Returns aNkStyleItem
view of thecursor_active
field.
-
cursor_border_color
public NkColor cursor_border_color()
Returns aNkColor
view of thecursor_border_color
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
border
public float border()
Returns the value of theborder
field.
-
cursor_border
public float cursor_border()
Returns the value of thecursor_border
field.
-
cursor_rounding
public float cursor_rounding()
Returns the value of thecursor_rounding
field.
-
draw_begin
@Nullable public NkDrawBeginCallback draw_begin()
Returns the value of thedraw_begin
field.
-
draw_end
@Nullable public NkDrawEndCallback draw_end()
Returns the value of thedraw_end
field.
-
normal
public NkStyleProgress.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.
-
normal
public NkStyleProgress.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.
-
hover
public NkStyleProgress.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.
-
hover
public NkStyleProgress.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.
-
active
public NkStyleProgress.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.
-
active
public NkStyleProgress.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.
-
border_color
public NkStyleProgress.Buffer border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleProgress.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
cursor_normal
public NkStyleProgress.Buffer cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_normal
field.
-
cursor_normal
public NkStyleProgress.Buffer cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normal
field to the specifiedConsumer
.
-
cursor_hover
public NkStyleProgress.Buffer cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_hover
field.
-
cursor_hover
public NkStyleProgress.Buffer cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hover
field to the specifiedConsumer
.
-
cursor_active
public NkStyleProgress.Buffer cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_active
field.
-
cursor_active
public NkStyleProgress.Buffer cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_active
field to the specifiedConsumer
.
-
cursor_border_color
public NkStyleProgress.Buffer cursor_border_color(NkColor value)
Copies the specifiedNkColor
to thecursor_border_color
field.
-
cursor_border_color
public NkStyleProgress.Buffer cursor_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_border_color
field to the specifiedConsumer
.
-
rounding
public NkStyleProgress.Buffer rounding(float value)
Sets the specified value to therounding
field.
-
border
public NkStyleProgress.Buffer border(float value)
Sets the specified value to theborder
field.
-
cursor_border
public NkStyleProgress.Buffer cursor_border(float value)
Sets the specified value to thecursor_border
field.
-
cursor_rounding
public NkStyleProgress.Buffer cursor_rounding(float value)
Sets the specified value to thecursor_rounding
field.
-
padding
public NkStyleProgress.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleProgress.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
userdata
public NkStyleProgress.Buffer userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
userdata
public NkStyleProgress.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.
-
draw_begin
public NkStyleProgress.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.
-
draw_end
public NkStyleProgress.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.
-
-