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.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkStyleTab.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItembackground()Returns aNkStyleItemview of thebackgroundfield.NkStyleTab.Bufferbackground(java.util.function.Consumer<NkStyleItem> consumer)Passes thebackgroundfield to the specifiedConsumer.NkStyleTab.Bufferbackground(NkStyleItem value)Copies the specifiedNkStyleItemto thebackgroundfield.floatborder()Returns the value of theborderfield.NkStyleTab.Bufferborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.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()Returns the value of theindentfield.NkStyleTab.Bufferindent(float value)Sets the specified value to theindentfield.NkStyleButtonnode_maximize_button()Returns aNkStyleButtonview of thenode_maximize_buttonfield.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()Returns aNkStyleButtonview of thenode_minimize_buttonfield.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()Returns aNkVec2view of thepaddingfield.NkStyleTab.Bufferpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleTab.Bufferpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()Returns the value of theroundingfield.NkStyleTab.Bufferrounding(float value)Sets the specified value to theroundingfield.NkVec2spacing()Returns aNkVec2view of thespacingfield.NkStyleTab.Bufferspacing(java.util.function.Consumer<NkVec2> consumer)Passes thespacingfield to the specifiedConsumer.NkStyleTab.Bufferspacing(NkVec2 value)Copies the specifiedNkVec2to thespacingfield.intsym_maximize()Returns the value of thesym_maximizefield.NkStyleTab.Buffersym_maximize(int value)Sets the specified value to thesym_maximizefield.intsym_minimize()Returns the value of thesym_minimizefield.NkStyleTab.Buffersym_minimize(int value)Sets the specified value to thesym_minimizefield.NkStyleButtontab_maximize_button()Returns aNkStyleButtonview of thetab_maximize_buttonfield.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()Returns aNkStyleButtonview of thetab_minimize_buttonfield.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()Returns aNkColorview of thetextfield.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 aNkStyleItemview of thebackgroundfield.
-
background
public NkStyleTab.Buffer background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackgroundfield to the specifiedConsumer.
-
border_color
public NkStyleTab.Buffer border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
text
public NkStyleTab.Buffer text(java.util.function.Consumer<NkColor> consumer)
Passes thetextfield to the specifiedConsumer.
-
tab_maximize_button
public NkStyleButton tab_maximize_button()
Returns aNkStyleButtonview of 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 NkStyleButton tab_minimize_button()
Returns aNkStyleButtonview of 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 NkStyleButton node_maximize_button()
Returns aNkStyleButtonview of 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 NkStyleButton node_minimize_button()
Returns aNkStyleButtonview of 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 int sym_minimize()
Returns the value of thesym_minimizefield.
-
sym_maximize
public int sym_maximize()
Returns the value of thesym_maximizefield.
-
border
public float border()
Returns the value of theborderfield.
-
rounding
public float rounding()
Returns the value of theroundingfield.
-
indent
public float indent()
Returns the value of theindentfield.
-
padding
public NkStyleTab.Buffer padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
spacing
public NkStyleTab.Buffer spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacingfield to the specifiedConsumer.
-
background
public NkStyleTab.Buffer background(NkStyleItem value)
Copies the specifiedNkStyleItemto thebackgroundfield.
-
border_color
public NkStyleTab.Buffer border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
text
public NkStyleTab.Buffer text(NkColor value)
Copies the specifiedNkColorto thetextfield.
-
tab_maximize_button
public NkStyleTab.Buffer tab_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thetab_maximize_buttonfield.
-
tab_minimize_button
public NkStyleTab.Buffer tab_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thetab_minimize_buttonfield.
-
node_maximize_button
public NkStyleTab.Buffer node_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thenode_maximize_buttonfield.
-
node_minimize_button
public NkStyleTab.Buffer node_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thenode_minimize_buttonfield.
-
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.
-
spacing
public NkStyleTab.Buffer spacing(NkVec2 value)
Copies the specifiedNkVec2to thespacingfield.
-
-