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 ofNkStyleTabstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItembackground()NkStyleTab.Bufferbackground(java.util.function.Consumer<NkStyleItem> consumer)Passes thebackgroundfield to the specifiedConsumer.NkStyleTab.Bufferbackground(NkStyleItem value)Copies the specifiedNkStyleItemto thebackgroundfield.floatborder()NkStyleTab.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()NkStyleTab.Bufferborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleTab.Bufferborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.floatindent()NkStyleTab.Bufferindent(float value)Sets the specified value to theindentfield.NkStyleButtonnode_maximize_button()NkStyleTab.Buffernode_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thenode_maximize_buttonfield to the specifiedConsumer.NkStyleTab.Buffernode_maximize_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thenode_maximize_buttonfield.NkStyleButtonnode_minimize_button()NkStyleTab.Buffernode_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thenode_minimize_buttonfield to the specifiedConsumer.NkStyleTab.Buffernode_minimize_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thenode_minimize_buttonfield.NkVec2padding()NkStyleTab.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleTab.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()NkStyleTab.Bufferrounding(float value)Sets the specified value to theroundingfield.NkVec2spacing()NkStyleTab.Bufferspacing(java.util.function.Consumer<NkVec2> consumer)Passes thespacingfield to the specifiedConsumer.NkStyleTab.Bufferspacing(NkVec2 value)Copies the specifiedNkVec2to thespacingfield.intsym_maximize()NkStyleTab.Buffersym_maximize(int value)Sets the specified value to thesym_maximizefield.intsym_minimize()NkStyleTab.Buffersym_minimize(int value)Sets the specified value to thesym_minimizefield.NkStyleButtontab_maximize_button()NkStyleTab.Buffertab_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thetab_maximize_buttonfield to the specifiedConsumer.NkStyleTab.Buffertab_maximize_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thetab_maximize_buttonfield.NkStyleButtontab_minimize_button()NkStyleTab.Buffertab_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thetab_minimize_buttonfield to the specifiedConsumer.NkStyleTab.Buffertab_minimize_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thetab_minimize_buttonfield.NkColortext()NkStyleTab.Buffertext(java.util.function.Consumer<NkColor> consumer)Passes thetextfield to the specifiedConsumer.NkStyleTab.Buffertext(NkColor value)Copies the specifiedNkColorto thetextfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkStyleTab.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 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:
- a
NkStyleItemview of thebackgroundfield.
-
tab_maximize_button
public NkStyleButton tab_maximize_button()
- Returns:
- a
NkStyleButtonview of thetab_maximize_buttonfield.
-
tab_minimize_button
public NkStyleButton tab_minimize_button()
- Returns:
- a
NkStyleButtonview of thetab_minimize_buttonfield.
-
node_maximize_button
public NkStyleButton node_maximize_button()
- Returns:
- a
NkStyleButtonview of thenode_maximize_buttonfield.
-
node_minimize_button
public NkStyleButton node_minimize_button()
- Returns:
- a
NkStyleButtonview of thenode_minimize_buttonfield.
-
sym_minimize
public int sym_minimize()
- Returns:
- the value of the
sym_minimizefield.
-
sym_maximize
public int sym_maximize()
- Returns:
- the value of the
sym_maximizefield.
-
border
public float border()
- Returns:
- the value of the
borderfield.
-
rounding
public float rounding()
- Returns:
- the value of the
roundingfield.
-
indent
public float indent()
- Returns:
- the value of the
indentfield.
-
background
public NkStyleTab.Buffer background(NkStyleItem value)
Copies the specifiedNkStyleItemto thebackgroundfield.
-
background
public NkStyleTab.Buffer background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackgroundfield to the specifiedConsumer.
-
border_color
public NkStyleTab.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
border_color
public NkStyleTab.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
text
public NkStyleTab.Buffer text(NkColor value)
Copies the specifiedNkColorto thetextfield.
-
text
public NkStyleTab.Buffer text(java.util.function.Consumer<NkColor> consumer)
Passes thetextfield to the specifiedConsumer.
-
tab_maximize_button
public NkStyleTab.Buffer tab_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thetab_maximize_buttonfield.
-
tab_maximize_button
public NkStyleTab.Buffer tab_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thetab_maximize_buttonfield to the specifiedConsumer.
-
tab_minimize_button
public NkStyleTab.Buffer tab_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thetab_minimize_buttonfield.
-
tab_minimize_button
public NkStyleTab.Buffer tab_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thetab_minimize_buttonfield to the specifiedConsumer.
-
node_maximize_button
public NkStyleTab.Buffer node_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thenode_maximize_buttonfield.
-
node_maximize_button
public NkStyleTab.Buffer node_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thenode_maximize_buttonfield to the specifiedConsumer.
-
node_minimize_button
public NkStyleTab.Buffer node_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thenode_minimize_buttonfield.
-
node_minimize_button
public NkStyleTab.Buffer node_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes thenode_minimize_buttonfield to the specifiedConsumer.
-
sym_minimize
public NkStyleTab.Buffer sym_minimize(int value)
Sets the specified value to thesym_minimizefield.
-
sym_maximize
public NkStyleTab.Buffer sym_maximize(int value)
Sets the specified value to thesym_maximizefield.
-
border
public NkStyleTab.Buffer border(float value)
Sets the specified value to theborderfield.
-
rounding
public NkStyleTab.Buffer rounding(float value)
Sets the specified value to theroundingfield.
-
indent
public NkStyleTab.Buffer indent(float value)
Sets the specified value to theindentfield.
-
padding
public NkStyleTab.Buffer padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
padding
public NkStyleTab.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
spacing
public NkStyleTab.Buffer spacing(NkVec2 value)
Copies the specifiedNkVec2to thespacingfield.
-
spacing
public NkStyleTab.Buffer spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacingfield to the specifiedConsumer.
-
-