Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkStyleTab

extends Struct<NkStyleTab>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct nk_style_tab
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Layout


struct nk_style_tab {
    struct nk_style_item background;
    struct nk_color border_color;
    struct nk_color text;
    struct nk_style_button tab_maximize_button;
    struct nk_style_button tab_minimize_button;
    struct nk_style_button node_maximize_button;
    struct nk_style_button node_minimize_button;
    enum nk_symbol_type sym_minimize;
    enum nk_symbol_type sym_maximize;
    float border;
    float rounding;
    float indent;
    struct nk_vec2 padding;
    struct nk_vec2 spacing;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
NkStyleTab.Buffer

An array of NkStyleTab structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BACKGROUND

The struct member offsets.

public static final int
BORDER

The struct member offsets.

public static final int
BORDER_COLOR

The struct member offsets.

public static final int
INDENT

The struct member offsets.

public static final int
NODE_MAXIMIZE_BUTTON

The struct member offsets.

public static final int
NODE_MINIMIZE_BUTTON

The struct member offsets.

public static final int
PADDING

The struct member offsets.

public static final int
ROUNDING

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SPACING

The struct member offsets.

public static final int
SYM_MAXIMIZE

The struct member offsets.

public static final int
SYM_MINIMIZE

The struct member offsets.

public static final int
TAB_MAXIMIZE_BUTTON

The struct member offsets.

public static final int
TAB_MINIMIZE_BUTTON

The struct member offsets.

public static final int
TEXT

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
NkStyleTab(long address, ByteBuffer container)

public
NkStyleTab(ByteBuffer container)

Creates a NkStyleTab instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public NkStyleItem

Returns:

a NkStyleItem view of the background field.
background
()

public NkStyleTab
background(NkStyleItem value)

Copies the specified NkStyleItem to the background field.

public NkStyleTab
background(Consumer<NkStyleItem> consumer)

Passes the background field to the specified Consumer.

public float

Returns:

the value of the border field.
border
()

public NkStyleTab
border(float value)

Sets the specified value to the border field.

public NkColor

Returns:

a NkColor view of the border_color field.
border_color
()

public NkStyleTab
border_color(NkColor value)

Copies the specified NkColor to the border_color field.

public NkStyleTab
border_color(Consumer<NkColor> consumer)

Passes the border_color field to the specified Consumer.

public static NkStyleTab
calloc()

Returns a new NkStyleTab instance allocated with memCalloc.

public static NkStyleTab.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new NkStyleTab.Buffer instance allocated with memCalloc.

public static NkStyleTab
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new NkStyleTab instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static NkStyleTab.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new NkStyleTab.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static NkStyleTab
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleTab
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleTab.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleTab.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected NkStyleTab
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static NkStyleTab
create()

Returns a new NkStyleTab instance allocated with BufferUtils.

public static NkStyleTab
create(long address)

Returns a new NkStyleTab instance for the specified memory address.

public static NkStyleTab.Buffer
create(int
the buffer capacity
capacity
)

Returns a new NkStyleTab.Buffer instance allocated with BufferUtils.

public static NkStyleTab.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a NkStyleTab.Buffer instance at the specified memory.

public static NkStyleTab
createSafe(long address)

Like create, but returns null if address is NULL.

public static NkStyleTab.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public float

Returns:

the value of the indent field.
indent
()

public NkStyleTab
indent(float value)

Sets the specified value to the indent field.

public static NkStyleTab
malloc()

Returns a new NkStyleTab instance allocated with memAlloc.

public static NkStyleTab.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new NkStyleTab.Buffer instance allocated with memAlloc.

public static NkStyleTab
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new NkStyleTab instance allocated on the specified MemoryStack.

public static NkStyleTab.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new NkStyleTab.Buffer instance allocated on the specified MemoryStack.

public static NkStyleTab
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleTab
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleTab.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleTab.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleItem
nbackground(long struct)

Unsafe version of background.

public static void
nbackground(long struct, NkStyleItem value)

Unsafe version of background.

public static float
nborder(long struct)

Unsafe version of border.

public static void
nborder(long struct, float value)

Unsafe version of border.

public static NkColor
nborder_color(long struct)

Unsafe version of border_color.

public static void
nborder_color(long struct, NkColor value)

Unsafe version of border_color.

public static float
nindent(long struct)

Unsafe version of indent.

public static void
nindent(long struct, float value)

Unsafe version of indent.

public static NkStyleButton
nnode_maximize_button(long struct)

Unsafe version of node_maximize_button.

public static void
nnode_maximize_button(long struct, NkStyleButton value)

Unsafe version of node_maximize_button.

public static NkStyleButton
nnode_minimize_button(long struct)

Unsafe version of node_minimize_button.

public static void
nnode_minimize_button(long struct, NkStyleButton value)

Unsafe version of node_minimize_button.

public NkStyleButton

Returns:

a NkStyleButton view of the node_maximize_button field.
node_maximize_button
()

public NkStyleTab
node_maximize_button(NkStyleButton value)

Copies the specified NkStyleButton to the node_maximize_button field.

public NkStyleTab
node_maximize_button(Consumer<NkStyleButton> consumer)

Passes the node_maximize_button field to the specified Consumer.

public NkStyleButton

Returns:

a NkStyleButton view of the node_minimize_button field.
node_minimize_button
()

public NkStyleTab
node_minimize_button(NkStyleButton value)

Copies the specified NkStyleButton to the node_minimize_button field.

public NkStyleTab
node_minimize_button(Consumer<NkStyleButton> consumer)

Passes the node_minimize_button field to the specified Consumer.

public static NkVec2
npadding(long struct)

Unsafe version of padding.

public static void
npadding(long struct, NkVec2 value)

Unsafe version of padding.

public static float
nrounding(long struct)

Unsafe version of rounding.

public static void
nrounding(long struct, float value)

Unsafe version of rounding.

public static NkVec2
nspacing(long struct)

Unsafe version of spacing.

public static void
nspacing(long struct, NkVec2 value)

Unsafe version of spacing.

public static int
nsym_maximize(long struct)

Unsafe version of sym_maximize.

public static void
nsym_maximize(long struct, int value)

Unsafe version of sym_maximize.

public static int
nsym_minimize(long struct)

Unsafe version of sym_minimize.

public static void
nsym_minimize(long struct, int value)

Unsafe version of sym_minimize.

public static NkStyleButton
ntab_maximize_button(long struct)

Unsafe version of tab_maximize_button.

public static void
ntab_maximize_button(long struct, NkStyleButton value)

Unsafe version of tab_maximize_button.

public static NkStyleButton
ntab_minimize_button(long struct)

Unsafe version of tab_minimize_button.

public static void
ntab_minimize_button(long struct, NkStyleButton value)

Unsafe version of tab_minimize_button.

public static NkColor
ntext(long struct)

Unsafe version of text.

public static void
ntext(long struct, NkColor value)

Unsafe version of text.

public NkVec2

Returns:

a NkVec2 view of the padding field.
padding
()

public NkStyleTab
padding(NkVec2 value)

Copies the specified NkVec2 to the padding field.

public NkStyleTab
padding(Consumer<NkVec2> consumer)

Passes the padding field to the specified Consumer.

public float

Returns:

the value of the rounding field.
rounding
()

public NkStyleTab
rounding(float value)

Sets the specified value to the rounding field.

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.

public NkStyleTab

Returns:

this struct
set
(NkStyleTab
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public NkVec2

Returns:

a NkVec2 view of the spacing field.
spacing
()

public NkStyleTab
spacing(NkVec2 value)

Copies the specified NkVec2 to the spacing field.

public NkStyleTab
spacing(Consumer<NkVec2> consumer)

Passes the spacing field to the specified Consumer.

public int

Returns:

the value of the sym_maximize field.
sym_maximize
()

public NkStyleTab
sym_maximize(int value)

Sets the specified value to the sym_maximize field.

public int

Returns:

the value of the sym_minimize field.
sym_minimize
()

public NkStyleTab
sym_minimize(int value)

Sets the specified value to the sym_minimize field.

public NkStyleButton

Returns:

a NkStyleButton view of the tab_maximize_button field.
tab_maximize_button
()

public NkStyleTab
tab_maximize_button(NkStyleButton value)

Copies the specified NkStyleButton to the tab_maximize_button field.

public NkStyleTab
tab_maximize_button(Consumer<NkStyleButton> consumer)

Passes the tab_maximize_button field to the specified Consumer.

public NkStyleButton

Returns:

a NkStyleButton view of the tab_minimize_button field.
tab_minimize_button
()

public NkStyleTab
tab_minimize_button(NkStyleButton value)

Copies the specified NkStyleButton to the tab_minimize_button field.

public NkStyleTab
tab_minimize_button(Consumer<NkStyleButton> consumer)

Passes the tab_minimize_button field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the text field.
text
()

public NkStyleTab
text(NkColor value)

Copies the specified NkColor to the text field.

public NkStyleTab
text(Consumer<NkColor> consumer)

Passes the text field to the specified Consumer.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate