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:
AutoCloseable
,Iterable<NkStyleSlider>
,NativeResource
,Pointer
- Enclosing class:
NkStyleSlider
public static class NkStyleSlider.Buffer
extends StructBuffer<NkStyleSlider,NkStyleSlider.Buffer>
implements NativeResource
An array of
NkStyleSlider
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
ConstructorDescriptionBuffer
(long address, int cap) Buffer
(ByteBuffer container) Creates a newNkStyleSlider.Buffer
instance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionactive()
active
(Consumer<NkStyleItem> consumer) Passes theactive
field to the specifiedConsumer
.active
(NkStyleItem value) Copies the specifiedNkStyleItem
to theactive
field.bar_active
(Consumer<NkColor> consumer) Passes thebar_active
field to the specifiedConsumer
.bar_active
(NkColor value) Copies the specifiedNkColor
to thebar_active
field.bar_filled
(Consumer<NkColor> consumer) Passes thebar_filled
field to the specifiedConsumer
.bar_filled
(NkColor value) Copies the specifiedNkColor
to thebar_filled
field.float
bar_height
(float value) Sets the specified value to thebar_height
field.Passes thebar_hover
field to the specifiedConsumer
.Copies the specifiedNkColor
to thebar_hover
field.bar_normal
(Consumer<NkColor> consumer) Passes thebar_normal
field to the specifiedConsumer
.bar_normal
(NkColor value) Copies the specifiedNkColor
to thebar_normal
field.float
border()
border
(float value) Sets the specified value to theborder
field.border_color
(Consumer<NkColor> consumer) Passes theborder_color
field to the specifiedConsumer
.border_color
(NkColor value) Copies the specifiedNkColor
to theborder_color
field.cursor_active
(Consumer<NkStyleItem> consumer) Passes thecursor_active
field to the specifiedConsumer
.cursor_active
(NkStyleItem value) Copies the specifiedNkStyleItem
to thecursor_active
field.cursor_hover
(Consumer<NkStyleItem> consumer) Passes thecursor_hover
field to the specifiedConsumer
.cursor_hover
(NkStyleItem value) Copies the specifiedNkStyleItem
to thecursor_hover
field.cursor_normal
(Consumer<NkStyleItem> consumer) Passes thecursor_normal
field to the specifiedConsumer
.cursor_normal
(NkStyleItem value) Copies the specifiedNkStyleItem
to thecursor_normal
field.cursor_size
(Consumer<NkVec2> consumer) Passes thecursor_size
field to the specifiedConsumer
.cursor_size
(NkVec2 value) Copies the specifiedNkVec2
to thecursor_size
field.dec_button
(Consumer<NkStyleButton> consumer) Passes thedec_button
field to the specifiedConsumer
.dec_button
(NkStyleButton value) Copies the specifiedNkStyleButton
to thedec_button
field.int
dec_symbol
(int value) Sets the specified value to theNkStyleSlider.dec_symbol()
field.draw_begin
(NkDrawBeginCallbackI value) Sets the specified value to thedraw_begin
field.draw_end()
draw_end
(NkDrawEndCallbackI value) Sets the specified value to thedraw_end
field.hover()
hover
(Consumer<NkStyleItem> consumer) Passes thehover
field to the specifiedConsumer
.hover
(NkStyleItem value) Copies the specifiedNkStyleItem
to thehover
field.inc_button
(Consumer<NkStyleButton> consumer) Passes theinc_button
field to the specifiedConsumer
.inc_button
(NkStyleButton value) Copies the specifiedNkStyleButton
to theinc_button
field.int
inc_symbol
(int value) Sets the specified value to theNkStyleSlider.inc_symbol()
field.normal()
normal
(Consumer<NkStyleItem> consumer) Passes thenormal
field to the specifiedConsumer
.normal
(NkStyleItem value) Copies the specifiedNkStyleItem
to thenormal
field.padding()
Passes thepadding
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thepadding
field.float
rounding()
rounding
(float value) Sets the specified value to therounding
field.int
show_buttons
(int value) Sets the specified value to theshow_buttons
field.spacing()
Passes thespacing
field to the specifiedConsumer
.Copies the specifiedNkVec2
to thespacing
field.userdata()
Passes theuserdata
field to the specifiedConsumer
.Copies the specifiedNkHandle
to theuserdata
field.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, stream
Methods 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, toString
Methods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCode
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
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 by
NkStyleSlider.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
NkStyleItem
view of thenormal
field.
-
hover
- Returns:
- a
NkStyleItem
view of thehover
field.
-
active
- Returns:
- a
NkStyleItem
view of theactive
field.
-
border_color
- Returns:
- a
NkColor
view of theborder_color
field.
-
bar_normal
- Returns:
- a
NkColor
view of thebar_normal
field.
-
bar_hover
- Returns:
- a
NkColor
view of thebar_hover
field.
-
bar_active
- Returns:
- a
NkColor
view of thebar_active
field.
-
bar_filled
- Returns:
- a
NkColor
view of thebar_filled
field.
-
cursor_normal
- Returns:
- a
NkStyleItem
view of thecursor_normal
field.
-
cursor_hover
- Returns:
- a
NkStyleItem
view of thecursor_hover
field.
-
cursor_active
- Returns:
- a
NkStyleItem
view of thecursor_active
field.
-
border
public float border()- Returns:
- the value of the
border
field.
-
rounding
public float rounding()- Returns:
- the value of the
rounding
field.
-
bar_height
public float bar_height()- Returns:
- the value of the
bar_height
field.
-
padding
- Returns:
- a
NkVec2
view of thepadding
field.
-
spacing
- Returns:
- a
NkVec2
view of thespacing
field.
-
cursor_size
- Returns:
- a
NkVec2
view of thecursor_size
field.
-
show_buttons
public int show_buttons()- Returns:
- the value of the
show_buttons
field.
-
inc_button
- Returns:
- a
NkStyleButton
view of theinc_button
field.
-
dec_button
- Returns:
- a
NkStyleButton
view of thedec_button
field.
-
inc_symbol
public int inc_symbol()- Returns:
- the value of the
NkStyleSlider.inc_symbol()
field.
-
dec_symbol
public int dec_symbol()- Returns:
- the value of the
NkStyleSlider.dec_symbol()
field.
-
userdata
- Returns:
- a
NkHandle
view of theuserdata
field.
-
draw_begin
- Returns:
- the value of the
draw_begin
field.
-
draw_end
- Returns:
- the value of the
draw_end
field.
-
normal
Copies the specifiedNkStyleItem
to thenormal
field. -
normal
Passes thenormal
field to the specifiedConsumer
. -
hover
Copies the specifiedNkStyleItem
to thehover
field. -
hover
Passes thehover
field to the specifiedConsumer
. -
active
Copies the specifiedNkStyleItem
to theactive
field. -
active
Passes theactive
field to the specifiedConsumer
. -
border_color
Copies the specifiedNkColor
to theborder_color
field. -
border_color
Passes theborder_color
field to the specifiedConsumer
. -
bar_normal
Copies the specifiedNkColor
to thebar_normal
field. -
bar_normal
Passes thebar_normal
field to the specifiedConsumer
. -
bar_hover
Copies the specifiedNkColor
to thebar_hover
field. -
bar_hover
Passes thebar_hover
field to the specifiedConsumer
. -
bar_active
Copies the specifiedNkColor
to thebar_active
field. -
bar_active
Passes thebar_active
field to the specifiedConsumer
. -
bar_filled
Copies the specifiedNkColor
to thebar_filled
field. -
bar_filled
Passes thebar_filled
field to the specifiedConsumer
. -
cursor_normal
Copies the specifiedNkStyleItem
to thecursor_normal
field. -
cursor_normal
Passes thecursor_normal
field to the specifiedConsumer
. -
cursor_hover
Copies the specifiedNkStyleItem
to thecursor_hover
field. -
cursor_hover
Passes thecursor_hover
field to the specifiedConsumer
. -
cursor_active
Copies the specifiedNkStyleItem
to thecursor_active
field. -
cursor_active
Passes thecursor_active
field to the specifiedConsumer
. -
border
Sets the specified value to theborder
field. -
rounding
Sets the specified value to therounding
field. -
bar_height
Sets the specified value to thebar_height
field. -
padding
Copies the specifiedNkVec2
to thepadding
field. -
padding
Passes thepadding
field to the specifiedConsumer
. -
spacing
Copies the specifiedNkVec2
to thespacing
field. -
spacing
Passes thespacing
field to the specifiedConsumer
. -
cursor_size
Copies the specifiedNkVec2
to thecursor_size
field. -
cursor_size
Passes thecursor_size
field to the specifiedConsumer
. -
show_buttons
Sets the specified value to theshow_buttons
field. -
inc_button
Copies the specifiedNkStyleButton
to theinc_button
field. -
inc_button
Passes theinc_button
field to the specifiedConsumer
. -
dec_button
Copies the specifiedNkStyleButton
to thedec_button
field. -
dec_button
Passes thedec_button
field to the specifiedConsumer
. -
inc_symbol
Sets the specified value to theNkStyleSlider.inc_symbol()
field. -
dec_symbol
Sets the specified value to theNkStyleSlider.dec_symbol()
field. -
userdata
Copies the specifiedNkHandle
to theuserdata
field. -
userdata
Passes theuserdata
field to the specifiedConsumer
. -
draw_begin
Sets the specified value to thedraw_begin
field. -
draw_end
Sets the specified value to thedraw_end
field.
-