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