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 ofNkStyleProgressstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()NkStyleProgress.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleProgress.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()NkStyleProgress.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()NkStyleProgress.Bufferborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleProgress.Bufferborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.NkStyleItemcursor_active()NkStyleProgress.Buffercursor_active(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_activefield to the specifiedConsumer.NkStyleProgress.Buffercursor_active(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_activefield.floatcursor_border()NkStyleProgress.Buffercursor_border(float value)Sets the specified value to thecursor_borderfield.NkColorcursor_border_color()NkStyleProgress.Buffercursor_border_color(java.util.function.Consumer<NkColor> consumer)Passes thecursor_border_colorfield to the specifiedConsumer.NkStyleProgress.Buffercursor_border_color(NkColor value)Copies the specifiedNkColorto thecursor_border_colorfield.NkStyleItemcursor_hover()NkStyleProgress.Buffercursor_hover(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_hoverfield to the specifiedConsumer.NkStyleProgress.Buffercursor_hover(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_hoverfield.NkStyleItemcursor_normal()NkStyleProgress.Buffercursor_normal(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_normalfield to the specifiedConsumer.NkStyleProgress.Buffercursor_normal(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_normalfield.floatcursor_rounding()NkStyleProgress.Buffercursor_rounding(float value)Sets the specified value to thecursor_roundingfield.NkDrawBeginCallbackdraw_begin()NkStyleProgress.Bufferdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()NkStyleProgress.Bufferdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()NkStyleProgress.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleProgress.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleItemnormal()NkStyleProgress.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleProgress.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()NkStyleProgress.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleProgress.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()NkStyleProgress.Bufferrounding(float value)Sets the specified value to theroundingfield.NkHandleuserdata()NkStyleProgress.Bufferuserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.NkStyleProgress.Bufferuserdata(NkHandle value)Copies the specifiedNkHandleto theuserdatafield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleProgress.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 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:
- a
NkStyleItemview of thenormalfield.
-
hover
public NkStyleItem hover()
- Returns:
- a
NkStyleItemview of thehoverfield.
-
active
public NkStyleItem active()
- Returns:
- a
NkStyleItemview of theactivefield.
-
cursor_normal
public NkStyleItem cursor_normal()
- Returns:
- a
NkStyleItemview of thecursor_normalfield.
-
cursor_hover
public NkStyleItem cursor_hover()
- Returns:
- a
NkStyleItemview of thecursor_hoverfield.
-
cursor_active
public NkStyleItem cursor_active()
- Returns:
- a
NkStyleItemview of thecursor_activefield.
-
cursor_border_color
public NkColor cursor_border_color()
- Returns:
- a
NkColorview of thecursor_border_colorfield.
-
rounding
public float rounding()
- Returns:
- the value of the
roundingfield.
-
border
public float border()
- Returns:
- the value of the
borderfield.
-
cursor_border
public float cursor_border()
- Returns:
- the value of the
cursor_borderfield.
-
cursor_rounding
public float cursor_rounding()
- Returns:
- the value of the
cursor_roundingfield.
-
draw_begin
@Nullable public NkDrawBeginCallback draw_begin()
- Returns:
- the value of the
draw_beginfield.
-
draw_end
@Nullable public NkDrawEndCallback draw_end()
- Returns:
- the value of the
draw_endfield.
-
normal
public NkStyleProgress.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
normal
public NkStyleProgress.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleProgress.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
hover
public NkStyleProgress.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleProgress.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
active
public NkStyleProgress.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleProgress.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
border_color
public NkStyleProgress.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
cursor_normal
public NkStyleProgress.Buffer cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_normalfield.
-
cursor_normal
public NkStyleProgress.Buffer cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normalfield to the specifiedConsumer.
-
cursor_hover
public NkStyleProgress.Buffer cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_hoverfield.
-
cursor_hover
public NkStyleProgress.Buffer cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hoverfield to the specifiedConsumer.
-
cursor_active
public NkStyleProgress.Buffer cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_activefield.
-
cursor_active
public NkStyleProgress.Buffer cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_activefield to the specifiedConsumer.
-
cursor_border_color
public NkStyleProgress.Buffer cursor_border_color(NkColor value)
Copies the specifiedNkColorto thecursor_border_colorfield.
-
cursor_border_color
public NkStyleProgress.Buffer cursor_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_border_colorfield to the specifiedConsumer.
-
rounding
public NkStyleProgress.Buffer rounding(float value)
Sets the specified value to theroundingfield.
-
border
public NkStyleProgress.Buffer border(float value)
Sets the specified value to theborderfield.
-
cursor_border
public NkStyleProgress.Buffer cursor_border(float value)
Sets the specified value to thecursor_borderfield.
-
cursor_rounding
public NkStyleProgress.Buffer cursor_rounding(float value)
Sets the specified value to thecursor_roundingfield.
-
padding
public NkStyleProgress.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
padding
public NkStyleProgress.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
userdata
public NkStyleProgress.Buffer userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
userdata
public NkStyleProgress.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
draw_begin
public NkStyleProgress.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_beginfield.
-
draw_end
public NkStyleProgress.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_endfield.
-
-