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 ofNkStyleCombo
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItem
active()
Returns aNkStyleItem
view of theactive
field.NkStyleCombo.Buffer
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.NkStyleCombo.Buffer
active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.float
border()
Returns the value of theborder
field.NkStyleCombo.Buffer
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleCombo.Buffer
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleCombo.Buffer
border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.NkStyleButton
button()
Returns aNkStyleButton
view of thebutton
field.NkStyleCombo.Buffer
button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thebutton
field to the specifiedConsumer
.NkStyleCombo.Buffer
button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thebutton
field.NkVec2
button_padding()
Returns aNkVec2
view of thebutton_padding
field.NkStyleCombo.Buffer
button_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thebutton_padding
field to the specifiedConsumer
.NkStyleCombo.Buffer
button_padding(NkVec2 value)
Copies the specifiedNkVec2
to thebutton_padding
field.NkVec2
content_padding()
Returns aNkVec2
view of thecontent_padding
field.NkStyleCombo.Buffer
content_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thecontent_padding
field to the specifiedConsumer
.NkStyleCombo.Buffer
content_padding(NkVec2 value)
Copies the specifiedNkVec2
to thecontent_padding
field.NkStyleItem
hover()
Returns aNkStyleItem
view of thehover
field.NkStyleCombo.Buffer
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.NkStyleCombo.Buffer
hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.NkColor
label_active()
Returns aNkColor
view of thelabel_active
field.NkStyleCombo.Buffer
label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_active
field to the specifiedConsumer
.NkStyleCombo.Buffer
label_active(NkColor value)
Copies the specifiedNkColor
to thelabel_active
field.NkColor
label_hover()
Returns aNkColor
view of thelabel_hover
field.NkStyleCombo.Buffer
label_hover(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_hover
field to the specifiedConsumer
.NkStyleCombo.Buffer
label_hover(NkColor value)
Copies the specifiedNkColor
to thelabel_hover
field.NkColor
label_normal()
Returns aNkColor
view of thelabel_normal
field.NkStyleCombo.Buffer
label_normal(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_normal
field to the specifiedConsumer
.NkStyleCombo.Buffer
label_normal(NkColor value)
Copies the specifiedNkColor
to thelabel_normal
field.NkStyleItem
normal()
Returns aNkStyleItem
view of thenormal
field.NkStyleCombo.Buffer
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.NkStyleCombo.Buffer
normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.float
rounding()
Returns the value of therounding
field.NkStyleCombo.Buffer
rounding(float value)
Sets the specified value to therounding
field.NkVec2
spacing()
Returns aNkVec2
view of thespacing
field.NkStyleCombo.Buffer
spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.NkStyleCombo.Buffer
spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.int
sym_active()
Returns the value of thesym_active
field.NkStyleCombo.Buffer
sym_active(int value)
Sets the specified value to thesym_active
field.int
sym_hover()
Returns the value of thesym_hover
field.NkStyleCombo.Buffer
sym_hover(int value)
Sets the specified value to thesym_hover
field.int
sym_normal()
Returns the value of thesym_normal
field.NkStyleCombo.Buffer
sym_normal(int value)
Sets the specified value to thesym_normal
field.NkColor
symbol_active()
Returns aNkColor
view of thesymbol_active
field.NkStyleCombo.Buffer
symbol_active(java.util.function.Consumer<NkColor> consumer)
Passes thesymbol_active
field to the specifiedConsumer
.NkStyleCombo.Buffer
symbol_active(NkColor value)
Copies the specifiedNkColor
to thesymbol_active
field.NkColor
symbol_hover()
Returns aNkColor
view of thesymbol_hover
field.NkStyleCombo.Buffer
symbol_hover(java.util.function.Consumer<NkColor> consumer)
Passes thesymbol_hover
field to the specifiedConsumer
.NkStyleCombo.Buffer
symbol_hover(NkColor value)
Copies the specifiedNkColor
to thesymbol_hover
field.NkColor
symbol_normal()
Returns aNkColor
view of thesymbol_normal
field.NkStyleCombo.Buffer
symbol_normal(java.util.function.Consumer<NkColor> consumer)
Passes thesymbol_normal
field to the specifiedConsumer
.NkStyleCombo.Buffer
symbol_normal(NkColor value)
Copies the specifiedNkColor
to thesymbol_normal
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleCombo.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 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 aNkStyleItem
view of thenormal
field.
-
hover
public NkStyleItem hover()
Returns aNkStyleItem
view of thehover
field.
-
active
public NkStyleItem active()
Returns aNkStyleItem
view of theactive
field.
-
button
public NkStyleButton button()
Returns aNkStyleButton
view of thebutton
field.
-
sym_normal
public int sym_normal()
Returns the value of thesym_normal
field.
-
sym_hover
public int sym_hover()
Returns the value of thesym_hover
field.
-
sym_active
public int sym_active()
Returns the value of thesym_active
field.
-
border
public float border()
Returns the value of theborder
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
normal
public NkStyleCombo.Buffer normal(NkStyleItem value)
Copies the specifiedNkStyleItem
to thenormal
field.
-
normal
public NkStyleCombo.Buffer normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes thenormal
field to the specifiedConsumer
.
-
hover
public NkStyleCombo.Buffer hover(NkStyleItem value)
Copies the specifiedNkStyleItem
to thehover
field.
-
hover
public NkStyleCombo.Buffer hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes thehover
field to the specifiedConsumer
.
-
active
public NkStyleCombo.Buffer active(NkStyleItem value)
Copies the specifiedNkStyleItem
to theactive
field.
-
active
public NkStyleCombo.Buffer active(java.util.function.Consumer<NkStyleItem> consumer)
Passes theactive
field to the specifiedConsumer
.
-
border_color
public NkStyleCombo.Buffer border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleCombo.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
label_normal
public NkStyleCombo.Buffer label_normal(NkColor value)
Copies the specifiedNkColor
to thelabel_normal
field.
-
label_normal
public NkStyleCombo.Buffer label_normal(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_normal
field to the specifiedConsumer
.
-
label_hover
public NkStyleCombo.Buffer label_hover(NkColor value)
Copies the specifiedNkColor
to thelabel_hover
field.
-
label_hover
public NkStyleCombo.Buffer label_hover(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_hover
field to the specifiedConsumer
.
-
label_active
public NkStyleCombo.Buffer label_active(NkColor value)
Copies the specifiedNkColor
to thelabel_active
field.
-
label_active
public NkStyleCombo.Buffer label_active(java.util.function.Consumer<NkColor> consumer)
Passes thelabel_active
field to the specifiedConsumer
.
-
symbol_normal
public NkStyleCombo.Buffer symbol_normal(NkColor value)
Copies the specifiedNkColor
to thesymbol_normal
field.
-
symbol_normal
public NkStyleCombo.Buffer symbol_normal(java.util.function.Consumer<NkColor> consumer)
Passes thesymbol_normal
field to the specifiedConsumer
.
-
symbol_hover
public NkStyleCombo.Buffer symbol_hover(NkColor value)
Copies the specifiedNkColor
to thesymbol_hover
field.
-
symbol_hover
public NkStyleCombo.Buffer symbol_hover(java.util.function.Consumer<NkColor> consumer)
Passes thesymbol_hover
field to the specifiedConsumer
.
-
symbol_active
public NkStyleCombo.Buffer symbol_active(NkColor value)
Copies the specifiedNkColor
to thesymbol_active
field.
-
symbol_active
public NkStyleCombo.Buffer symbol_active(java.util.function.Consumer<NkColor> consumer)
Passes thesymbol_active
field to the specifiedConsumer
.
-
button
public NkStyleCombo.Buffer button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thebutton
field.
-
button
public NkStyleCombo.Buffer button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thebutton
field to the specifiedConsumer
.
-
sym_normal
public NkStyleCombo.Buffer sym_normal(int value)
Sets the specified value to thesym_normal
field.
-
sym_hover
public NkStyleCombo.Buffer sym_hover(int value)
Sets the specified value to thesym_hover
field.
-
sym_active
public NkStyleCombo.Buffer sym_active(int value)
Sets the specified value to thesym_active
field.
-
border
public NkStyleCombo.Buffer border(float value)
Sets the specified value to theborder
field.
-
rounding
public NkStyleCombo.Buffer rounding(float value)
Sets the specified value to therounding
field.
-
content_padding
public NkStyleCombo.Buffer content_padding(NkVec2 value)
Copies the specifiedNkVec2
to thecontent_padding
field.
-
content_padding
public NkStyleCombo.Buffer content_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thecontent_padding
field to the specifiedConsumer
.
-
button_padding
public NkStyleCombo.Buffer button_padding(NkVec2 value)
Copies the specifiedNkVec2
to thebutton_padding
field.
-
button_padding
public NkStyleCombo.Buffer button_padding(java.util.function.Consumer<NkVec2> consumer)
Passes thebutton_padding
field to the specifiedConsumer
.
-
spacing
public NkStyleCombo.Buffer spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.
-
spacing
public NkStyleCombo.Buffer spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.
-
-