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 ofNkStyleSlider
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItem
active()
Returns aNkStyleItem
view of theactive
field.NkStyleSlider.Buffer
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.NkStyleSlider.Buffer
active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.NkColor
bar_active()
Returns aNkColor
view of thebar_active
field.NkStyleSlider.Buffer
bar_active(java.util.function.Consumer<NkColor> consumer)
Passes thebar_active
field to the specifiedConsumer
.NkStyleSlider.Buffer
bar_active(NkColor value)
Copies the specifiedNkColor
to thebar_active
field.NkColor
bar_filled()
Returns aNkColor
view of thebar_filled
field.NkStyleSlider.Buffer
bar_filled(java.util.function.Consumer<NkColor> consumer)
Passes thebar_filled
field to the specifiedConsumer
.NkStyleSlider.Buffer
bar_filled(NkColor value)
Copies the specifiedNkColor
to thebar_filled
field.float
bar_height()
Returns the value of thebar_height
field.NkStyleSlider.Buffer
bar_height(float value)
Sets the specified value to thebar_height
field.NkColor
bar_hover()
Returns aNkColor
view of thebar_hover
field.NkStyleSlider.Buffer
bar_hover(java.util.function.Consumer<NkColor> consumer)
Passes thebar_hover
field to the specifiedConsumer
.NkStyleSlider.Buffer
bar_hover(NkColor value)
Copies the specifiedNkColor
to thebar_hover
field.NkColor
bar_normal()
Returns aNkColor
view of thebar_normal
field.NkStyleSlider.Buffer
bar_normal(java.util.function.Consumer<NkColor> consumer)
Passes thebar_normal
field to the specifiedConsumer
.NkStyleSlider.Buffer
bar_normal(NkColor value)
Copies the specifiedNkColor
to thebar_normal
field.float
border()
Returns the value of theborder
field.NkStyleSlider.Buffer
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleSlider.Buffer
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleSlider.Buffer
border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.NkStyleItem
cursor_active()
Returns aNkStyleItem
view of thecursor_active
field.NkStyleSlider.Buffer
cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_active
field to the specifiedConsumer
.NkStyleSlider.Buffer
cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_active
field.NkStyleItem
cursor_hover()
Returns aNkStyleItem
view of thecursor_hover
field.NkStyleSlider.Buffer
cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hover
field to the specifiedConsumer
.NkStyleSlider.Buffer
cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_hover
field.NkStyleItem
cursor_normal()
Returns aNkStyleItem
view of thecursor_normal
field.NkStyleSlider.Buffer
cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normal
field to the specifiedConsumer
.NkStyleSlider.Buffer
cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_normal
field.NkVec2
cursor_size()
Returns aNkVec2
view of thecursor_size
field.NkStyleSlider.Buffer
cursor_size(java.util.function.Consumer<NkVec2> consumer)
Passes thecursor_size
field to the specifiedConsumer
.NkStyleSlider.Buffer
cursor_size(NkVec2 value)
Copies the specifiedNkVec2
to thecursor_size
field.NkStyleButton
dec_button()
Returns aNkStyleButton
view of thedec_button
field.NkStyleSlider.Buffer
dec_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thedec_button
field to the specifiedConsumer
.NkStyleSlider.Buffer
dec_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thedec_button
field.int
dec_symbol()
Returns the value of thedec_symbol
field.NkStyleSlider.Buffer
dec_symbol(int value)
Sets the specified value to thedec_symbol
field.NkDrawBeginCallback
draw_begin()
Returns the value of thedraw_begin
field.NkStyleSlider.Buffer
draw_begin(NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.NkDrawEndCallback
draw_end()
Returns the value of thedraw_end
field.NkStyleSlider.Buffer
draw_end(NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.NkStyleItem
hover()
Returns aNkStyleItem
view of thehover
field.NkStyleSlider.Buffer
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.NkStyleSlider.Buffer
hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.NkStyleButton
inc_button()
Returns aNkStyleButton
view of theinc_button
field.NkStyleSlider.Buffer
inc_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theinc_button
field to the specifiedConsumer
.NkStyleSlider.Buffer
inc_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theinc_button
field.int
inc_symbol()
Returns the value of theinc_symbol
field.NkStyleSlider.Buffer
inc_symbol(int value)
Sets the specified value to theinc_symbol
field.NkStyleItem
normal()
Returns aNkStyleItem
view of thenormal
field.NkStyleSlider.Buffer
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.NkStyleSlider.Buffer
normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleSlider.Buffer
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleSlider.Buffer
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.float
rounding()
Returns the value of therounding
field.NkStyleSlider.Buffer
rounding(float value)
Sets the specified value to therounding
field.int
show_buttons()
Returns the value of theshow_buttons
field.NkStyleSlider.Buffer
show_buttons(int value)
Sets the specified value to theshow_buttons
field.NkVec2
spacing()
Returns aNkVec2
view of thespacing
field.NkStyleSlider.Buffer
spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.NkStyleSlider.Buffer
spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.NkHandle
userdata()
Returns aNkHandle
view of theuserdata
field.NkStyleSlider.Buffer
userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.NkStyleSlider.Buffer
userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleSlider.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 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 aNkStyleItem
view of thenormal
field.
-
hover
public NkStyleItem hover()
Returns aNkStyleItem
view of thehover
field.
-
active
public NkStyleItem active()
Returns aNkStyleItem
view of theactive
field.
-
cursor_normal
public NkStyleItem cursor_normal()
Returns aNkStyleItem
view of thecursor_normal
field.
-
cursor_hover
public NkStyleItem cursor_hover()
Returns aNkStyleItem
view of thecursor_hover
field.
-
cursor_active
public NkStyleItem cursor_active()
Returns aNkStyleItem
view of thecursor_active
field.
-
border
public float border()
Returns the value of theborder
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
bar_height
public float bar_height()
Returns the value of thebar_height
field.
-
show_buttons
public int show_buttons()
Returns the value of theshow_buttons
field.
-
inc_button
public NkStyleButton inc_button()
Returns aNkStyleButton
view of theinc_button
field.
-
dec_button
public NkStyleButton dec_button()
Returns aNkStyleButton
view of thedec_button
field.
-
inc_symbol
public int inc_symbol()
Returns the value of theinc_symbol
field.
-
dec_symbol
public int dec_symbol()
Returns the value of thedec_symbol
field.
-
draw_begin
@Nullable public NkDrawBeginCallback draw_begin()
Returns the value of thedraw_begin
field.
-
draw_end
@Nullable public NkDrawEndCallback draw_end()
Returns the value of thedraw_end
field.
-
normal
public NkStyleSlider.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.
-
normal
public NkStyleSlider.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.
-
hover
public NkStyleSlider.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.
-
hover
public NkStyleSlider.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.
-
active
public NkStyleSlider.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.
-
active
public NkStyleSlider.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.
-
border_color
public NkStyleSlider.Buffer border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleSlider.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
bar_normal
public NkStyleSlider.Buffer bar_normal(NkColor value)
Copies the specifiedNkColor
to thebar_normal
field.
-
bar_normal
public NkStyleSlider.Buffer bar_normal(java.util.function.Consumer<NkColor> consumer)
Passes thebar_normal
field to the specifiedConsumer
.
-
bar_hover
public NkStyleSlider.Buffer bar_hover(NkColor value)
Copies the specifiedNkColor
to thebar_hover
field.
-
bar_hover
public NkStyleSlider.Buffer bar_hover(java.util.function.Consumer<NkColor> consumer)
Passes thebar_hover
field to the specifiedConsumer
.
-
bar_active
public NkStyleSlider.Buffer bar_active(NkColor value)
Copies the specifiedNkColor
to thebar_active
field.
-
bar_active
public NkStyleSlider.Buffer bar_active(java.util.function.Consumer<NkColor> consumer)
Passes thebar_active
field to the specifiedConsumer
.
-
bar_filled
public NkStyleSlider.Buffer bar_filled(NkColor value)
Copies the specifiedNkColor
to thebar_filled
field.
-
bar_filled
public NkStyleSlider.Buffer bar_filled(java.util.function.Consumer<NkColor> consumer)
Passes thebar_filled
field to the specifiedConsumer
.
-
cursor_normal
public NkStyleSlider.Buffer cursor_normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_normal
field.
-
cursor_normal
public NkStyleSlider.Buffer cursor_normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_normal
field to the specifiedConsumer
.
-
cursor_hover
public NkStyleSlider.Buffer cursor_hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_hover
field.
-
cursor_hover
public NkStyleSlider.Buffer cursor_hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_hover
field to the specifiedConsumer
.
-
cursor_active
public NkStyleSlider.Buffer cursor_active(NkStyleItem value)
Copies the specifiedNkStyleItem
to thecursor_active
field.
-
cursor_active
public NkStyleSlider.Buffer cursor_active(java.util.function.Consumer<NkStyleItem> consumer)
Passes thecursor_active
field to the specifiedConsumer
.
-
border
public NkStyleSlider.Buffer border(float value)
Sets the specified value to theborder
field.
-
rounding
public NkStyleSlider.Buffer rounding(float value)
Sets the specified value to therounding
field.
-
bar_height
public NkStyleSlider.Buffer bar_height(float value)
Sets the specified value to thebar_height
field.
-
padding
public NkStyleSlider.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleSlider.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
spacing
public NkStyleSlider.Buffer spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.
-
spacing
public NkStyleSlider.Buffer spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.
-
cursor_size
public NkStyleSlider.Buffer cursor_size(NkVec2 value)
Copies the specifiedNkVec2
to thecursor_size
field.
-
cursor_size
public NkStyleSlider.Buffer cursor_size(java.util.function.Consumer<NkVec2> consumer)
Passes thecursor_size
field to the specifiedConsumer
.
-
show_buttons
public NkStyleSlider.Buffer show_buttons(int value)
Sets the specified value to theshow_buttons
field.
-
inc_button
public NkStyleSlider.Buffer inc_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to theinc_button
field.
-
inc_button
public NkStyleSlider.Buffer inc_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes theinc_button
field to the specifiedConsumer
.
-
dec_button
public NkStyleSlider.Buffer dec_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thedec_button
field.
-
dec_button
public NkStyleSlider.Buffer dec_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thedec_button
field to the specifiedConsumer
.
-
inc_symbol
public NkStyleSlider.Buffer inc_symbol(int value)
Sets the specified value to theinc_symbol
field.
-
dec_symbol
public NkStyleSlider.Buffer dec_symbol(int value)
Sets the specified value to thedec_symbol
field.
-
userdata
public NkStyleSlider.Buffer userdata(NkHandle value)
Copies the specifiedNkHandle
to theuserdata
field.
-
userdata
public NkStyleSlider.Buffer userdata(java.util.function.Consumer<NkHandle> consumer)
Passes theuserdata
field to the specifiedConsumer
.
-
draw_begin
public NkStyleSlider.Buffer draw_begin(@Nullable NkDrawBeginCallbackI value)
Sets the specified value to thedraw_begin
field.
-
draw_end
public NkStyleSlider.Buffer draw_end(@Nullable NkDrawEndCallbackI value)
Sets the specified value to thedraw_end
field.
-
-