public static class NkStyleSlider.Buffer extends org.lwjgl.system.StructBuffer<NkStyleSlider,NkStyleSlider.Buffer> implements org.lwjgl.system.NativeResource
NkStyleSlider structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NkStyleSlider.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
NkStyleItem |
active()
Returns a
NkStyleItem view of the active field. |
NkStyleSlider.Buffer |
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
active field to the specified Consumer. |
NkStyleSlider.Buffer |
active(NkStyleItem value)
Copies the specified
NkStyleItem to the active field. |
NkColor |
bar_active()
Returns a
NkColor view of the bar_active field. |
NkStyleSlider.Buffer |
bar_active(java.util.function.Consumer<NkColor> consumer)
Passes the
bar_active field to the specified Consumer. |
NkStyleSlider.Buffer |
bar_active(NkColor value)
Copies the specified
NkColor to the bar_active field. |
NkColor |
bar_filled()
Returns a
NkColor view of the bar_filled field. |
NkStyleSlider.Buffer |
bar_filled(java.util.function.Consumer<NkColor> consumer)
Passes the
bar_filled field to the specified Consumer. |
NkStyleSlider.Buffer |
bar_filled(NkColor value)
Copies the specified
NkColor to the bar_filled field. |
float |
bar_height()
Returns the value of the
bar_height field. |
NkStyleSlider.Buffer |
bar_height(float value)
Sets the specified value to the
bar_height field. |
NkColor |
bar_hover()
Returns a
NkColor view of the bar_hover field. |
NkStyleSlider.Buffer |
bar_hover(java.util.function.Consumer<NkColor> consumer)
Passes the
bar_hover field to the specified Consumer. |
NkStyleSlider.Buffer |
bar_hover(NkColor value)
Copies the specified
NkColor to the bar_hover field. |
NkColor |
bar_normal()
Returns a
NkColor view of the bar_normal field. |
NkStyleSlider.Buffer |
bar_normal(java.util.function.Consumer<NkColor> consumer)
Passes the
bar_normal field to the specified Consumer. |
NkStyleSlider.Buffer |
bar_normal(NkColor value)
Copies the specified
NkColor to the bar_normal field. |
NkColor |
border_color()
Returns a
NkColor view of the border_color field. |
NkStyleSlider.Buffer |
border_color(java.util.function.Consumer<NkColor> consumer)
Passes the
border_color field to the specified Consumer. |
NkStyleSlider.Buffer |
border_color(NkColor value)
Copies the specified
NkColor to the border_color field. |
float |
border()
Returns the value of the
border field. |
NkStyleSlider.Buffer |
border(float value)
Sets the specified value to the
border field. |
NkStyleItem |
cursor_active()
Returns a
NkStyleItem view of the cursor_active field. |
NkStyleSlider.Buffer |
cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
cursor_active field to the specified Consumer. |
NkStyleSlider.Buffer |
cursor_active(NkStyleItem value)
Copies the specified
NkStyleItem to the cursor_active field. |
NkStyleItem |
cursor_hover()
Returns a
NkStyleItem view of the cursor_hover field. |
NkStyleSlider.Buffer |
cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
cursor_hover field to the specified Consumer. |
NkStyleSlider.Buffer |
cursor_hover(NkStyleItem value)
Copies the specified
NkStyleItem to the cursor_hover field. |
NkStyleItem |
cursor_normal()
Returns a
NkStyleItem view of the cursor_normal field. |
NkStyleSlider.Buffer |
cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
cursor_normal field to the specified Consumer. |
NkStyleSlider.Buffer |
cursor_normal(NkStyleItem value)
Copies the specified
NkStyleItem to the cursor_normal field. |
NkVec2 |
cursor_size()
Returns a
NkVec2 view of the cursor_size field. |
NkStyleSlider.Buffer |
cursor_size(java.util.function.Consumer<NkVec2> consumer)
Passes the
cursor_size field to the specified Consumer. |
NkStyleSlider.Buffer |
cursor_size(NkVec2 value)
Copies the specified
NkVec2 to the cursor_size field. |
NkStyleButton |
dec_button()
Returns a
NkStyleButton view of the dec_button field. |
NkStyleSlider.Buffer |
dec_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
dec_button field to the specified Consumer. |
NkStyleSlider.Buffer |
dec_button(NkStyleButton value)
Copies the specified
NkStyleButton to the dec_button field. |
int |
dec_symbol()
Returns the value of the
dec_symbol field. |
NkStyleSlider.Buffer |
dec_symbol(int value)
Sets the specified value to the
dec_symbol field. |
NkDrawBeginCallback |
draw_begin()
Returns the value of the
draw_begin field. |
NkStyleSlider.Buffer |
draw_begin(NkDrawBeginCallbackI value)
Sets the specified value to the
draw_begin field. |
NkDrawEndCallback |
draw_end()
Returns the value of the
draw_end field. |
NkStyleSlider.Buffer |
draw_end(NkDrawEndCallbackI value)
Sets the specified value to the
draw_end field. |
NkStyleItem |
hover()
Returns a
NkStyleItem view of the hover field. |
NkStyleSlider.Buffer |
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
hover field to the specified Consumer. |
NkStyleSlider.Buffer |
hover(NkStyleItem value)
Copies the specified
NkStyleItem to the hover field. |
NkStyleButton |
inc_button()
Returns a
NkStyleButton view of the inc_button field. |
NkStyleSlider.Buffer |
inc_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
inc_button field to the specified Consumer. |
NkStyleSlider.Buffer |
inc_button(NkStyleButton value)
Copies the specified
NkStyleButton to the inc_button field. |
int |
inc_symbol()
Returns the value of the
inc_symbol field. |
NkStyleSlider.Buffer |
inc_symbol(int value)
Sets the specified value to the
inc_symbol field. |
NkStyleItem |
normal()
Returns a
NkStyleItem view of the normal field. |
NkStyleSlider.Buffer |
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
normal field to the specified Consumer. |
NkStyleSlider.Buffer |
normal(NkStyleItem value)
Copies the specified
NkStyleItem to the normal field. |
NkVec2 |
padding()
Returns a
NkVec2 view of the padding field. |
NkStyleSlider.Buffer |
padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
padding field to the specified Consumer. |
NkStyleSlider.Buffer |
padding(NkVec2 value)
Copies the specified
NkVec2 to the padding field. |
float |
rounding()
Returns the value of the
rounding field. |
NkStyleSlider.Buffer |
rounding(float value)
Sets the specified value to the
rounding field. |
int |
show_buttons()
Returns the value of the
show_buttons field. |
NkStyleSlider.Buffer |
show_buttons(int value)
Sets the specified value to the
show_buttons field. |
NkVec2 |
spacing()
Returns a
NkVec2 view of the spacing field. |
NkStyleSlider.Buffer |
spacing(java.util.function.Consumer<NkVec2> consumer)
Passes the
spacing field to the specified Consumer. |
NkStyleSlider.Buffer |
spacing(NkVec2 value)
Copies the specified
NkVec2 to the spacing field. |
NkHandle |
userdata()
Returns a
NkHandle view of the userdata field. |
NkStyleSlider.Buffer |
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes the
userdata field to the specified Consumer. |
NkStyleSlider.Buffer |
userdata(NkHandle value)
Copies the specified
NkHandle to the userdata field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
NkStyleSlider.Buffer instance 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 NkStyleSlider.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public NkStyleItem normal()
NkStyleItem view of the normal field.public NkStyleItem hover()
NkStyleItem view of the hover field.public NkStyleItem active()
NkStyleItem view of the active field.public NkStyleItem cursor_normal()
NkStyleItem view of the cursor_normal field.public NkStyleItem cursor_hover()
NkStyleItem view of the cursor_hover field.public NkStyleItem cursor_active()
NkStyleItem view of the cursor_active field.public float border()
border field.public float rounding()
rounding field.public float bar_height()
bar_height field.public int show_buttons()
show_buttons field.public NkStyleButton inc_button()
NkStyleButton view of the inc_button field.public NkStyleButton dec_button()
NkStyleButton view of the dec_button field.public int inc_symbol()
inc_symbol field.public int dec_symbol()
dec_symbol field.@Nullable public NkDrawBeginCallback draw_begin()
draw_begin field.@Nullable public NkDrawEndCallback draw_end()
draw_end field.public NkStyleSlider.Buffer normal(NkStyleItem value)
NkStyleItem to the normal field.public NkStyleSlider.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
normal field to the specified Consumer.public NkStyleSlider.Buffer hover(NkStyleItem value)
NkStyleItem to the hover field.public NkStyleSlider.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
hover field to the specified Consumer.public NkStyleSlider.Buffer active(NkStyleItem value)
NkStyleItem to the active field.public NkStyleSlider.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
active field to the specified Consumer.public NkStyleSlider.Buffer border_color(NkColor value)
NkColor to the border_color field.public NkStyleSlider.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
border_color field to the specified Consumer.public NkStyleSlider.Buffer bar_normal(NkColor value)
NkColor to the bar_normal field.public NkStyleSlider.Buffer bar_normal(java.util.function.Consumer<NkColor> consumer)
bar_normal field to the specified Consumer.public NkStyleSlider.Buffer bar_hover(NkColor value)
NkColor to the bar_hover field.public NkStyleSlider.Buffer bar_hover(java.util.function.Consumer<NkColor> consumer)
bar_hover field to the specified Consumer.public NkStyleSlider.Buffer bar_active(NkColor value)
NkColor to the bar_active field.public NkStyleSlider.Buffer bar_active(java.util.function.Consumer<NkColor> consumer)
bar_active field to the specified Consumer.public NkStyleSlider.Buffer bar_filled(NkColor value)
NkColor to the bar_filled field.public NkStyleSlider.Buffer bar_filled(java.util.function.Consumer<NkColor> consumer)
bar_filled field to the specified Consumer.public NkStyleSlider.Buffer cursor_normal(NkStyleItem value)
NkStyleItem to the cursor_normal field.public NkStyleSlider.Buffer cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
cursor_normal field to the specified Consumer.public NkStyleSlider.Buffer cursor_hover(NkStyleItem value)
NkStyleItem to the cursor_hover field.public NkStyleSlider.Buffer cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
cursor_hover field to the specified Consumer.public NkStyleSlider.Buffer cursor_active(NkStyleItem value)
NkStyleItem to the cursor_active field.public NkStyleSlider.Buffer cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
cursor_active field to the specified Consumer.public NkStyleSlider.Buffer border(float value)
border field.public NkStyleSlider.Buffer rounding(float value)
rounding field.public NkStyleSlider.Buffer bar_height(float value)
bar_height field.public NkStyleSlider.Buffer padding(NkVec2 value)
NkVec2 to the padding field.public NkStyleSlider.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
padding field to the specified Consumer.public NkStyleSlider.Buffer spacing(NkVec2 value)
NkVec2 to the spacing field.public NkStyleSlider.Buffer spacing(java.util.function.Consumer<NkVec2> consumer)
spacing field to the specified Consumer.public NkStyleSlider.Buffer cursor_size(NkVec2 value)
NkVec2 to the cursor_size field.public NkStyleSlider.Buffer cursor_size(java.util.function.Consumer<NkVec2> consumer)
cursor_size field to the specified Consumer.public NkStyleSlider.Buffer show_buttons(int value)
show_buttons field.public NkStyleSlider.Buffer inc_button(NkStyleButton value)
NkStyleButton to the inc_button field.public NkStyleSlider.Buffer inc_button(java.util.function.Consumer<NkStyleButton> consumer)
inc_button field to the specified Consumer.public NkStyleSlider.Buffer dec_button(NkStyleButton value)
NkStyleButton to the dec_button field.public NkStyleSlider.Buffer dec_button(java.util.function.Consumer<NkStyleButton> consumer)
dec_button field to the specified Consumer.public NkStyleSlider.Buffer inc_symbol(int value)
inc_symbol field.public NkStyleSlider.Buffer dec_symbol(int value)
dec_symbol field.public NkStyleSlider.Buffer userdata(NkHandle value)
NkHandle to the userdata field.public NkStyleSlider.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
userdata field to the specified Consumer.public NkStyleSlider.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
draw_begin field.public NkStyleSlider.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
draw_end field.Copyright LWJGL. All Rights Reserved. License terms.