Package org.lwjgl.nuklear
Class NkStyleEdit.Buffer
- All Implemented Interfaces:
AutoCloseable
,Iterable<NkStyleEdit>
,NativeResource
,Pointer
- Enclosing class:
NkStyleEdit
public static class NkStyleEdit.Buffer
extends StructBuffer<NkStyleEdit,NkStyleEdit.Buffer>
implements NativeResource
An array of
NkStyleEdit
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 newNkStyleEdit.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.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.float
color_factor
(float value) Sets the specified value to thecolor_factor
field.cursor_hover
(Consumer<NkColor> consumer) Passes thecursor_hover
field to the specifiedConsumer
.cursor_hover
(NkColor value) Copies the specifiedNkColor
to thecursor_hover
field.cursor_normal
(Consumer<NkColor> consumer) Passes thecursor_normal
field to the specifiedConsumer
.cursor_normal
(NkColor value) Copies the specifiedNkColor
to thecursor_normal
field.float
cursor_size
(float value) Sets the specified value to thecursor_size
field.cursor_text_hover
(Consumer<NkColor> consumer) Passes thecursor_text_hover
field to the specifiedConsumer
.cursor_text_hover
(NkColor value) Copies the specifiedNkColor
to thecursor_text_hover
field.cursor_text_normal
(Consumer<NkColor> consumer) Passes thecursor_text_normal
field to the specifiedConsumer
.cursor_text_normal
(NkColor value) Copies the specifiedNkColor
to thecursor_text_normal
field.float
disabled_factor
(float value) Sets the specified value to thedisabled_factor
field.hover()
hover
(Consumer<NkStyleItem> consumer) Passes thehover
field to the specifiedConsumer
.hover
(NkStyleItem value) Copies the specifiedNkStyleItem
to thehover
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.float
row_padding
(float value) Sets the specified value to therow_padding
field.scrollbar
(Consumer<NkStyleScrollbar> consumer) Passes thescrollbar
field to the specifiedConsumer
.scrollbar
(NkStyleScrollbar value) Copies the specifiedNkStyleScrollbar
to thescrollbar
field.scrollbar_size
(Consumer<NkVec2> consumer) Passes thescrollbar_size
field to the specifiedConsumer
.scrollbar_size
(NkVec2 value) Copies the specifiedNkVec2
to thescrollbar_size
field.selected_hover
(Consumer<NkColor> consumer) Passes theselected_hover
field to the specifiedConsumer
.selected_hover
(NkColor value) Copies the specifiedNkColor
to theselected_hover
field.selected_normal
(Consumer<NkColor> consumer) Passes theselected_normal
field to the specifiedConsumer
.selected_normal
(NkColor value) Copies the specifiedNkColor
to theselected_normal
field.selected_text_hover
(Consumer<NkColor> consumer) Passes theselected_text_hover
field to the specifiedConsumer
.selected_text_hover
(NkColor value) Copies the specifiedNkColor
to theselected_text_hover
field.selected_text_normal
(Consumer<NkColor> consumer) Passes theselected_text_normal
field to the specifiedConsumer
.selected_text_normal
(NkColor value) Copies the specifiedNkColor
to theselected_text_normal
field.text_active
(Consumer<NkColor> consumer) Passes thetext_active
field to the specifiedConsumer
.text_active
(NkColor value) Copies the specifiedNkColor
to thetext_active
field.text_hover
(Consumer<NkColor> consumer) Passes thetext_hover
field to the specifiedConsumer
.text_hover
(NkColor value) Copies the specifiedNkColor
to thetext_hover
field.text_normal
(Consumer<NkColor> consumer) Passes thetext_normal
field to the specifiedConsumer
.text_normal
(NkColor value) Copies the specifiedNkColor
to thetext_normal
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 newNkStyleEdit.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
NkStyleEdit.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.
-
scrollbar
- Returns:
- a
NkStyleScrollbar
view of thescrollbar
field.
-
cursor_normal
- Returns:
- a
NkColor
view of thecursor_normal
field.
-
cursor_hover
- Returns:
- a
NkColor
view of thecursor_hover
field.
-
cursor_text_normal
- Returns:
- a
NkColor
view of thecursor_text_normal
field.
-
cursor_text_hover
- Returns:
- a
NkColor
view of thecursor_text_hover
field.
-
text_normal
- Returns:
- a
NkColor
view of thetext_normal
field.
-
text_hover
- Returns:
- a
NkColor
view of thetext_hover
field.
-
text_active
- Returns:
- a
NkColor
view of thetext_active
field.
-
selected_normal
- Returns:
- a
NkColor
view of theselected_normal
field.
-
selected_hover
- Returns:
- a
NkColor
view of theselected_hover
field.
-
selected_text_normal
- Returns:
- a
NkColor
view of theselected_text_normal
field.
-
selected_text_hover
- Returns:
- a
NkColor
view of theselected_text_hover
field.
-
border
public float border()- Returns:
- the value of the
border
field.
-
rounding
public float rounding()- Returns:
- the value of the
rounding
field.
-
cursor_size
public float cursor_size()- Returns:
- the value of the
cursor_size
field.
-
scrollbar_size
- Returns:
- a
NkVec2
view of thescrollbar_size
field.
-
padding
- Returns:
- a
NkVec2
view of thepadding
field.
-
row_padding
public float row_padding()- Returns:
- the value of the
row_padding
field.
-
color_factor
public float color_factor()- Returns:
- the value of the
color_factor
field.
-
disabled_factor
public float disabled_factor()- Returns:
- the value of the
disabled_factor
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
. -
scrollbar
Copies the specifiedNkStyleScrollbar
to thescrollbar
field. -
scrollbar
Passes thescrollbar
field to the specifiedConsumer
. -
cursor_normal
Copies the specifiedNkColor
to thecursor_normal
field. -
cursor_normal
Passes thecursor_normal
field to the specifiedConsumer
. -
cursor_hover
Copies the specifiedNkColor
to thecursor_hover
field. -
cursor_hover
Passes thecursor_hover
field to the specifiedConsumer
. -
cursor_text_normal
Copies the specifiedNkColor
to thecursor_text_normal
field. -
cursor_text_normal
Passes thecursor_text_normal
field to the specifiedConsumer
. -
cursor_text_hover
Copies the specifiedNkColor
to thecursor_text_hover
field. -
cursor_text_hover
Passes thecursor_text_hover
field to the specifiedConsumer
. -
text_normal
Copies the specifiedNkColor
to thetext_normal
field. -
text_normal
Passes thetext_normal
field to the specifiedConsumer
. -
text_hover
Copies the specifiedNkColor
to thetext_hover
field. -
text_hover
Passes thetext_hover
field to the specifiedConsumer
. -
text_active
Copies the specifiedNkColor
to thetext_active
field. -
text_active
Passes thetext_active
field to the specifiedConsumer
. -
selected_normal
Copies the specifiedNkColor
to theselected_normal
field. -
selected_normal
Passes theselected_normal
field to the specifiedConsumer
. -
selected_hover
Copies the specifiedNkColor
to theselected_hover
field. -
selected_hover
Passes theselected_hover
field to the specifiedConsumer
. -
selected_text_normal
Copies the specifiedNkColor
to theselected_text_normal
field. -
selected_text_normal
Passes theselected_text_normal
field to the specifiedConsumer
. -
selected_text_hover
Copies the specifiedNkColor
to theselected_text_hover
field. -
selected_text_hover
Passes theselected_text_hover
field to the specifiedConsumer
. -
border
Sets the specified value to theborder
field. -
rounding
Sets the specified value to therounding
field. -
cursor_size
Sets the specified value to thecursor_size
field. -
scrollbar_size
Copies the specifiedNkVec2
to thescrollbar_size
field. -
scrollbar_size
Passes thescrollbar_size
field to the specifiedConsumer
. -
padding
Copies the specifiedNkVec2
to thepadding
field. -
padding
Passes thepadding
field to the specifiedConsumer
. -
row_padding
Sets the specified value to therow_padding
field. -
color_factor
Sets the specified value to thecolor_factor
field. -
disabled_factor
Sets the specified value to thedisabled_factor
field.
-