Package org.lwjgl.nuklear
Class NkStyleScrollbar.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleScrollbar,NkStyleScrollbar.Buffer>
-
- org.lwjgl.nuklear.NkStyleScrollbar.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<NkStyleScrollbar>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleScrollbar
public static class NkStyleScrollbar.Buffer extends org.lwjgl.system.StructBuffer<NkStyleScrollbar,NkStyleScrollbar.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStyleScrollbarstructs.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkStyleScrollbar.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()Returns aNkStyleItemview of theactivefield.NkStyleScrollbar.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleScrollbar.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()Returns the value of theborderfield.NkStyleScrollbar.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.NkStyleScrollbar.Bufferborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleScrollbar.Bufferborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.floatborder_cursor()Returns the value of theborder_cursorfield.NkStyleScrollbar.Bufferborder_cursor(float value)Sets the specified value to theborder_cursorfield.NkStyleItemcursor_active()Returns aNkStyleItemview of thecursor_activefield.NkStyleScrollbar.Buffercursor_active(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_activefield to the specifiedConsumer.NkStyleScrollbar.Buffercursor_active(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_activefield.NkColorcursor_border_color()Returns aNkColorview of thecursor_border_colorfield.NkStyleScrollbar.Buffercursor_border_color(java.util.function.Consumer<NkColor> consumer)Passes thecursor_border_colorfield to the specifiedConsumer.NkStyleScrollbar.Buffercursor_border_color(NkColor value)Copies the specifiedNkColorto thecursor_border_colorfield.NkStyleItemcursor_hover()Returns aNkStyleItemview of thecursor_hoverfield.NkStyleScrollbar.Buffercursor_hover(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_hoverfield to the specifiedConsumer.NkStyleScrollbar.Buffercursor_hover(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_hoverfield.NkStyleItemcursor_normal()Returns aNkStyleItemview of thecursor_normalfield.NkStyleScrollbar.Buffercursor_normal(java.util.function.Consumer<NkStyleItem> consumer)Passes thecursor_normalfield to the specifiedConsumer.NkStyleScrollbar.Buffercursor_normal(NkStyleItem value)Copies the specifiedNkStyleItemto thecursor_normalfield.NkStyleButtondec_button()Returns aNkStyleButtonview of thedec_buttonfield.NkStyleScrollbar.Bufferdec_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thedec_buttonfield to the specifiedConsumer.NkStyleScrollbar.Bufferdec_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thedec_buttonfield.intdec_symbol()Returns the value of thedec_symbolfield.NkStyleScrollbar.Bufferdec_symbol(int value)Sets the specified value to thedec_symbolfield.NkDrawBeginCallbackdraw_begin()Returns the value of thedraw_beginfield.NkStyleScrollbar.Bufferdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()Returns the value of thedraw_endfield.NkStyleScrollbar.Bufferdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()Returns aNkStyleItemview of thehoverfield.NkStyleScrollbar.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleScrollbar.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleButtoninc_button()Returns aNkStyleButtonview of theinc_buttonfield.NkStyleScrollbar.Bufferinc_button(java.util.function.Consumer<NkStyleButton> consumer)Passes theinc_buttonfield to the specifiedConsumer.NkStyleScrollbar.Bufferinc_button(NkStyleButton value)Copies the specifiedNkStyleButtonto theinc_buttonfield.intinc_symbol()Returns the value of theinc_symbolfield.NkStyleScrollbar.Bufferinc_symbol(int value)Sets the specified value to theinc_symbolfield.NkStyleItemnormal()Returns aNkStyleItemview of thenormalfield.NkStyleScrollbar.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleScrollbar.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleScrollbar.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleScrollbar.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()Returns the value of theroundingfield.NkStyleScrollbar.Bufferrounding(float value)Sets the specified value to theroundingfield.floatrounding_cursor()Returns the value of therounding_cursorfield.NkStyleScrollbar.Bufferrounding_cursor(float value)Sets the specified value to therounding_cursorfield.intshow_buttons()Returns the value of theshow_buttonsfield.NkStyleScrollbar.Buffershow_buttons(int value)Sets the specified value to theshow_buttonsfield.NkHandleuserdata()Returns aNkHandleview of theuserdatafield.NkStyleScrollbar.Bufferuserdata(java.util.function.Consumer<NkHandle> consumer)Passes theuserdatafield to the specifiedConsumer.NkStyleScrollbar.Bufferuserdata(NkHandle value)Copies the specifiedNkHandleto theuserdatafield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleScrollbar.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 byNkStyleScrollbar.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 NkStyleScrollbar.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleItem hover()
Returns aNkStyleItemview of thehoverfield.
-
hover
public NkStyleScrollbar.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleItem active()
Returns aNkStyleItemview of theactivefield.
-
active
public NkStyleScrollbar.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleScrollbar.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 NkStyleScrollbar.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 NkStyleScrollbar.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 NkStyleScrollbar.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 NkStyleScrollbar.Buffer cursor_border_color(java.util.function.Consumer<NkColor> consumer)
Passes thecursor_border_colorfield to the specifiedConsumer.
-
border
public float border()
Returns the value of theborderfield.
-
rounding
public float rounding()
Returns the value of theroundingfield.
-
border_cursor
public float border_cursor()
Returns the value of theborder_cursorfield.
-
rounding_cursor
public float rounding_cursor()
Returns the value of therounding_cursorfield.
-
padding
public NkStyleScrollbar.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield 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 NkStyleScrollbar.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 NkStyleScrollbar.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 NkStyleScrollbar.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 NkStyleScrollbar.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
hover
public NkStyleScrollbar.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
active
public NkStyleScrollbar.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
border_color
public NkStyleScrollbar.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
cursor_normal
public NkStyleScrollbar.Buffer cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_normalfield.
-
cursor_hover
public NkStyleScrollbar.Buffer cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_hoverfield.
-
cursor_active
public NkStyleScrollbar.Buffer cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_activefield.
-
cursor_border_color
public NkStyleScrollbar.Buffer cursor_border_color(NkColor value)
Copies the specifiedNkColorto thecursor_border_colorfield.
-
border
public NkStyleScrollbar.Buffer border(float value)
Sets the specified value to theborderfield.
-
rounding
public NkStyleScrollbar.Buffer rounding(float value)
Sets the specified value to theroundingfield.
-
border_cursor
public NkStyleScrollbar.Buffer border_cursor(float value)
Sets the specified value to theborder_cursorfield.
-
rounding_cursor
public NkStyleScrollbar.Buffer rounding_cursor(float value)
Sets the specified value to therounding_cursorfield.
-
padding
public NkStyleScrollbar.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
show_buttons
public NkStyleScrollbar.Buffer show_buttons(int value)
Sets the specified value to theshow_buttonsfield.
-
inc_button
public NkStyleScrollbar.Buffer inc_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto theinc_buttonfield.
-
dec_button
public NkStyleScrollbar.Buffer dec_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thedec_buttonfield.
-
inc_symbol
public NkStyleScrollbar.Buffer inc_symbol(int value)
Sets the specified value to theinc_symbolfield.
-
dec_symbol
public NkStyleScrollbar.Buffer dec_symbol(int value)
Sets the specified value to thedec_symbolfield.
-
userdata
public NkStyleScrollbar.Buffer userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
draw_begin
public NkStyleScrollbar.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_beginfield.
-
draw_end
public NkStyleScrollbar.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_endfield.
-
-