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.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionactive()active(Consumer<NkStyleItem> consumer) Passes theactivefield to the specifiedConsumer.active(NkStyleItem value) Copies the specifiedNkStyleItemto theactivefield.floatborder()border(float value) Sets the specified value to theborderfield.border_color(Consumer<NkColor> consumer) Passes theborder_colorfield to the specifiedConsumer.border_color(NkColor value) Copies the specifiedNkColorto theborder_colorfield.floatcolor_factor(float value) Sets the specified value to thecolor_factorfield.cursor_hover(Consumer<NkColor> consumer) Passes thecursor_hoverfield to the specifiedConsumer.cursor_hover(NkColor value) Copies the specifiedNkColorto thecursor_hoverfield.cursor_normal(Consumer<NkColor> consumer) Passes thecursor_normalfield to the specifiedConsumer.cursor_normal(NkColor value) Copies the specifiedNkColorto thecursor_normalfield.floatcursor_size(float value) Sets the specified value to thecursor_sizefield.cursor_text_hover(Consumer<NkColor> consumer) Passes thecursor_text_hoverfield to the specifiedConsumer.cursor_text_hover(NkColor value) Copies the specifiedNkColorto thecursor_text_hoverfield.cursor_text_normal(Consumer<NkColor> consumer) Passes thecursor_text_normalfield to the specifiedConsumer.cursor_text_normal(NkColor value) Copies the specifiedNkColorto thecursor_text_normalfield.floatdisabled_factor(float value) Sets the specified value to thedisabled_factorfield.hover()hover(Consumer<NkStyleItem> consumer) Passes thehoverfield to the specifiedConsumer.hover(NkStyleItem value) Copies the specifiedNkStyleItemto thehoverfield.normal()normal(Consumer<NkStyleItem> consumer) Passes thenormalfield to the specifiedConsumer.normal(NkStyleItem value) Copies the specifiedNkStyleItemto thenormalfield.padding()Passes thepaddingfield to the specifiedConsumer.Copies the specifiedNkVec2to thepaddingfield.floatrounding()rounding(float value) Sets the specified value to theroundingfield.floatrow_padding(float value) Sets the specified value to therow_paddingfield.scrollbar(Consumer<NkStyleScrollbar> consumer) Passes thescrollbarfield to the specifiedConsumer.scrollbar(NkStyleScrollbar value) Copies the specifiedNkStyleScrollbarto thescrollbarfield.scrollbar_size(Consumer<NkVec2> consumer) Passes thescrollbar_sizefield to the specifiedConsumer.scrollbar_size(NkVec2 value) Copies the specifiedNkVec2to thescrollbar_sizefield.selected_hover(Consumer<NkColor> consumer) Passes theselected_hoverfield to the specifiedConsumer.selected_hover(NkColor value) Copies the specifiedNkColorto theselected_hoverfield.selected_normal(Consumer<NkColor> consumer) Passes theselected_normalfield to the specifiedConsumer.selected_normal(NkColor value) Copies the specifiedNkColorto theselected_normalfield.selected_text_hover(Consumer<NkColor> consumer) Passes theselected_text_hoverfield to the specifiedConsumer.selected_text_hover(NkColor value) Copies the specifiedNkColorto theselected_text_hoverfield.selected_text_normal(Consumer<NkColor> consumer) Passes theselected_text_normalfield to the specifiedConsumer.selected_text_normal(NkColor value) Copies the specifiedNkColorto theselected_text_normalfield.text_active(Consumer<NkColor> consumer) Passes thetext_activefield to the specifiedConsumer.text_active(NkColor value) Copies the specifiedNkColorto thetext_activefield.text_hover(Consumer<NkColor> consumer) Passes thetext_hoverfield to the specifiedConsumer.text_hover(NkColor value) Copies the specifiedNkColorto thetext_hoverfield.text_normal(Consumer<NkColor> consumer) Passes thetext_normalfield to the specifiedConsumer.text_normal(NkColor value) Copies the specifiedNkColorto thetext_normalfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods 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, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
Creates a newNkStyleEdit.Bufferinstance 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
NkStyleItemview of thenormalfield.
-
hover
- Returns:
- a
NkStyleItemview of thehoverfield.
-
active
- Returns:
- a
NkStyleItemview of theactivefield.
-
border_color
- Returns:
- a
NkColorview of theborder_colorfield.
-
scrollbar
- Returns:
- a
NkStyleScrollbarview of thescrollbarfield.
-
cursor_normal
- Returns:
- a
NkColorview of thecursor_normalfield.
-
cursor_hover
- Returns:
- a
NkColorview of thecursor_hoverfield.
-
cursor_text_normal
- Returns:
- a
NkColorview of thecursor_text_normalfield.
-
cursor_text_hover
- Returns:
- a
NkColorview of thecursor_text_hoverfield.
-
text_normal
- Returns:
- a
NkColorview of thetext_normalfield.
-
text_hover
- Returns:
- a
NkColorview of thetext_hoverfield.
-
text_active
- Returns:
- a
NkColorview of thetext_activefield.
-
selected_normal
- Returns:
- a
NkColorview of theselected_normalfield.
-
selected_hover
- Returns:
- a
NkColorview of theselected_hoverfield.
-
selected_text_normal
- Returns:
- a
NkColorview of theselected_text_normalfield.
-
selected_text_hover
- Returns:
- a
NkColorview of theselected_text_hoverfield.
-
border
public float border()- Returns:
- the value of the
borderfield.
-
rounding
public float rounding()- Returns:
- the value of the
roundingfield.
-
cursor_size
public float cursor_size()- Returns:
- the value of the
cursor_sizefield.
-
scrollbar_size
- Returns:
- a
NkVec2view of thescrollbar_sizefield.
-
padding
- Returns:
- a
NkVec2view of thepaddingfield.
-
row_padding
public float row_padding()- Returns:
- the value of the
row_paddingfield.
-
color_factor
public float color_factor()- Returns:
- the value of the
color_factorfield.
-
disabled_factor
public float disabled_factor()- Returns:
- the value of the
disabled_factorfield.
-
normal
Copies the specifiedNkStyleItemto thenormalfield. -
normal
Passes thenormalfield to the specifiedConsumer. -
hover
Copies the specifiedNkStyleItemto thehoverfield. -
hover
Passes thehoverfield to the specifiedConsumer. -
active
Copies the specifiedNkStyleItemto theactivefield. -
active
Passes theactivefield to the specifiedConsumer. -
border_color
Copies the specifiedNkColorto theborder_colorfield. -
border_color
Passes theborder_colorfield to the specifiedConsumer. -
scrollbar
Copies the specifiedNkStyleScrollbarto thescrollbarfield. -
scrollbar
Passes thescrollbarfield to the specifiedConsumer. -
cursor_normal
Copies the specifiedNkColorto thecursor_normalfield. -
cursor_normal
Passes thecursor_normalfield to the specifiedConsumer. -
cursor_hover
Copies the specifiedNkColorto thecursor_hoverfield. -
cursor_hover
Passes thecursor_hoverfield to the specifiedConsumer. -
cursor_text_normal
Copies the specifiedNkColorto thecursor_text_normalfield. -
cursor_text_normal
Passes thecursor_text_normalfield to the specifiedConsumer. -
cursor_text_hover
Copies the specifiedNkColorto thecursor_text_hoverfield. -
cursor_text_hover
Passes thecursor_text_hoverfield to the specifiedConsumer. -
text_normal
Copies the specifiedNkColorto thetext_normalfield. -
text_normal
Passes thetext_normalfield to the specifiedConsumer. -
text_hover
Copies the specifiedNkColorto thetext_hoverfield. -
text_hover
Passes thetext_hoverfield to the specifiedConsumer. -
text_active
Copies the specifiedNkColorto thetext_activefield. -
text_active
Passes thetext_activefield to the specifiedConsumer. -
selected_normal
Copies the specifiedNkColorto theselected_normalfield. -
selected_normal
Passes theselected_normalfield to the specifiedConsumer. -
selected_hover
Copies the specifiedNkColorto theselected_hoverfield. -
selected_hover
Passes theselected_hoverfield to the specifiedConsumer. -
selected_text_normal
Copies the specifiedNkColorto theselected_text_normalfield. -
selected_text_normal
Passes theselected_text_normalfield to the specifiedConsumer. -
selected_text_hover
Copies the specifiedNkColorto theselected_text_hoverfield. -
selected_text_hover
Passes theselected_text_hoverfield to the specifiedConsumer. -
border
Sets the specified value to theborderfield. -
rounding
Sets the specified value to theroundingfield. -
cursor_size
Sets the specified value to thecursor_sizefield. -
scrollbar_size
Copies the specifiedNkVec2to thescrollbar_sizefield. -
scrollbar_size
Passes thescrollbar_sizefield to the specifiedConsumer. -
padding
Copies the specifiedNkVec2to thepaddingfield. -
padding
Passes thepaddingfield to the specifiedConsumer. -
row_padding
Sets the specified value to therow_paddingfield. -
color_factor
Sets the specified value to thecolor_factorfield. -
disabled_factor
Sets the specified value to thedisabled_factorfield.
-