Package org.lwjgl.nuklear
Class NkStyleTab
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkStyleTab
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class NkStyleTab extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct nk_style_tab {struct nk_style_itembackground;struct nk_colorborder_color;struct nk_colortext;struct nk_style_buttontab_maximize_button;struct nk_style_buttontab_minimize_button;struct nk_style_buttonnode_maximize_button;struct nk_style_buttonnode_minimize_button; enum nk_symbol_type sym_minimize; enum nk_symbol_type sym_maximize; float border; float rounding; float indent;struct nk_vec2padding;struct nk_vec2spacing; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkStyleTab.BufferAn array ofNkStyleTabstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intBACKGROUND
BORDER
BORDER_COLOR
INDENT
NODE_MAXIMIZE_BUTTON
NODE_MINIMIZE_BUTTON
PADDING
ROUNDINGThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSPACING
SYM_MAXIMIZE
SYM_MINIMIZE
TAB_MAXIMIZE_BUTTON
TAB_MINIMIZE_BUTTON
TEXTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkStyleTab(java.nio.ByteBuffer container)Creates aNkStyleTabinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkStyleItembackground()Returns aNkStyleItemview of thebackgroundfield.NkStyleTabbackground(java.util.function.Consumer<NkStyleItem> consumer)Passes thebackgroundfield to the specifiedConsumer.NkStyleTabbackground(NkStyleItem value)Copies the specifiedNkStyleItemto thebackgroundfield.floatborder()Returns the value of theborderfield.NkStyleTabborder(float value)Sets the specified value to theborderfield.NkColorborder_color()Returns aNkColorview of theborder_colorfield.NkStyleTabborder_color(java.util.function.Consumer<NkColor> consumer)Passes theborder_colorfield to the specifiedConsumer.NkStyleTabborder_color(NkColor value)Copies the specifiedNkColorto theborder_colorfield.static NkStyleTabcalloc()Returns a newNkStyleTabinstance allocated withmemCalloc.static NkStyleTab.Buffercalloc(int capacity)Returns a newNkStyleTab.Bufferinstance allocated withmemCalloc.static NkStyleTabcallocStack()Returns a newNkStyleTabinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleTab.BuffercallocStack(int capacity)Returns a newNkStyleTab.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static NkStyleTab.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleTab.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleTabcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleTabinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static NkStyleTabcreate()Returns a newNkStyleTabinstance allocated withBufferUtils.static NkStyleTab.Buffercreate(int capacity)Returns a newNkStyleTab.Bufferinstance allocated withBufferUtils.static NkStyleTabcreate(long address)Returns a newNkStyleTabinstance for the specified memory address.static NkStyleTab.Buffercreate(long address, int capacity)Create aNkStyleTab.Bufferinstance at the specified memory.static NkStyleTabcreateSafe(long address)static NkStyleTab.BuffercreateSafe(long address, int capacity)floatindent()Returns the value of theindentfield.NkStyleTabindent(float value)Sets the specified value to theindentfield.static NkStyleTabmalloc()Returns a newNkStyleTabinstance allocated withmemAlloc.static NkStyleTab.Buffermalloc(int capacity)Returns a newNkStyleTab.Bufferinstance allocated withmemAlloc.static NkStyleTabmallocStack()Returns a newNkStyleTabinstance allocated on the thread-localMemoryStack.static NkStyleTab.BuffermallocStack(int capacity)Returns a newNkStyleTab.Bufferinstance allocated on the thread-localMemoryStack.static NkStyleTab.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newNkStyleTab.Bufferinstance allocated on the specifiedMemoryStack.static NkStyleTabmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newNkStyleTabinstance allocated on the specifiedMemoryStack.static NkStyleItemnbackground(long struct)Unsafe version ofbackground().static voidnbackground(long struct, NkStyleItem value)Unsafe version ofbackground.static floatnborder(long struct)Unsafe version ofborder().static voidnborder(long struct, float value)Unsafe version ofborder.static NkColornborder_color(long struct)Unsafe version ofborder_color().static voidnborder_color(long struct, NkColor value)Unsafe version ofborder_color.static floatnindent(long struct)Unsafe version ofindent().static voidnindent(long struct, float value)Unsafe version ofindent.static NkStyleButtonnnode_maximize_button(long struct)Unsafe version ofnode_maximize_button().static voidnnode_maximize_button(long struct, NkStyleButton value)Unsafe version ofnode_maximize_button.static NkStyleButtonnnode_minimize_button(long struct)Unsafe version ofnode_minimize_button().static voidnnode_minimize_button(long struct, NkStyleButton value)Unsafe version ofnode_minimize_button.NkStyleButtonnode_maximize_button()Returns aNkStyleButtonview of thenode_maximize_buttonfield.NkStyleTabnode_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thenode_maximize_buttonfield to the specifiedConsumer.NkStyleTabnode_maximize_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thenode_maximize_buttonfield.NkStyleButtonnode_minimize_button()Returns aNkStyleButtonview of thenode_minimize_buttonfield.NkStyleTabnode_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thenode_minimize_buttonfield to the specifiedConsumer.NkStyleTabnode_minimize_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thenode_minimize_buttonfield.static NkVec2npadding(long struct)Unsafe version ofpadding().static voidnpadding(long struct, NkVec2 value)Unsafe version ofpadding.static floatnrounding(long struct)Unsafe version ofrounding().static voidnrounding(long struct, float value)Unsafe version ofrounding.static NkVec2nspacing(long struct)Unsafe version ofspacing().static voidnspacing(long struct, NkVec2 value)Unsafe version ofspacing.static intnsym_maximize(long struct)Unsafe version ofsym_maximize().static voidnsym_maximize(long struct, int value)Unsafe version ofsym_maximize.static intnsym_minimize(long struct)Unsafe version ofsym_minimize().static voidnsym_minimize(long struct, int value)Unsafe version ofsym_minimize.static NkStyleButtonntab_maximize_button(long struct)Unsafe version oftab_maximize_button().static voidntab_maximize_button(long struct, NkStyleButton value)Unsafe version oftab_maximize_button.static NkStyleButtonntab_minimize_button(long struct)Unsafe version oftab_minimize_button().static voidntab_minimize_button(long struct, NkStyleButton value)Unsafe version oftab_minimize_button.static NkColorntext(long struct)Unsafe version oftext().static voidntext(long struct, NkColor value)Unsafe version oftext.NkVec2padding()Returns aNkVec2view of thepaddingfield.NkStyleTabpadding(java.util.function.Consumer<NkVec2> consumer)Passes thepaddingfield to the specifiedConsumer.NkStyleTabpadding(NkVec2 value)Copies the specifiedNkVec2to thepaddingfield.floatrounding()Returns the value of theroundingfield.NkStyleTabrounding(float value)Sets the specified value to theroundingfield.NkStyleTabset(NkStyleItem background, NkColor border_color, NkColor text, NkStyleButton tab_maximize_button, NkStyleButton tab_minimize_button, NkStyleButton node_maximize_button, NkStyleButton node_minimize_button, int sym_minimize, int sym_maximize, float border, float rounding, float indent, NkVec2 padding, NkVec2 spacing)Initializes this struct with the specified values.NkStyleTabset(NkStyleTab src)Copies the specified struct data to this struct.intsizeof()NkVec2spacing()Returns aNkVec2view of thespacingfield.NkStyleTabspacing(java.util.function.Consumer<NkVec2> consumer)Passes thespacingfield to the specifiedConsumer.NkStyleTabspacing(NkVec2 value)Copies the specifiedNkVec2to thespacingfield.intsym_maximize()Returns the value of thesym_maximizefield.NkStyleTabsym_maximize(int value)Sets the specified value to thesym_maximizefield.intsym_minimize()Returns the value of thesym_minimizefield.NkStyleTabsym_minimize(int value)Sets the specified value to thesym_minimizefield.NkStyleButtontab_maximize_button()Returns aNkStyleButtonview of thetab_maximize_buttonfield.NkStyleTabtab_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thetab_maximize_buttonfield to the specifiedConsumer.NkStyleTabtab_maximize_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thetab_maximize_buttonfield.NkStyleButtontab_minimize_button()Returns aNkStyleButtonview of thetab_minimize_buttonfield.NkStyleTabtab_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)Passes thetab_minimize_buttonfield to the specifiedConsumer.NkStyleTabtab_minimize_button(NkStyleButton value)Copies the specifiedNkStyleButtonto thetab_minimize_buttonfield.NkColortext()Returns aNkColorview of thetextfield.NkStyleTabtext(java.util.function.Consumer<NkColor> consumer)Passes thetextfield to the specifiedConsumer.NkStyleTabtext(NkColor value)Copies the specifiedNkColorto thetextfield.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
BACKGROUND, BORDER_COLOR, TEXT, TAB_MAXIMIZE_BUTTON, TAB_MINIMIZE_BUTTON, NODE_MAXIMIZE_BUTTON, NODE_MINIMIZE_BUTTON, SYM_MINIMIZE, SYM_MAXIMIZE, BORDER, ROUNDING, INDENT, PADDING, SPACING
The struct member offsets.
-
-
Constructor Detail
-
NkStyleTab
public NkStyleTab(java.nio.ByteBuffer container)
Creates aNkStyleTabinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
background
public NkStyleItem background()
Returns aNkStyleItemview of thebackgroundfield.
-
background
public NkStyleTab background(java.util.function.Consumer<NkStyleItem> consumer)
Passes thebackgroundfield to the specifiedConsumer.
-
border_color
public NkStyleTab border_color(java.util.function.Consumer<NkColor> consumer)
Passes theborder_colorfield to the specifiedConsumer.
-
text
public NkStyleTab 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 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 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 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 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 padding(java.util.function.Consumer<NkVec2> consumer)
Passes thepaddingfield to the specifiedConsumer.
-
spacing
public NkStyleTab spacing(java.util.function.Consumer<NkVec2> consumer)
Passes thespacingfield to the specifiedConsumer.
-
background
public NkStyleTab background(NkStyleItem value)
Copies the specifiedNkStyleItemto thebackgroundfield.
-
border_color
public NkStyleTab border_color(NkColor value)
Copies the specifiedNkColorto theborder_colorfield.
-
text
public NkStyleTab text(NkColor value)
Copies the specifiedNkColorto thetextfield.
-
tab_maximize_button
public NkStyleTab tab_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thetab_maximize_buttonfield.
-
tab_minimize_button
public NkStyleTab tab_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thetab_minimize_buttonfield.
-
node_maximize_button
public NkStyleTab node_maximize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thenode_maximize_buttonfield.
-
node_minimize_button
public NkStyleTab node_minimize_button(NkStyleButton value)
Copies the specifiedNkStyleButtonto thenode_minimize_buttonfield.
-
sym_minimize
public NkStyleTab sym_minimize(int value)
Sets the specified value to thesym_minimizefield.
-
sym_maximize
public NkStyleTab sym_maximize(int value)
Sets the specified value to thesym_maximizefield.
-
border
public NkStyleTab border(float value)
Sets the specified value to theborderfield.
-
rounding
public NkStyleTab rounding(float value)
Sets the specified value to theroundingfield.
-
indent
public NkStyleTab indent(float value)
Sets the specified value to theindentfield.
-
padding
public NkStyleTab padding(NkVec2 value)
Copies the specifiedNkVec2to thepaddingfield.
-
spacing
public NkStyleTab spacing(NkVec2 value)
Copies the specifiedNkVec2to thespacingfield.
-
set
public NkStyleTab set(NkStyleItem background, NkColor border_color, NkColor text, NkStyleButton tab_maximize_button, NkStyleButton tab_minimize_button, NkStyleButton node_maximize_button, NkStyleButton node_minimize_button, int sym_minimize, int sym_maximize, float border, float rounding, float indent, NkVec2 padding, NkVec2 spacing)
Initializes this struct with the specified values.
-
set
public NkStyleTab set(NkStyleTab src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static NkStyleTab malloc()
Returns a newNkStyleTabinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static NkStyleTab calloc()
Returns a newNkStyleTabinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static NkStyleTab create()
Returns a newNkStyleTabinstance allocated withBufferUtils.
-
create
public static NkStyleTab create(long address)
Returns a newNkStyleTabinstance for the specified memory address.
-
createSafe
@Nullable public static NkStyleTab createSafe(long address)
-
malloc
public static NkStyleTab.Buffer malloc(int capacity)
Returns a newNkStyleTab.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static NkStyleTab.Buffer calloc(int capacity)
Returns a newNkStyleTab.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleTab.Buffer create(int capacity)
Returns a newNkStyleTab.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static NkStyleTab.Buffer create(long address, int capacity)
Create aNkStyleTab.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkStyleTab.Buffer createSafe(long address, int capacity)
-
mallocStack
public static NkStyleTab mallocStack()
Returns a newNkStyleTabinstance allocated on the thread-localMemoryStack.
-
callocStack
public static NkStyleTab callocStack()
Returns a newNkStyleTabinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static NkStyleTab mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleTabinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static NkStyleTab callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleTabinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static NkStyleTab.Buffer mallocStack(int capacity)
Returns a newNkStyleTab.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static NkStyleTab.Buffer callocStack(int capacity)
Returns a newNkStyleTab.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static NkStyleTab.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleTab.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static NkStyleTab.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newNkStyleTab.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nbackground
public static NkStyleItem nbackground(long struct)
Unsafe version ofbackground().
-
nborder_color
public static NkColor nborder_color(long struct)
Unsafe version ofborder_color().
-
ntab_maximize_button
public static NkStyleButton ntab_maximize_button(long struct)
Unsafe version oftab_maximize_button().
-
ntab_minimize_button
public static NkStyleButton ntab_minimize_button(long struct)
Unsafe version oftab_minimize_button().
-
nnode_maximize_button
public static NkStyleButton nnode_maximize_button(long struct)
Unsafe version ofnode_maximize_button().
-
nnode_minimize_button
public static NkStyleButton nnode_minimize_button(long struct)
Unsafe version ofnode_minimize_button().
-
nsym_minimize
public static int nsym_minimize(long struct)
Unsafe version ofsym_minimize().
-
nsym_maximize
public static int nsym_maximize(long struct)
Unsafe version ofsym_maximize().
-
nborder
public static float nborder(long struct)
Unsafe version ofborder().
-
nrounding
public static float nrounding(long struct)
Unsafe version ofrounding().
-
nindent
public static float nindent(long struct)
Unsafe version ofindent().
-
nbackground
public static void nbackground(long struct, NkStyleItem value)Unsafe version ofbackground.
-
nborder_color
public static void nborder_color(long struct, NkColor value)Unsafe version ofborder_color.
-
ntab_maximize_button
public static void ntab_maximize_button(long struct, NkStyleButton value)Unsafe version oftab_maximize_button.
-
ntab_minimize_button
public static void ntab_minimize_button(long struct, NkStyleButton value)Unsafe version oftab_minimize_button.
-
nnode_maximize_button
public static void nnode_maximize_button(long struct, NkStyleButton value)Unsafe version ofnode_maximize_button.
-
nnode_minimize_button
public static void nnode_minimize_button(long struct, NkStyleButton value)Unsafe version ofnode_minimize_button.
-
nsym_minimize
public static void nsym_minimize(long struct, int value)Unsafe version ofsym_minimize.
-
nsym_maximize
public static void nsym_maximize(long struct, int value)Unsafe version ofsym_maximize.
-
nborder
public static void nborder(long struct, float value)Unsafe version ofborder.
-
nrounding
public static void nrounding(long struct, float value)Unsafe version ofrounding.
-
nindent
public static void nindent(long struct, float value)Unsafe version ofindent.
-
-