Package org.lwjgl.nuklear
Class NkStyleScrollbar.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<NkStyleScrollbar.Buffer>
org.lwjgl.system.StructBuffer<NkStyleScrollbar,NkStyleScrollbar.Buffer>
org.lwjgl.nuklear.NkStyleScrollbar.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<NkStyleScrollbar>,NativeResource,Pointer
- Enclosing class:
NkStyleScrollbar
public static class NkStyleScrollbar.Buffer
extends StructBuffer<NkStyleScrollbar,NkStyleScrollbar.Buffer>
implements NativeResource
An array of
NkStyleScrollbar structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newNkStyleScrollbar.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionactive()active(Consumer<NkStyleItem> consumer) Passes theactivefield to the specifiedConsumer.active(NkStyleItem value) Copies the specifiedNkStyleItemto theactivefield.floatborder()border(float value) Sets the specified value to theborderfield.border_color(Consumer<NkColor> consumer) Passes theborder_colorfield to the specifiedConsumer.border_color(NkColor value) Copies the specifiedNkColorto theborder_colorfield.floatborder_cursor(float value) Sets the specified value to theborder_cursorfield.floatcolor_factor(float value) Sets the specified value to thecolor_factorfield.cursor_active(Consumer<NkStyleItem> consumer) Passes thecursor_activefield to the specifiedConsumer.cursor_active(NkStyleItem value) Copies the specifiedNkStyleItemto thecursor_activefield.cursor_border_color(Consumer<NkColor> consumer) Passes thecursor_border_colorfield to the specifiedConsumer.cursor_border_color(NkColor value) Copies the specifiedNkColorto thecursor_border_colorfield.cursor_hover(Consumer<NkStyleItem> consumer) Passes thecursor_hoverfield to the specifiedConsumer.cursor_hover(NkStyleItem value) Copies the specifiedNkStyleItemto thecursor_hoverfield.cursor_normal(Consumer<NkStyleItem> consumer) Passes thecursor_normalfield to the specifiedConsumer.cursor_normal(NkStyleItem value) Copies the specifiedNkStyleItemto thecursor_normalfield.dec_button(Consumer<NkStyleButton> consumer) Passes thedec_buttonfield to the specifiedConsumer.dec_button(NkStyleButton value) Copies the specifiedNkStyleButtonto thedec_buttonfield.intdec_symbol(int value) Sets the specified value to thedec_symbolfield.floatdisabled_factor(float value) Sets the specified value to thedisabled_factorfield.@Nullable NkDrawBeginCallbackdraw_begin(@Nullable NkDrawBeginCallbackI value) Sets the specified value to thedraw_beginfield.@Nullable NkDrawEndCallbackdraw_end()draw_end(@Nullable NkDrawEndCallbackI value) Sets the specified value to thedraw_endfield.hover()hover(Consumer<NkStyleItem> consumer) Passes thehoverfield to the specifiedConsumer.hover(NkStyleItem value) Copies the specifiedNkStyleItemto thehoverfield.inc_button(Consumer<NkStyleButton> consumer) Passes theinc_buttonfield to the specifiedConsumer.inc_button(NkStyleButton value) Copies the specifiedNkStyleButtonto theinc_buttonfield.intinc_symbol(int value) Sets the specified value to theinc_symbolfield.normal()normal(Consumer<NkStyleItem> consumer) Passes thenormalfield to the specifiedConsumer.normal(NkStyleItem value) Copies the specifiedNkStyleItemto thenormalfield.padding()Passes thepaddingfield to the specifiedConsumer.Copies the specifiedNkVec2to thepaddingfield.floatrounding()rounding(float value) Sets the specified value to theroundingfield.floatrounding_cursor(float value) Sets the specified value to therounding_cursorfield.intshow_buttons(int value) Sets the specified value to theshow_buttonsfield.userdata()Passes theuserdatafield to the specifiedConsumer.Copies the specifiedNkHandleto theuserdatafield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
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 by
NkStyleScrollbar.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 Details
-
normal
- Returns:
- a
NkStyleItemview of thenormalfield.
-
hover
- Returns:
- a
NkStyleItemview of thehoverfield.
-
active
- Returns:
- a
NkStyleItemview of theactivefield.
-
border_color
- Returns:
- a
NkColorview of theborder_colorfield.
-
cursor_normal
- Returns:
- a
NkStyleItemview of thecursor_normalfield.
-
cursor_hover
- Returns:
- a
NkStyleItemview of thecursor_hoverfield.
-
cursor_active
- Returns:
- a
NkStyleItemview of thecursor_activefield.
-
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.
-
padding
- Returns:
- a
NkVec2view of thepaddingfield.
-
color_factor
public float color_factor()- Returns:
- the value of the
color_factorfield.
-
disabled_factor
public float disabled_factor()- Returns:
- the value of the
disabled_factorfield.
-
show_buttons
public int show_buttons()- Returns:
- the value of the
show_buttonsfield.
-
inc_button
- Returns:
- a
NkStyleButtonview of theinc_buttonfield.
-
dec_button
- Returns:
- a
NkStyleButtonview of thedec_buttonfield.
-
inc_symbol
public int inc_symbol()- Returns:
- the value of the
inc_symbolfield.
-
dec_symbol
public int dec_symbol()- Returns:
- the value of the
dec_symbolfield.
-
userdata
- Returns:
- a
NkHandleview of theuserdatafield.
-
draw_begin
- Returns:
- the value of the
draw_beginfield.
-
draw_end
- Returns:
- the value of the
draw_endfield.
-
normal
Copies the specifiedNkStyleItemto thenormalfield. -
normal
Passes thenormalfield to the specifiedConsumer. -
hover
Copies the specifiedNkStyleItemto thehoverfield. -
hover
Passes thehoverfield to the specifiedConsumer. -
active
Copies the specifiedNkStyleItemto theactivefield. -
active
Passes theactivefield to the specifiedConsumer. -
border_color
Copies the specifiedNkColorto theborder_colorfield. -
border_color
Passes theborder_colorfield to the specifiedConsumer. -
cursor_normal
Copies the specifiedNkStyleItemto thecursor_normalfield. -
cursor_normal
Passes thecursor_normalfield to the specifiedConsumer. -
cursor_hover
Copies the specifiedNkStyleItemto thecursor_hoverfield. -
cursor_hover
Passes thecursor_hoverfield to the specifiedConsumer. -
cursor_active
Copies the specifiedNkStyleItemto thecursor_activefield. -
cursor_active
Passes thecursor_activefield to the specifiedConsumer. -
cursor_border_color
Copies the specifiedNkColorto thecursor_border_colorfield. -
cursor_border_color
Passes thecursor_border_colorfield to the specifiedConsumer. -
border
Sets the specified value to theborderfield. -
rounding
Sets the specified value to theroundingfield. -
border_cursor
Sets the specified value to theborder_cursorfield. -
rounding_cursor
Sets the specified value to therounding_cursorfield. -
padding
Copies the specifiedNkVec2to thepaddingfield. -
padding
Passes thepaddingfield to the specifiedConsumer. -
color_factor
Sets the specified value to thecolor_factorfield. -
disabled_factor
Sets the specified value to thedisabled_factorfield. -
show_buttons
Sets the specified value to theshow_buttonsfield. -
inc_button
Copies the specifiedNkStyleButtonto theinc_buttonfield. -
inc_button
Passes theinc_buttonfield to the specifiedConsumer. -
dec_button
Copies the specifiedNkStyleButtonto thedec_buttonfield. -
dec_button
Passes thedec_buttonfield to the specifiedConsumer. -
inc_symbol
Sets the specified value to theinc_symbolfield. -
dec_symbol
Sets the specified value to thedec_symbolfield. -
userdata
Copies the specifiedNkHandleto theuserdatafield. -
userdata
Passes theuserdatafield to the specifiedConsumer. -
draw_begin
Sets the specified value to thedraw_beginfield. -
draw_end
Sets the specified value to thedraw_endfield.
-