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.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkStyleSlider.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()Returns aNkStyleItemview of theactivefield.NkStyleSlider.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleSlider.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.NkColorbar_active()Returns aNkColorview of thebar_activefield.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()Returns aNkColorview of thebar_filledfield.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()Returns the value of thebar_heightfield.NkStyleSlider.Bufferbar_height(float value)Sets the specified value to thebar_heightfield.NkColorbar_hover()Returns aNkColorview of thebar_hoverfield.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()Returns aNkColorview of thebar_normalfield.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()Returns the value of theborderfield.NkStyleSlider.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.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()Returns aNkStyleItemview of thecursor_activefield.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()Returns aNkStyleItemview of thecursor_hoverfield.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()Returns aNkStyleItemview of thecursor_normalfield.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()Returns aNkVec2view of thecursor_sizefield.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()Returns aNkStyleButtonview of thedec_buttonfield.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()Returns the value of thedec_symbolfield.NkStyleSlider.Bufferdec_symbol(int value)Sets the specified value to thedec_symbolfield.NkDrawBeginCallbackdraw_begin()Returns the value of thedraw_beginfield.NkStyleSlider.Bufferdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()Returns the value of thedraw_endfield.NkStyleSlider.Bufferdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()Returns aNkStyleItemview of thehoverfield.NkStyleSlider.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleSlider.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleButtoninc_button()Returns aNkStyleButtonview of theinc_buttonfield.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()Returns the value of theinc_symbolfield.NkStyleSlider.Bufferinc_symbol(int value)Sets the specified value to theinc_symbolfield.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleSlider.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleSlider.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleSlider.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleSlider.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()Returns the value of theroundingfield.NkStyleSlider.Bufferrounding(float value)Sets the specified value to theroundingfield.intshow_buttons()Returns the value of theshow_buttonsfield.NkStyleSlider.Buffershow_buttons(int value)Sets the specified value to theshow_buttonsfield.NkVec2spacing()Returns aNkVec2view of thespacingfield.NkStyleSlider.Bufferspacing(java.util.function.Consumer<NkVec2> consumer)Passes thespacingfield to the specifiedConsumer.NkStyleSlider.Bufferspacing(NkVec2 value)Copies the specifiedNkVec2to thespacingfield.NkHandleuserdata()Returns aNkHandleview of theuserdatafield.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 aNkStyleItemview of thenormalfield.
-
normal
public NkStyleSlider.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleSlider.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleItem active()
Returns aNkStyleItemview of theactivefield.
-
active
public NkStyleSlider.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
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(java.util.function.Consumer<NkColor> consumer)
Passes thebar_normalfield to the specifiedConsumer.
-
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(java.util.function.Consumer<NkColor> consumer)
Passes thebar_activefield to the specifiedConsumer.
-
bar_filled
public NkStyleSlider.Buffer bar_filled(java.util.function.Consumer<NkColor> consumer)
Passes thebar_filledfield to the specifiedConsumer.
-
cursor_normal
public NkStyleItem cursor_normal()
Returns aNkStyleItemview of thecursor_normalfield.
-
cursor_normal
public NkStyleSlider.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 NkStyleSlider.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 NkStyleSlider.Buffer cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_activefield to the specifiedConsumer.
-
border
public float border()
Returns the value of theborderfield.
-
rounding
public float rounding()
Returns the value of theroundingfield.
-
bar_height
public float bar_height()
Returns the value of thebar_heightfield.
-
padding
public NkStyleSlider.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
spacing
public NkStyleSlider.Buffer spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacingfield to the specifiedConsumer.
-
cursor_size
public NkStyleSlider.Buffer cursor_size(java.util.function.Consumer<NkVec2> consumer)
Passes thecursor_sizefield to the specifiedConsumer.
-
show_buttons
public int show_buttons()
Returns the value of theshow_buttonsfield.
-
inc_button
public NkStyleButton inc_button()
Returns aNkStyleButtonview of theinc_buttonfield.
-
inc_button
public NkStyleSlider.Buffer inc_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theinc_buttonfield to the specifiedConsumer.
-
dec_button
public NkStyleButton dec_button()
Returns aNkStyleButtonview of thedec_buttonfield.
-
dec_button
public NkStyleSlider.Buffer dec_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thedec_buttonfield to the specifiedConsumer.
-
inc_symbol
public int inc_symbol()
Returns the value of theinc_symbolfield.
-
dec_symbol
public int dec_symbol()
Returns the value of thedec_symbolfield.
-
userdata
public NkStyleSlider.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 NkStyleSlider.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleSlider.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
active
public NkStyleSlider.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
border_color
public NkStyleSlider.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
bar_normal
public NkStyleSlider.Buffer bar_normal(NkColor value)
Copies the specifiedNkColorto thebar_normalfield.
-
bar_hover
public NkStyleSlider.Buffer bar_hover(NkColor value)
Copies the specifiedNkColorto thebar_hoverfield.
-
bar_active
public NkStyleSlider.Buffer bar_active(NkColor value)
Copies the specifiedNkColorto thebar_activefield.
-
bar_filled
public NkStyleSlider.Buffer bar_filled(NkColor value)
Copies the specifiedNkColorto thebar_filledfield.
-
cursor_normal
public NkStyleSlider.Buffer cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_normalfield.
-
cursor_hover
public NkStyleSlider.Buffer cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_hoverfield.
-
cursor_active
public NkStyleSlider.Buffer cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_activefield.
-
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.
-
spacing
public NkStyleSlider.Buffer spacing(NkVec2 value)
Copies the specifiedNkVec2to thespacingfield.
-
cursor_size
public NkStyleSlider.Buffer cursor_size(NkVec2 value)
Copies the specifiedNkVec2to thecursor_sizefield.
-
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.
-
dec_button
public NkStyleSlider.Buffer dec_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thedec_buttonfield.
-
inc_symbol
public NkStyleSlider.Buffer inc_symbol(int value)
Sets the specified value to theinc_symbolfield.
-
dec_symbol
public NkStyleSlider.Buffer dec_symbol(int value)
Sets the specified value to thedec_symbolfield.
-
userdata
public NkStyleSlider.Buffer userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
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.
-
-