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.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkStyleProgress.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()Returns aNkStyleItemview of theactivefield.NkStyleProgress.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleProgress.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()Returns the value of theborderfield.NkStyleProgress.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.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()Returns aNkStyleItemview of thecursor_activefield.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()Returns the value of thecursor_borderfield.NkStyleProgress.Buffercursor_border(float value)Sets the specified value to thecursor_borderfield.NkColorcursor_border_color()Returns aNkColorview of thecursor_border_colorfield.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()Returns aNkStyleItemview of thecursor_hoverfield.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()Returns aNkStyleItemview of thecursor_normalfield.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()Returns the value of thecursor_roundingfield.NkStyleProgress.Buffercursor_rounding(float value)Sets the specified value to thecursor_roundingfield.NkDrawBeginCallbackdraw_begin()Returns the value of thedraw_beginfield.NkStyleProgress.Bufferdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()Returns the value of thedraw_endfield.NkStyleProgress.Bufferdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()Returns aNkStyleItemview of thehoverfield.NkStyleProgress.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleProgress.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleProgress.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleProgress.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleProgress.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleProgress.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()Returns the value of theroundingfield.NkStyleProgress.Bufferrounding(float value)Sets the specified value to theroundingfield.NkHandleuserdata()Returns aNkHandleview of theuserdatafield.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 aNkStyleItemview of thenormalfield.
-
normal
public NkStyleProgress.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleProgress.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleItem active()
Returns aNkStyleItemview of theactivefield.
-
active
public NkStyleProgress.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleProgress.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
cursor_normal
public NkStyleItem cursor_normal()
Returns aNkStyleItemview of thecursor_normalfield.
-
cursor_normal
public NkStyleProgress.Buffer cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normalfield to the specifiedConsumer.
-
cursor_hover
public NkStyleItem cursor_hover()
Returns aNkStyleItemview of thecursor_hoverfield.
-
cursor_hover
public NkStyleProgress.Buffer cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hoverfield to the specifiedConsumer.
-
cursor_active
public NkStyleItem cursor_active()
Returns aNkStyleItemview of 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 NkColor cursor_border_color()
Returns aNkColorview of 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 float rounding()
Returns the value of theroundingfield.
-
border
public float border()
Returns the value of theborderfield.
-
cursor_border
public float cursor_border()
Returns the value of thecursor_borderfield.
-
cursor_rounding
public float cursor_rounding()
Returns the value of thecursor_roundingfield.
-
padding
public NkStyleProgress.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
userdata
public NkStyleProgress.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
draw_begin
@Nullable public NkDrawBeginCallback draw_begin()
Returns the value of thedraw_beginfield.
-
draw_end
@Nullable public NkDrawEndCallback draw_end()
Returns the value of thedraw_endfield.
-
normal
public NkStyleProgress.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleProgress.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
active
public NkStyleProgress.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
border_color
public NkStyleProgress.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
cursor_normal
public NkStyleProgress.Buffer cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_normalfield.
-
cursor_hover
public NkStyleProgress.Buffer cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_hoverfield.
-
cursor_active
public NkStyleProgress.Buffer cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_activefield.
-
cursor_border_color
public NkStyleProgress.Buffer cursor_border_color(NkColor value)
Copies the specifiedNkColorto thecursor_border_colorfield.
-
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.
-
userdata
public NkStyleProgress.Buffer userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
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.
-
-