Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkStyleCombo

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

Layout


struct nk_style_combo {
    struct nk_style_item normal;
    struct nk_style_item hover;
    struct nk_style_item active;
    struct nk_color border_color;
    struct nk_color label_normal;
    struct nk_color label_hover;
    struct nk_color label_active;
    struct nk_color symbol_normal;
    struct nk_color symbol_hover;
    struct nk_color symbol_active;
    struct nk_style_button button;
    enum nk_symbol_type sym_normal;
    enum nk_symbol_type sym_hover;
    enum nk_symbol_type sym_active;
    float border;
    float rounding;
    struct nk_vec2 content_padding;
    struct nk_vec2 button_padding;
    struct nk_vec2 spacing;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
NkStyleCombo.Buffer

An array of NkStyleCombo structs.

Field Summary

Modifier and TypeField and Description
public static final int
ACTIVE

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
BORDER

The struct member offsets.

public static final int
BORDER_COLOR

The struct member offsets.

public static final int
BUTTON

The struct member offsets.

public static final int
BUTTON_PADDING

The struct member offsets.

public static final int
CONTENT_PADDING

The struct member offsets.

public static final int
HOVER

The struct member offsets.

public static final int
LABEL_ACTIVE

The struct member offsets.

public static final int
LABEL_HOVER

The struct member offsets.

public static final int
LABEL_NORMAL

The struct member offsets.

public static final int
NORMAL

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_ACTIVE

The struct member offsets.

public static final int
SYM_HOVER

The struct member offsets.

public static final int
SYM_NORMAL

The struct member offsets.

public static final int
SYMBOL_ACTIVE

The struct member offsets.

public static final int
SYMBOL_HOVER

The struct member offsets.

public static final int
SYMBOL_NORMAL

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
NkStyleCombo(ByteBuffer container)

Creates a NkStyleCombo 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 active field.
active
()

public NkStyleCombo
active(NkStyleItem value)

Copies the specified NkStyleItem to the active field.

public NkStyleCombo
active(Consumer<NkStyleItem> consumer)

Passes the active field to the specified Consumer.

public float

Returns:

the value of the border field.
border
()

public NkStyleCombo
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 NkStyleCombo
border_color(NkColor value)

Copies the specified NkColor to the border_color field.

public NkStyleCombo
border_color(Consumer<NkColor> consumer)

Passes the border_color field to the specified Consumer.

public NkStyleButton

Returns:

a NkStyleButton view of the button field.
button
()

public NkStyleCombo
button(NkStyleButton value)

Copies the specified NkStyleButton to the button field.

public NkStyleCombo
button(Consumer<NkStyleButton> consumer)

Passes the button field to the specified Consumer.

public NkVec2

Returns:

a NkVec2 view of the button_padding field.
button_padding
()

public NkStyleCombo
button_padding(NkVec2 value)

Copies the specified NkVec2 to the button_padding field.

public NkStyleCombo
button_padding(Consumer<NkVec2> consumer)

Passes the button_padding field to the specified Consumer.

public static NkStyleCombo
calloc()

Returns a new NkStyleCombo instance allocated with memCalloc.

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

Returns a new NkStyleCombo.Buffer instance allocated with memCalloc.

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

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

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

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

public static NkStyleCombo
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public NkVec2

Returns:

a NkVec2 view of the content_padding field.
content_padding
()

public NkStyleCombo
content_padding(NkVec2 value)

Copies the specified NkVec2 to the content_padding field.

public NkStyleCombo
content_padding(Consumer<NkVec2> consumer)

Passes the content_padding field to the specified Consumer.

protected NkStyleCombo
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 NkStyleCombo
create()

Returns a new NkStyleCombo instance allocated with BufferUtils.

public static NkStyleCombo
create(long address)

Returns a new NkStyleCombo instance for the specified memory address.

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

Returns a new NkStyleCombo.Buffer instance allocated with BufferUtils.

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

Create a NkStyleCombo.Buffer instance at the specified memory.

public static NkStyleCombo
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public NkStyleItem

Returns:

a NkStyleItem view of the hover field.
hover
()

public NkStyleCombo
hover(NkStyleItem value)

Copies the specified NkStyleItem to the hover field.

public NkStyleCombo
hover(Consumer<NkStyleItem> consumer)

Passes the hover field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the label_active field.
label_active
()

public NkStyleCombo
label_active(NkColor value)

Copies the specified NkColor to the label_active field.

public NkStyleCombo
label_active(Consumer<NkColor> consumer)

Passes the label_active field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the label_hover field.
label_hover
()

public NkStyleCombo
label_hover(NkColor value)

Copies the specified NkColor to the label_hover field.

public NkStyleCombo
label_hover(Consumer<NkColor> consumer)

Passes the label_hover field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the label_normal field.
label_normal
()

public NkStyleCombo
label_normal(NkColor value)

Copies the specified NkColor to the label_normal field.

public NkStyleCombo
label_normal(Consumer<NkColor> consumer)

Passes the label_normal field to the specified Consumer.

public static NkStyleCombo
malloc()

Returns a new NkStyleCombo instance allocated with memAlloc.

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

Returns a new NkStyleCombo.Buffer instance allocated with memAlloc.

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

Returns a new NkStyleCombo instance allocated on the specified MemoryStack.

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

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

public static NkStyleCombo
mallocStack()

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

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

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

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

Unsafe version of active.

public static void
nactive(long struct, NkStyleItem value)

Unsafe version of active.

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 NkStyleButton
nbutton(long struct)

Unsafe version of button.

public static void
nbutton(long struct, NkStyleButton value)

Unsafe version of button.

public static NkVec2
nbutton_padding(long struct)

Unsafe version of button_padding.

public static void
nbutton_padding(long struct, NkVec2 value)

Unsafe version of button_padding.

public static NkVec2
ncontent_padding(long struct)

Unsafe version of content_padding.

public static void
ncontent_padding(long struct, NkVec2 value)

Unsafe version of content_padding.

public static NkStyleItem
nhover(long struct)

Unsafe version of hover.

public static void
nhover(long struct, NkStyleItem value)

Unsafe version of hover.

public static NkColor
nlabel_active(long struct)

Unsafe version of label_active.

public static void
nlabel_active(long struct, NkColor value)

Unsafe version of label_active.

public static NkColor
nlabel_hover(long struct)

Unsafe version of label_hover.

public static void
nlabel_hover(long struct, NkColor value)

Unsafe version of label_hover.

public static NkColor
nlabel_normal(long struct)

Unsafe version of label_normal.

public static void
nlabel_normal(long struct, NkColor value)

Unsafe version of label_normal.

public static NkStyleItem
nnormal(long struct)

Unsafe version of normal.

public static void
nnormal(long struct, NkStyleItem value)

Unsafe version of normal.

public NkStyleItem

Returns:

a NkStyleItem view of the normal field.
normal
()

public NkStyleCombo
normal(NkStyleItem value)

Copies the specified NkStyleItem to the normal field.

public NkStyleCombo
normal(Consumer<NkStyleItem> consumer)

Passes the normal field to the specified Consumer.

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_active(long struct)

Unsafe version of sym_active.

public static void
nsym_active(long struct, int value)

Unsafe version of sym_active.

public static int
nsym_hover(long struct)

Unsafe version of sym_hover.

public static void
nsym_hover(long struct, int value)

Unsafe version of sym_hover.

public static int
nsym_normal(long struct)

Unsafe version of sym_normal.

public static void
nsym_normal(long struct, int value)

Unsafe version of sym_normal.

public static NkColor
nsymbol_active(long struct)

Unsafe version of symbol_active.

public static void
nsymbol_active(long struct, NkColor value)

Unsafe version of symbol_active.

public static NkColor
nsymbol_hover(long struct)

Unsafe version of symbol_hover.

public static void
nsymbol_hover(long struct, NkColor value)

Unsafe version of symbol_hover.

public static NkColor
nsymbol_normal(long struct)

Unsafe version of symbol_normal.

public static void
nsymbol_normal(long struct, NkColor value)

Unsafe version of symbol_normal.

public float

Returns:

the value of the rounding field.
rounding
()

public NkStyleCombo
rounding(float value)

Sets the specified value to the rounding field.

public NkStyleCombo
set(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkColor border_color, NkColor label_normal, NkColor label_hover, NkColor label_active, NkColor symbol_normal, NkColor symbol_hover, NkColor symbol_active, NkStyleButton button, int sym_normal, int sym_hover, int sym_active, float border, float rounding, NkVec2 content_padding, NkVec2 button_padding, NkVec2 spacing)

Initializes this struct with the specified values.

public NkStyleCombo

Returns:

this struct
set
(NkStyleCombo
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 NkStyleCombo
spacing(NkVec2 value)

Copies the specified NkVec2 to the spacing field.

public NkStyleCombo
spacing(Consumer<NkVec2> consumer)

Passes the spacing field to the specified Consumer.

public int

Returns:

the value of the sym_active field.
sym_active
()

public NkStyleCombo
sym_active(int value)

Sets the specified value to the sym_active field.

public int

Returns:

the value of the sym_hover field.
sym_hover
()

public NkStyleCombo
sym_hover(int value)

Sets the specified value to the sym_hover field.

public int

Returns:

the value of the sym_normal field.
sym_normal
()

public NkStyleCombo
sym_normal(int value)

Sets the specified value to the sym_normal field.

public NkColor

Returns:

a NkColor view of the symbol_active field.
symbol_active
()

public NkStyleCombo
symbol_active(NkColor value)

Copies the specified NkColor to the symbol_active field.

public NkStyleCombo
symbol_active(Consumer<NkColor> consumer)

Passes the symbol_active field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the symbol_hover field.
symbol_hover
()

public NkStyleCombo
symbol_hover(NkColor value)

Copies the specified NkColor to the symbol_hover field.

public NkStyleCombo
symbol_hover(Consumer<NkColor> consumer)

Passes the symbol_hover field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the symbol_normal field.
symbol_normal
()

public NkStyleCombo
symbol_normal(NkColor value)

Copies the specified NkColor to the symbol_normal field.

public NkStyleCombo
symbol_normal(Consumer<NkColor> consumer)

Passes the symbol_normal 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