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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()NkStyleScrollbar.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleScrollbar.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()NkStyleScrollbar.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()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()NkStyleScrollbar.Bufferborder_cursor(float value)Sets the specified value to theborder_cursorfield.NkStyleItemcursor_active()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()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()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()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()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()NkStyleScrollbar.Bufferdec_symbol(int value)Sets the specified value to theNkStyleScrollbar.dec_symbol()field.NkDrawBeginCallbackdraw_begin()NkStyleScrollbar.Bufferdraw_begin(NkDrawBeginCallbackI value)Sets the specified value to thedraw_beginfield.NkDrawEndCallbackdraw_end()NkStyleScrollbar.Bufferdraw_end(NkDrawEndCallbackI value)Sets the specified value to thedraw_endfield.NkStyleItemhover()NkStyleScrollbar.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleScrollbar.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkStyleButtoninc_button()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()NkStyleScrollbar.Bufferinc_symbol(int value)Sets the specified value to theNkStyleScrollbar.inc_symbol()field.NkStyleItemnormal()NkStyleScrollbar.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleScrollbar.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.NkVec2padding()NkStyleScrollbar.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleScrollbar.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()NkStyleScrollbar.Bufferrounding(float value)Sets the specified value to theroundingfield.floatrounding_cursor()NkStyleScrollbar.Bufferrounding_cursor(float value)Sets the specified value to therounding_cursorfield.intshow_buttons()NkStyleScrollbar.Buffershow_buttons(int value)Sets the specified value to theshow_buttonsfield.NkHandleuserdata()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:
- 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.
-
border
public float border()
- Returns:
- the value of the
borderfield.
-
rounding
public float rounding()
- Returns:
- the value of the
roundingfield.
-
border_cursor
public float border_cursor()
- Returns:
- the value of the
border_cursorfield.
-
rounding_cursor
public float rounding_cursor()
- Returns:
- the value of the
rounding_cursorfield.
-
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
NkStyleScrollbar.inc_symbol()field.
-
dec_symbol
public int dec_symbol()
- Returns:
- the value of the
NkStyleScrollbar.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 NkStyleScrollbar.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
normal
public NkStyleScrollbar.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleScrollbar.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
hover
public NkStyleScrollbar.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleScrollbar.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
active
public NkStyleScrollbar.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleScrollbar.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
border_color
public NkStyleScrollbar.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
cursor_normal
public NkStyleScrollbar.Buffer cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_normalfield.
-
cursor_normal
public NkStyleScrollbar.Buffer cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normalfield to the specifiedConsumer.
-
cursor_hover
public NkStyleScrollbar.Buffer cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thecursor_hoverfield.
-
cursor_hover
public NkStyleScrollbar.Buffer cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hoverfield to the specifiedConsumer.
-
cursor_active
public NkStyleScrollbar.Buffer cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItemto 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 NkStyleScrollbar.Buffer cursor_border_color(NkColor value)
Copies the specifiedNkColorto 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 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.
-
padding
public NkStyleScrollbar.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
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.
-
inc_button
public NkStyleScrollbar.Buffer inc_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theinc_buttonfield to the specifiedConsumer.
-
dec_button
public NkStyleScrollbar.Buffer dec_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thedec_buttonfield.
-
dec_button
public NkStyleScrollbar.Buffer dec_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thedec_buttonfield to the specifiedConsumer.
-
inc_symbol
public NkStyleScrollbar.Buffer inc_symbol(int value)
Sets the specified value to theNkStyleScrollbar.inc_symbol()field.
-
dec_symbol
public NkStyleScrollbar.Buffer dec_symbol(int value)
Sets the specified value to theNkStyleScrollbar.dec_symbol()field.
-
userdata
public NkStyleScrollbar.Buffer userdata(NkHandle value)
Copies the specifiedNkHandleto theuserdatafield.
-
userdata
public NkStyleScrollbar.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdatafield to the specifiedConsumer.
-
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.
-
-