Package org.lwjgl.nuklear
Class NkStyleTab.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkStyleTab,NkStyleTab.Buffer>
-
- org.lwjgl.nuklear.NkStyleTab.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<NkStyleTab>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- NkStyleTab
public static class NkStyleTab.Buffer extends org.lwjgl.system.StructBuffer<NkStyleTab,NkStyleTab.Buffer> implements org.lwjgl.system.NativeResource
An array ofNkStyleTab
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItem
background()
Returns aNkStyleItem
view of thebackground
field.NkStyleTab.Buffer
background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackground
field to the specifiedConsumer
.NkStyleTab.Buffer
background(NkStyleItem value)
Copies the specifiedNkStyleItem
to thebackground
field.float
border()
Returns the value of theborder
field.NkStyleTab.Buffer
border(float value)
Sets the specified value to theborder
field.NkColor
border_color()
Returns aNkColor
view of theborder_color
field.NkStyleTab.Buffer
border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.NkStyleTab.Buffer
border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.float
indent()
Returns the value of theindent
field.NkStyleTab.Buffer
indent(float value)
Sets the specified value to theindent
field.NkStyleButton
node_maximize_button()
Returns aNkStyleButton
view of thenode_maximize_button
field.NkStyleTab.Buffer
node_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thenode_maximize_button
field to the specifiedConsumer
.NkStyleTab.Buffer
node_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thenode_maximize_button
field.NkStyleButton
node_minimize_button()
Returns aNkStyleButton
view of thenode_minimize_button
field.NkStyleTab.Buffer
node_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thenode_minimize_button
field to the specifiedConsumer
.NkStyleTab.Buffer
node_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thenode_minimize_button
field.NkVec2
padding()
Returns aNkVec2
view of thepadding
field.NkStyleTab.Buffer
padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.NkStyleTab.Buffer
padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.float
rounding()
Returns the value of therounding
field.NkStyleTab.Buffer
rounding(float value)
Sets the specified value to therounding
field.NkVec2
spacing()
Returns aNkVec2
view of thespacing
field.NkStyleTab.Buffer
spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.NkStyleTab.Buffer
spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.int
sym_maximize()
Returns the value of thesym_maximize
field.NkStyleTab.Buffer
sym_maximize(int value)
Sets the specified value to thesym_maximize
field.int
sym_minimize()
Returns the value of thesym_minimize
field.NkStyleTab.Buffer
sym_minimize(int value)
Sets the specified value to thesym_minimize
field.NkStyleButton
tab_maximize_button()
Returns aNkStyleButton
view of thetab_maximize_button
field.NkStyleTab.Buffer
tab_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thetab_maximize_button
field to the specifiedConsumer
.NkStyleTab.Buffer
tab_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thetab_maximize_button
field.NkStyleButton
tab_minimize_button()
Returns aNkStyleButton
view of thetab_minimize_button
field.NkStyleTab.Buffer
tab_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thetab_minimize_button
field to the specifiedConsumer
.NkStyleTab.Buffer
tab_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thetab_minimize_button
field.NkColor
text()
Returns aNkColor
view of thetext
field.NkStyleTab.Buffer
text(java.util.function.Consumer<NkColor> consumer)
Passes thetext
field to the specifiedConsumer
.NkStyleTab.Buffer
text(NkColor value)
Copies the specifiedNkColor
to thetext
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleTab.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 byNkStyleTab.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
-
background
public NkStyleItem background()
Returns aNkStyleItem
view of thebackground
field.
-
tab_maximize_button
public NkStyleButton tab_maximize_button()
Returns aNkStyleButton
view of thetab_maximize_button
field.
-
tab_minimize_button
public NkStyleButton tab_minimize_button()
Returns aNkStyleButton
view of thetab_minimize_button
field.
-
node_maximize_button
public NkStyleButton node_maximize_button()
Returns aNkStyleButton
view of thenode_maximize_button
field.
-
node_minimize_button
public NkStyleButton node_minimize_button()
Returns aNkStyleButton
view of thenode_minimize_button
field.
-
sym_minimize
public int sym_minimize()
Returns the value of thesym_minimize
field.
-
sym_maximize
public int sym_maximize()
Returns the value of thesym_maximize
field.
-
border
public float border()
Returns the value of theborder
field.
-
rounding
public float rounding()
Returns the value of therounding
field.
-
indent
public float indent()
Returns the value of theindent
field.
-
background
public NkStyleTab.Buffer background(NkStyleItem value)
Copies the specifiedNkStyleItem
to thebackground
field.
-
background
public NkStyleTab.Buffer background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackground
field to the specifiedConsumer
.
-
border_color
public NkStyleTab.Buffer border_color(NkColor value)
Copies the specifiedNkColor
to theborder_color
field.
-
border_color
public NkStyleTab.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_color
field to the specifiedConsumer
.
-
text
public NkStyleTab.Buffer text(NkColor value)
Copies the specifiedNkColor
to thetext
field.
-
text
public NkStyleTab.Buffer text(java.util.function.Consumer<NkColor> consumer)
Passes thetext
field to the specifiedConsumer
.
-
tab_maximize_button
public NkStyleTab.Buffer tab_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thetab_maximize_button
field.
-
tab_maximize_button
public NkStyleTab.Buffer tab_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thetab_maximize_button
field to the specifiedConsumer
.
-
tab_minimize_button
public NkStyleTab.Buffer tab_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thetab_minimize_button
field.
-
tab_minimize_button
public NkStyleTab.Buffer tab_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thetab_minimize_button
field to the specifiedConsumer
.
-
node_maximize_button
public NkStyleTab.Buffer node_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thenode_maximize_button
field.
-
node_maximize_button
public NkStyleTab.Buffer node_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thenode_maximize_button
field to the specifiedConsumer
.
-
node_minimize_button
public NkStyleTab.Buffer node_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButton
to thenode_minimize_button
field.
-
node_minimize_button
public NkStyleTab.Buffer node_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thenode_minimize_button
field to the specifiedConsumer
.
-
sym_minimize
public NkStyleTab.Buffer sym_minimize(int value)
Sets the specified value to thesym_minimize
field.
-
sym_maximize
public NkStyleTab.Buffer sym_maximize(int value)
Sets the specified value to thesym_maximize
field.
-
border
public NkStyleTab.Buffer border(float value)
Sets the specified value to theborder
field.
-
rounding
public NkStyleTab.Buffer rounding(float value)
Sets the specified value to therounding
field.
-
indent
public NkStyleTab.Buffer indent(float value)
Sets the specified value to theindent
field.
-
padding
public NkStyleTab.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2
to thepadding
field.
-
padding
public NkStyleTab.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepadding
field to the specifiedConsumer
.
-
spacing
public NkStyleTab.Buffer spacing(NkVec2 value)
Copies the specifiedNkVec2
to thespacing
field.
-
spacing
public NkStyleTab.Buffer spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacing
field to the specifiedConsumer
.
-
-