Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkStyleWindowHeader

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

Layout


struct nk_style_window_header {
    struct nk_style_item normal;
    struct nk_style_item hover;
    struct nk_style_item active;
    struct nk_style_button close_button;
    struct nk_style_button minimize_button;
    enum nk_symbol_type close_symbol;
    enum nk_symbol_type minimize_symbol;
    enum nk_symbol_type maximize_symbol;
    struct nk_color label_normal;
    struct nk_color label_hover;
    struct nk_color label_active;
    enum nk_style_header_align align;
    struct nk_vec2 padding;
    struct nk_vec2 label_padding;
    struct nk_vec2 spacing;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ACTIVE

The struct member offsets.

public static final int
ALIGN

The struct member offsets.

public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
CLOSE_BUTTON

The struct member offsets.

public static final int
CLOSE_SYMBOL

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
LABEL_PADDING

The struct member offsets.

public static final int
MAXIMIZE_SYMBOL

The struct member offsets.

public static final int
MINIMIZE_BUTTON

The struct member offsets.

public static final int
MINIMIZE_SYMBOL

The struct member offsets.

public static final int
NORMAL

The struct member offsets.

public static final int
PADDING

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SPACING

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
NkStyleWindowHeader(ByteBuffer container)

Creates a NkStyleWindowHeader 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 NkStyleWindowHeader
active(NkStyleItem value)

Copies the specified NkStyleItem to the active field.

public NkStyleWindowHeader
active(Consumer<NkStyleItem> consumer)

Passes the active field to the specified Consumer.

public int
public NkStyleWindowHeader
align(int value)

Sets the specified value to the align field.

public static NkStyleWindowHeader
calloc()

Returns a new NkStyleWindowHeader instance allocated with memCalloc.

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

Returns a new NkStyleWindowHeader.Buffer instance allocated with memCalloc.

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

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

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

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

public static NkStyleWindowHeader
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public NkStyleButton

Returns:

a NkStyleButton view of the close_button field.
close_button
()

public NkStyleWindowHeader
close_button(NkStyleButton value)

Copies the specified NkStyleButton to the close_button field.

public NkStyleWindowHeader
close_button(Consumer<NkStyleButton> consumer)

Passes the close_button field to the specified Consumer.

public int

Returns:

the value of the close_symbol field.
close_symbol
()

public NkStyleWindowHeader
close_symbol(int value)

Sets the specified value to the close_symbol field.

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

Returns a new NkStyleWindowHeader instance allocated with BufferUtils.

public static NkStyleWindowHeader
create(long address)

Returns a new NkStyleWindowHeader instance for the specified memory address.

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

Returns a new NkStyleWindowHeader.Buffer instance allocated with BufferUtils.

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

Create a NkStyleWindowHeader.Buffer instance at the specified memory.

public static NkStyleWindowHeader
createSafe(long address)

Like create, but returns null if address is NULL.

public static NkStyleWindowHeader.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 NkStyleWindowHeader
hover(NkStyleItem value)

Copies the specified NkStyleItem to the hover field.

public NkStyleWindowHeader
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 NkStyleWindowHeader
label_active(NkColor value)

Copies the specified NkColor to the label_active field.

public NkStyleWindowHeader
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 NkStyleWindowHeader
label_hover(NkColor value)

Copies the specified NkColor to the label_hover field.

public NkStyleWindowHeader
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 NkStyleWindowHeader
label_normal(NkColor value)

Copies the specified NkColor to the label_normal field.

public NkStyleWindowHeader
label_normal(Consumer<NkColor> consumer)

Passes the label_normal field to the specified Consumer.

public NkVec2

Returns:

a NkVec2 view of the label_padding field.
label_padding
()

public NkStyleWindowHeader
label_padding(NkVec2 value)

Copies the specified NkVec2 to the label_padding field.

public NkStyleWindowHeader
label_padding(Consumer<NkVec2> consumer)

Passes the label_padding field to the specified Consumer.

public static NkStyleWindowHeader
malloc()

Returns a new NkStyleWindowHeader instance allocated with memAlloc.

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

Returns a new NkStyleWindowHeader.Buffer instance allocated with memAlloc.

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

Returns a new NkStyleWindowHeader instance allocated on the specified MemoryStack.

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

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

public static NkStyleWindowHeader
mallocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public int

Returns:

the value of the maximize_symbol field.
maximize_symbol
()

public NkStyleWindowHeader
maximize_symbol(int value)

Sets the specified value to the maximize_symbol field.

public NkStyleButton

Returns:

a NkStyleButton view of the minimize_button field.
minimize_button
()

public NkStyleWindowHeader
minimize_button(NkStyleButton value)

Copies the specified NkStyleButton to the minimize_button field.

public NkStyleWindowHeader
minimize_button(Consumer<NkStyleButton> consumer)

Passes the minimize_button field to the specified Consumer.

public int

Returns:

the value of the minimize_symbol field.
minimize_symbol
()

public NkStyleWindowHeader
minimize_symbol(int value)

Sets the specified value to the minimize_symbol field.

public static NkStyleItem
nactive(long struct)

Unsafe version of active.

public static void
nactive(long struct, NkStyleItem value)

Unsafe version of active.

public static int
nalign(long struct)

Unsafe version of align.

public static void
nalign(long struct, int value)

Unsafe version of align.

public static NkStyleButton
nclose_button(long struct)

Unsafe version of close_button.

public static void
nclose_button(long struct, NkStyleButton value)

Unsafe version of close_button.

public static int
nclose_symbol(long struct)

Unsafe version of close_symbol.

public static void
nclose_symbol(long struct, int value)

Unsafe version of close_symbol.

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

Unsafe version of label_padding.

public static void
nlabel_padding(long struct, NkVec2 value)

Unsafe version of label_padding.

public static int
nmaximize_symbol(long struct)

Unsafe version of maximize_symbol.

public static void
nmaximize_symbol(long struct, int value)

Unsafe version of maximize_symbol.

public static NkStyleButton
nminimize_button(long struct)

Unsafe version of minimize_button.

public static void
nminimize_button(long struct, NkStyleButton value)

Unsafe version of minimize_button.

public static int
nminimize_symbol(long struct)

Unsafe version of minimize_symbol.

public static void
nminimize_symbol(long struct, int value)

Unsafe version of minimize_symbol.

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 NkStyleWindowHeader
normal(NkStyleItem value)

Copies the specified NkStyleItem to the normal field.

public NkStyleWindowHeader
normal(Consumer<NkStyleItem> consumer)

Passes the normal 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 NkVec2
nspacing(long struct)

Unsafe version of spacing.

public static void
nspacing(long struct, NkVec2 value)

Unsafe version of spacing.

public NkVec2

Returns:

a NkVec2 view of the padding field.
padding
()

public NkStyleWindowHeader
padding(NkVec2 value)

Copies the specified NkVec2 to the padding field.

public NkStyleWindowHeader
padding(Consumer<NkVec2> consumer)

Passes the padding field to the specified Consumer.

public NkStyleWindowHeader
set(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkStyleButton close_button, NkStyleButton minimize_button, int close_symbol, int minimize_symbol, int maximize_symbol, NkColor label_normal, NkColor label_hover, NkColor label_active, int align, NkVec2 padding, NkVec2 label_padding, NkVec2 spacing)

Initializes this struct with the specified values.

public NkStyleWindowHeader

Returns:

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

Copies the specified NkVec2 to the spacing field.

public NkStyleWindowHeader
spacing(Consumer<NkVec2> consumer)

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