Package org.lwjgl.nuklear
Class NkStyleCombo.Buffer
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.CustomBuffer<NkStyleCombo.Buffer>
org.lwjgl.system.StructBuffer<NkStyleCombo,NkStyleCombo.Buffer>
org.lwjgl.nuklear.NkStyleCombo.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<NkStyleCombo>,NativeResource,Pointer
- Enclosing class:
NkStyleCombo
public static class NkStyleCombo.Buffer
extends StructBuffer<NkStyleCombo,NkStyleCombo.Buffer>
implements NativeResource
An array of
NkStyleCombo 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 newNkStyleCombo.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.button()button(Consumer<NkStyleButton> consumer) Passes thebuttonfield to the specifiedConsumer.button(NkStyleButton value) Copies the specifiedNkStyleButtonto thebuttonfield.button_padding(Consumer<NkVec2> consumer) Passes thebutton_paddingfield to the specifiedConsumer.button_padding(NkVec2 value) Copies the specifiedNkVec2to thebutton_paddingfield.floatcolor_factor(float value) Sets the specified value to thecolor_factorfield.content_padding(Consumer<NkVec2> consumer) Passes thecontent_paddingfield to the specifiedConsumer.content_padding(NkVec2 value) Copies the specifiedNkVec2to thecontent_paddingfield.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.label_active(Consumer<NkColor> consumer) Passes thelabel_activefield to the specifiedConsumer.label_active(NkColor value) Copies the specifiedNkColorto thelabel_activefield.label_hover(Consumer<NkColor> consumer) Passes thelabel_hoverfield to the specifiedConsumer.label_hover(NkColor value) Copies the specifiedNkColorto thelabel_hoverfield.label_normal(Consumer<NkColor> consumer) Passes thelabel_normalfield to the specifiedConsumer.label_normal(NkColor value) Copies the specifiedNkColorto thelabel_normalfield.normal()normal(Consumer<NkStyleItem> consumer) Passes thenormalfield to the specifiedConsumer.normal(NkStyleItem value) Copies the specifiedNkStyleItemto thenormalfield.floatrounding()rounding(float value) Sets the specified value to theroundingfield.spacing()Passes thespacingfield to the specifiedConsumer.Copies the specifiedNkVec2to thespacingfield.intsym_active(int value) Sets the specified value to thesym_activefield.intsym_hover(int value) Sets the specified value to thesym_hoverfield.intsym_normal(int value) Sets the specified value to thesym_normalfield.symbol_active(Consumer<NkColor> consumer) Passes thesymbol_activefield to the specifiedConsumer.symbol_active(NkColor value) Copies the specifiedNkColorto thesymbol_activefield.symbol_hover(Consumer<NkColor> consumer) Passes thesymbol_hoverfield to the specifiedConsumer.symbol_hover(NkColor value) Copies the specifiedNkColorto thesymbol_hoverfield.symbol_normal(Consumer<NkColor> consumer) Passes thesymbol_normalfield to the specifiedConsumer.symbol_normal(NkColor value) Copies the specifiedNkColorto thesymbol_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 newNkStyleCombo.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
NkStyleCombo.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.
-
label_normal
- Returns:
- a
NkColorview of thelabel_normalfield.
-
label_hover
- Returns:
- a
NkColorview of thelabel_hoverfield.
-
label_active
- Returns:
- a
NkColorview of thelabel_activefield.
-
symbol_normal
- Returns:
- a
NkColorview of thesymbol_normalfield.
-
symbol_hover
- Returns:
- a
NkColorview of thesymbol_hoverfield.
-
symbol_active
- Returns:
- a
NkColorview of thesymbol_activefield.
-
button
- Returns:
- a
NkStyleButtonview of thebuttonfield.
-
sym_normal
public int sym_normal()- Returns:
- the value of the
sym_normalfield.
-
sym_hover
public int sym_hover()- Returns:
- the value of the
sym_hoverfield.
-
sym_active
public int sym_active()- Returns:
- the value of the
sym_activefield.
-
border
public float border()- Returns:
- the value of the
borderfield.
-
rounding
public float rounding()- Returns:
- the value of the
roundingfield.
-
content_padding
- Returns:
- a
NkVec2view of thecontent_paddingfield.
-
button_padding
- Returns:
- a
NkVec2view of thebutton_paddingfield.
-
spacing
- Returns:
- a
NkVec2view of thespacingfield.
-
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. -
label_normal
Copies the specifiedNkColorto thelabel_normalfield. -
label_normal
Passes thelabel_normalfield to the specifiedConsumer. -
label_hover
Copies the specifiedNkColorto thelabel_hoverfield. -
label_hover
Passes thelabel_hoverfield to the specifiedConsumer. -
label_active
Copies the specifiedNkColorto thelabel_activefield. -
label_active
Passes thelabel_activefield to the specifiedConsumer. -
symbol_normal
Copies the specifiedNkColorto thesymbol_normalfield. -
symbol_normal
Passes thesymbol_normalfield to the specifiedConsumer. -
symbol_hover
Copies the specifiedNkColorto thesymbol_hoverfield. -
symbol_hover
Passes thesymbol_hoverfield to the specifiedConsumer. -
symbol_active
Copies the specifiedNkColorto thesymbol_activefield. -
symbol_active
Passes thesymbol_activefield to the specifiedConsumer. -
button
Copies the specifiedNkStyleButtonto thebuttonfield. -
button
Passes thebuttonfield to the specifiedConsumer. -
sym_normal
Sets the specified value to thesym_normalfield. -
sym_hover
Sets the specified value to thesym_hoverfield. -
sym_active
Sets the specified value to thesym_activefield. -
border
Sets the specified value to theborderfield. -
rounding
Sets the specified value to theroundingfield. -
content_padding
Copies the specifiedNkVec2to thecontent_paddingfield. -
content_padding
Passes thecontent_paddingfield to the specifiedConsumer. -
button_padding
Copies the specifiedNkVec2to thebutton_paddingfield. -
button_padding
Passes thebutton_paddingfield to the specifiedConsumer. -
spacing
Copies the specifiedNkVec2to thespacingfield. -
spacing
Passes thespacingfield to the specifiedConsumer. -
color_factor
Sets the specified value to thecolor_factorfield. -
disabled_factor
Sets the specified value to thedisabled_factorfield.
-