Package org.lwjgl.nuklear
Class NkStyleCombo.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleCombo,NkStyleCombo.Buffer>
-
- org.lwjgl.nuklear.NkStyleCombo.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<NkStyleCombo>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleCombo
public static class NkStyleCombo.Buffer extends org.lwjgl.system.StructBuffer<NkStyleCombo,NkStyleCombo.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStyleCombostructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItemactive()NkStyleCombo.Bufferactive(java.util.function.Consumer<NkStyleItem> consumer)Passes theactivefield to the specifiedConsumer.NkStyleCombo.Bufferactive(NkStyleItem value)Copies the specifiedNkStyleItemto theactivefield.floatborder()NkStyleCombo.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()NkStyleCombo.Bufferborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleCombo.Bufferborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.NkStyleButtonbutton()NkStyleCombo.Bufferbutton(java.util.function.Consumer<NkStyleButton> consumer)Passes thebuttonfield to the specifiedConsumer.NkStyleCombo.Bufferbutton(NkStyleButton value)Copies the specifiedNkStyleButtonto thebuttonfield.NkVec2button_padding()NkStyleCombo.Bufferbutton_padding(java.util.function.Consumer<NkVec2> consumer)Passes thebutton_paddingfield to the specifiedConsumer.NkStyleCombo.Bufferbutton_padding(NkVec2 value)Copies the specifiedNkVec2to thebutton_paddingfield.NkVec2content_padding()NkStyleCombo.Buffercontent_padding(java.util.function.Consumer<NkVec2> consumer)Passes thecontent_paddingfield to the specifiedConsumer.NkStyleCombo.Buffercontent_padding(NkVec2 value)Copies the specifiedNkVec2to thecontent_paddingfield.NkStyleItemhover()NkStyleCombo.Bufferhover(java.util.function.Consumer<NkStyleItem> consumer)Passes thehoverfield to the specifiedConsumer.NkStyleCombo.Bufferhover(NkStyleItem value)Copies the specifiedNkStyleItemto thehoverfield.NkColorlabel_active()NkStyleCombo.Bufferlabel_active(java.util.function.Consumer<NkColor> consumer)Passes thelabel_activefield to the specifiedConsumer.NkStyleCombo.Bufferlabel_active(NkColor value)Copies the specifiedNkColorto thelabel_activefield.NkColorlabel_hover()NkStyleCombo.Bufferlabel_hover(java.util.function.Consumer<NkColor> consumer)Passes thelabel_hoverfield to the specifiedConsumer.NkStyleCombo.Bufferlabel_hover(NkColor value)Copies the specifiedNkColorto thelabel_hoverfield.NkColorlabel_normal()NkStyleCombo.Bufferlabel_normal(java.util.function.Consumer<NkColor> consumer)Passes thelabel_normalfield to the specifiedConsumer.NkStyleCombo.Bufferlabel_normal(NkColor value)Copies the specifiedNkColorto thelabel_normalfield.NkStyleItemnormal()NkStyleCombo.Buffernormal(java.util.function.Consumer<NkStyleItem> consumer)Passes thenormalfield to the specifiedConsumer.NkStyleCombo.Buffernormal(NkStyleItem value)Copies the specifiedNkStyleItemto thenormalfield.floatrounding()NkStyleCombo.Bufferrounding(float value)Sets the specified value to theroundingfield.NkVec2spacing()NkStyleCombo.Bufferspacing(java.util.function.Consumer<NkVec2> consumer)Passes thespacingfield to the specifiedConsumer.NkStyleCombo.Bufferspacing(NkVec2 value)Copies the specifiedNkVec2to thespacingfield.intsym_active()NkStyleCombo.Buffersym_active(int value)Sets the specified value to thesym_activefield.intsym_hover()NkStyleCombo.Buffersym_hover(int value)Sets the specified value to thesym_hoverfield.intsym_normal()NkStyleCombo.Buffersym_normal(int value)Sets the specified value to thesym_normalfield.NkColorsymbol_active()NkStyleCombo.Buffersymbol_active(java.util.function.Consumer<NkColor> consumer)Passes thesymbol_activefield to the specifiedConsumer.NkStyleCombo.Buffersymbol_active(NkColor value)Copies the specifiedNkColorto thesymbol_activefield.NkColorsymbol_hover()NkStyleCombo.Buffersymbol_hover(java.util.function.Consumer<NkColor> consumer)Passes thesymbol_hoverfield to the specifiedConsumer.NkStyleCombo.Buffersymbol_hover(NkColor value)Copies the specifiedNkColorto thesymbol_hoverfield.NkColorsymbol_normal()NkStyleCombo.Buffersymbol_normal(java.util.function.Consumer<NkColor> consumer)Passes thesymbol_normalfield to the specifiedConsumer.NkStyleCombo.Buffersymbol_normal(NkColor value)Copies the specifiedNkColorto thesymbol_normalfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
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 byNkStyleCombo.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:
- a
NkStyleItemview of thenormalfield.
-
hover
public NkStyleItem hover()
- Returns:
- a
NkStyleItemview of thehoverfield.
-
active
public NkStyleItem active()
- Returns:
- a
NkStyleItemview of theactivefield.
-
button
public NkStyleButton 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
public NkVec2 content_padding()
- Returns:
- a
NkVec2view of thecontent_paddingfield.
-
normal
public NkStyleCombo.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItemto thenormalfield.
-
normal
public NkStyleCombo.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormalfield to the specifiedConsumer.
-
hover
public NkStyleCombo.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItemto thehoverfield.
-
hover
public NkStyleCombo.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehoverfield to the specifiedConsumer.
-
active
public NkStyleCombo.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItemto theactivefield.
-
active
public NkStyleCombo.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactivefield to the specifiedConsumer.
-
border_color
public NkStyleCombo.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
border_color
public NkStyleCombo.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
label_normal
public NkStyleCombo.Buffer label_normal(NkColor value)
Copies the specifiedNkColorto thelabel_normalfield.
-
label_normal
public NkStyleCombo.Buffer label_normal(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_normalfield to the specifiedConsumer.
-
label_hover
public NkStyleCombo.Buffer label_hover(NkColor value)
Copies the specifiedNkColorto thelabel_hoverfield.
-
label_hover
public NkStyleCombo.Buffer label_hover(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_hoverfield to the specifiedConsumer.
-
label_active
public NkStyleCombo.Buffer label_active(NkColor value)
Copies the specifiedNkColorto thelabel_activefield.
-
label_active
public NkStyleCombo.Buffer label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_activefield to the specifiedConsumer.
-
symbol_normal
public NkStyleCombo.Buffer symbol_normal(NkColor value)
Copies the specifiedNkColorto thesymbol_normalfield.
-
symbol_normal
public NkStyleCombo.Buffer symbol_normal(java.util.function.Consumer<NkColor> consumer)
Passes thesymbol_normalfield to the specifiedConsumer.
-
symbol_hover
public NkStyleCombo.Buffer symbol_hover(NkColor value)
Copies the specifiedNkColorto thesymbol_hoverfield.
-
symbol_hover
public NkStyleCombo.Buffer symbol_hover(java.util.function.Consumer<NkColor> consumer)
Passes thesymbol_hoverfield to the specifiedConsumer.
-
symbol_active
public NkStyleCombo.Buffer symbol_active(NkColor value)
Copies the specifiedNkColorto thesymbol_activefield.
-
symbol_active
public NkStyleCombo.Buffer symbol_active(java.util.function.Consumer<NkColor> consumer)
Passes thesymbol_activefield to the specifiedConsumer.
-
button
public NkStyleCombo.Buffer button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thebuttonfield.
-
button
public NkStyleCombo.Buffer button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thebuttonfield to the specifiedConsumer.
-
sym_normal
public NkStyleCombo.Buffer sym_normal(int value)
Sets the specified value to thesym_normalfield.
-
sym_hover
public NkStyleCombo.Buffer sym_hover(int value)
Sets the specified value to thesym_hoverfield.
-
sym_active
public NkStyleCombo.Buffer sym_active(int value)
Sets the specified value to thesym_activefield.
-
border
public NkStyleCombo.Buffer border(float value)
Sets the specified value to theborderfield.
-
rounding
public NkStyleCombo.Buffer rounding(float value)
Sets the specified value to theroundingfield.
-
content_padding
public NkStyleCombo.Buffer content_padding(NkVec2 value)
Copies the specifiedNkVec2to thecontent_paddingfield.
-
content_padding
public NkStyleCombo.Buffer content_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thecontent_paddingfield to the specifiedConsumer.
-
button_padding
public NkStyleCombo.Buffer button_padding(NkVec2 value)
Copies the specifiedNkVec2to thebutton_paddingfield.
-
button_padding
public NkStyleCombo.Buffer button_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thebutton_paddingfield to the specifiedConsumer.
-
spacing
public NkStyleCombo.Buffer spacing(NkVec2 value)
Copies the specifiedNkVec2to thespacingfield.
-
spacing
public NkStyleCombo.Buffer spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacingfield to the specifiedConsumer.
-
-