Package org.lwjgl.nuklear
Class NkStyleSlider.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleSlider,NkStyleSlider.Buffer>
-
- org.lwjgl.nuklear.NkStyleSlider.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<NkStyleSlider>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleSlider
public static class NkStyleSlider.Buffer extends org.lwjgl.system.StructBuffer<NkStyleSlider,NkStyleSlider.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStyleSliderstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()NkStyleSlider.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleSlider.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.NkColorbar_active()NkStyleSlider.Bufferbar_active(java.util.function.Consumer<NkColor> consumer)Passes thebar_activefield to the specifiedConsumer.NkStyleSlider.Bufferbar_active(NkColor value)Copies the specifiedNkColorto thebar_activefield.NkColorbar_filled()NkStyleSlider.Bufferbar_filled(java.util.function.Consumer<NkColor> consumer)Passes thebar_filledfield to the specifiedConsumer.NkStyleSlider.Bufferbar_filled(NkColor value)Copies the specifiedNkColorto thebar_filledfield.floatbar_height()NkStyleSlider.Bufferbar_height(float value)Sets the specified value to thebar_heightfield.NkColorbar_hover()NkStyleSlider.Bufferbar_hover(java.util.function.Consumer<NkColor> consumer)Passes thebar_hoverfield to the specifiedConsumer.NkStyleSlider.Bufferbar_hover(NkColor value)Copies the specifiedNkColorto thebar_hoverfield.NkColorbar_normal()NkStyleSlider.Bufferbar_normal(java.util.function.Consumer<NkColor> consumer)Passes thebar_normalfield to the specifiedConsumer.NkStyleSlider.Bufferbar_normal(NkColor value)Copies the specifiedNkColorto thebar_normalfield.floatborder()NkStyleSlider.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()NkStyleSlider.Bufferborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleSlider.Bufferborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.NkStyleItemcursor_active()NkStyleSlider.Buffercursor_active(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_activefield to the specifiedConsumer.NkStyleSlider.Buffercursor_active(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_activefield.NkStyleItemcursor_hover()NkStyleSlider.Buffercursor_hover(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_hoverfield to the specifiedConsumer.NkStyleSlider.Buffercursor_hover(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_hoverfield.NkStyleItemcursor_normal()NkStyleSlider.Buffercursor_normal(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_normalfield to the specifiedConsumer.NkStyleSlider.Buffercursor_normal(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_normalfield.NkVec2cursor_size()NkStyleSlider.Buffercursor_size(java.util.function.Consumer<NkVec2> consumer)Passes thecursor_sizefield to the specifiedConsumer.NkStyleSlider.Buffercursor_size(NkVec2 value)Copies the specifiedNkVec2to thecursor_sizefield.NkStyleButtondec_button()NkStyleSlider.Bufferdec_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thedec_buttonfield to the specifiedConsumer.NkStyleSlider.Bufferdec_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thedec_buttonfield.intdec_symbol()NkStyleSlider.Bufferdec_symbol(int value)Sets the specified value to theNkStyleSlider.dec_symbol()field.NkDrawBeginCallbackdraw_begin()NkStyleSlider.Bufferdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()NkStyleSlider.Bufferdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()NkStyleSlider.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleSlider.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleButtoninc_button()NkStyleSlider.Bufferinc_button(java.util.function.Consumer<NkStyleButton> consumer)Passes theinc_buttonfield to the specifiedConsumer.NkStyleSlider.Bufferinc_button(NkStyleButton value)Copies the specifiedNkStyleButtonto theinc_buttonfield.intinc_symbol()NkStyleSlider.Bufferinc_symbol(int value)Sets the specified value to theNkStyleSlider.inc_symbol()field.NkStyleItemnormal()NkStyleSlider.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleSlider.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()NkStyleSlider.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleSlider.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()NkStyleSlider.Bufferrounding(float value)Sets the specified value to theroundingfield.intshow_buttons()NkStyleSlider.Buffershow_buttons(int value)Sets the specified value to theshow_buttonsfield.NkVec2spacing()NkStyleSlider.Bufferspacing(java.util.function.Consumer<NkVec2> consumer)Passes thespacingfield to the specifiedConsumer.NkStyleSlider.Bufferspacing(NkVec2 value)Copies the specifiedNkVec2to thespacingfield.NkHandleuserdata()NkStyleSlider.Bufferuserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.NkStyleSlider.Bufferuserdata(NkHandle value)Copies the specifiedNkHandleto theuserdatafield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleSlider.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 byNkStyleSlider.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.
-
border
public float border()
- Returns:
- the value of the
borderfield.
-
rounding
public float rounding()
- Returns:
- the value of the
roundingfield.
-
bar_height
public float bar_height()
- Returns:
- the value of the
bar_heightfield.
-
show_buttons
public int show_buttons()
- Returns:
- the value of the
show_buttonsfield.
-
inc_button
public NkStyleButton inc_button()
- Returns:
- a
NkStyleButtonview of theinc_buttonfield.
-
dec_button
public NkStyleButton dec_button()
- Returns:
- a
NkStyleButtonview of thedec_buttonfield.
-
inc_symbol
public int inc_symbol()
- Returns:
- the value of the
NkStyleSlider.inc_symbol()field.
-
dec_symbol
public int dec_symbol()
- Returns:
- the value of the
NkStyleSlider.dec_symbol()field.
-
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 NkStyleSlider.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
normal
public NkStyleSlider.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleSlider.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
hover
public NkStyleSlider.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleSlider.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
active
public NkStyleSlider.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleSlider.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
border_color
public NkStyleSlider.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
bar_normal
public NkStyleSlider.Buffer bar_normal(NkColor value)
Copies the specifiedNkColorto thebar_normalfield.
-
bar_normal
public NkStyleSlider.Buffer bar_normal(java.util.function.Consumer<NkColor> consumer)
Passes thebar_normalfield to the specifiedConsumer.
-
bar_hover
public NkStyleSlider.Buffer bar_hover(NkColor value)
Copies the specifiedNkColorto thebar_hoverfield.
-
bar_hover
public NkStyleSlider.Buffer bar_hover(java.util.function.Consumer<NkColor> consumer)
Passes thebar_hoverfield to the specifiedConsumer.
-
bar_active
public NkStyleSlider.Buffer bar_active(NkColor value)
Copies the specifiedNkColorto thebar_activefield.
-
bar_active
public NkStyleSlider.Buffer bar_active(java.util.function.Consumer<NkColor> consumer)
Passes thebar_activefield to the specifiedConsumer.
-
bar_filled
public NkStyleSlider.Buffer bar_filled(NkColor value)
Copies the specifiedNkColorto thebar_filledfield.
-
bar_filled
public NkStyleSlider.Buffer bar_filled(java.util.function.Consumer<NkColor> consumer)
Passes thebar_filledfield to the specifiedConsumer.
-
cursor_normal
public NkStyleSlider.Buffer cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_normalfield.
-
cursor_normal
public NkStyleSlider.Buffer cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normalfield to the specifiedConsumer.
-
cursor_hover
public NkStyleSlider.Buffer cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_hoverfield.
-
cursor_hover
public NkStyleSlider.Buffer cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hoverfield to the specifiedConsumer.
-
cursor_active
public NkStyleSlider.Buffer cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_activefield.
-
cursor_active
public NkStyleSlider.Buffer cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_activefield to the specifiedConsumer.
-
border
public NkStyleSlider.Buffer border(float value)
Sets the specified value to theborderfield.
-
rounding
public NkStyleSlider.Buffer rounding(float value)
Sets the specified value to theroundingfield.
-
bar_height
public NkStyleSlider.Buffer bar_height(float value)
Sets the specified value to thebar_heightfield.
-
padding
public NkStyleSlider.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
padding
public NkStyleSlider.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
spacing
public NkStyleSlider.Buffer spacing(NkVec2 value)
Copies the specifiedNkVec2to thespacingfield.
-
spacing
public NkStyleSlider.Buffer spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacingfield to the specifiedConsumer.
-
cursor_size
public NkStyleSlider.Buffer cursor_size(NkVec2 value)
Copies the specifiedNkVec2to thecursor_sizefield.
-
cursor_size
public NkStyleSlider.Buffer cursor_size(java.util.function.Consumer<NkVec2> consumer)
Passes thecursor_sizefield to the specifiedConsumer.
-
show_buttons
public NkStyleSlider.Buffer show_buttons(int value)
Sets the specified value to theshow_buttonsfield.
-
inc_button
public NkStyleSlider.Buffer inc_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto theinc_buttonfield.
-
inc_button
public NkStyleSlider.Buffer inc_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theinc_buttonfield to the specifiedConsumer.
-
dec_button
public NkStyleSlider.Buffer dec_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thedec_buttonfield.
-
dec_button
public NkStyleSlider.Buffer dec_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thedec_buttonfield to the specifiedConsumer.
-
inc_symbol
public NkStyleSlider.Buffer inc_symbol(int value)
Sets the specified value to theNkStyleSlider.inc_symbol()field.
-
dec_symbol
public NkStyleSlider.Buffer dec_symbol(int value)
Sets the specified value to theNkStyleSlider.dec_symbol()field.
-
userdata
public NkStyleSlider.Buffer userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
userdata
public NkStyleSlider.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
draw_begin
public NkStyleSlider.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_beginfield.
-
draw_end
public NkStyleSlider.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_endfield.
-
-