Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkStyleEdit

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

Layout


struct nk_style_edit {
    struct nk_style_item normal;
    struct nk_style_item hover;
    struct nk_style_item active;
    struct nk_color border_color;
    struct nk_style_scrollbar scrollbar;
    struct nk_color cursor_normal;
    struct nk_color cursor_hover;
    struct nk_color cursor_text_normal;
    struct nk_color cursor_text_hover;
    struct nk_color text_normal;
    struct nk_color text_hover;
    struct nk_color text_active;
    struct nk_color selected_normal;
    struct nk_color selected_hover;
    struct nk_color selected_text_normal;
    struct nk_color selected_text_hover;
    float border;
    float rounding;
    float cursor_size;
    struct nk_vec2 scrollbar_size;
    struct nk_vec2 padding;
    float row_padding;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
NkStyleEdit.Buffer

An array of NkStyleEdit 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
CURSOR_HOVER

The struct member offsets.

public static final int
CURSOR_NORMAL

The struct member offsets.

public static final int
CURSOR_SIZE

The struct member offsets.

public static final int
CURSOR_TEXT_HOVER

The struct member offsets.

public static final int
CURSOR_TEXT_NORMAL

The struct member offsets.

public static final int
HOVER

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
ROUNDING

The struct member offsets.

public static final int
ROW_PADDING

The struct member offsets.

public static final int
SCROLLBAR

The struct member offsets.

public static final int
SCROLLBAR_SIZE

The struct member offsets.

public static final int
SELECTED_HOVER

The struct member offsets.

public static final int
SELECTED_NORMAL

The struct member offsets.

public static final int
SELECTED_TEXT_HOVER

The struct member offsets.

public static final int
SELECTED_TEXT_NORMAL

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TEXT_ACTIVE

The struct member offsets.

public static final int
TEXT_HOVER

The struct member offsets.

public static final int
TEXT_NORMAL

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
NkStyleEdit(ByteBuffer container)

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

Copies the specified NkStyleItem to the active field.

public NkStyleEdit
active(Consumer<NkStyleItem> consumer)

Passes the active field to the specified Consumer.

public float

Returns:

the value of the border field.
border
()

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

Copies the specified NkColor to the border_color field.

public NkStyleEdit
border_color(Consumer<NkColor> consumer)

Passes the border_color field to the specified Consumer.

public static NkStyleEdit
calloc()

Returns a new NkStyleEdit instance allocated with memCalloc.

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

Returns a new NkStyleEdit.Buffer instance allocated with memCalloc.

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

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

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

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

public static NkStyleEdit
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
protected NkStyleEdit
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 NkStyleEdit
create()

Returns a new NkStyleEdit instance allocated with BufferUtils.

public static NkStyleEdit
create(long address)

Returns a new NkStyleEdit instance for the specified memory address.

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

Returns a new NkStyleEdit.Buffer instance allocated with BufferUtils.

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

Create a NkStyleEdit.Buffer instance at the specified memory.

public static NkStyleEdit
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public NkColor

Returns:

a NkColor view of the cursor_hover field.
cursor_hover
()

public NkStyleEdit
cursor_hover(NkColor value)

Copies the specified NkColor to the cursor_hover field.

public NkStyleEdit
cursor_hover(Consumer<NkColor> consumer)

Passes the cursor_hover field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the cursor_normal field.
cursor_normal
()

public NkStyleEdit
cursor_normal(NkColor value)

Copies the specified NkColor to the cursor_normal field.

public NkStyleEdit
cursor_normal(Consumer<NkColor> consumer)

Passes the cursor_normal field to the specified Consumer.

public float

Returns:

the value of the cursor_size field.
cursor_size
()

public NkStyleEdit
cursor_size(float value)

Sets the specified value to the cursor_size field.

public NkColor

Returns:

a NkColor view of the cursor_text_hover field.
cursor_text_hover
()

public NkStyleEdit
cursor_text_hover(NkColor value)

Copies the specified NkColor to the cursor_text_hover field.

public NkStyleEdit
cursor_text_hover(Consumer<NkColor> consumer)

Passes the cursor_text_hover field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the cursor_text_normal field.
cursor_text_normal
()

public NkStyleEdit
cursor_text_normal(NkColor value)

Copies the specified NkColor to the cursor_text_normal field.

public NkStyleEdit
cursor_text_normal(Consumer<NkColor> consumer)

Passes the cursor_text_normal field to the specified Consumer.

public NkStyleItem

Returns:

a NkStyleItem view of the hover field.
hover
()

public NkStyleEdit
hover(NkStyleItem value)

Copies the specified NkStyleItem to the hover field.

public NkStyleEdit
hover(Consumer<NkStyleItem> consumer)

Passes the hover field to the specified Consumer.

public static NkStyleEdit
malloc()

Returns a new NkStyleEdit instance allocated with memAlloc.

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

Returns a new NkStyleEdit.Buffer instance allocated with memAlloc.

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

Returns a new NkStyleEdit instance allocated on the specified MemoryStack.

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

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

public static NkStyleEdit
mallocStack()

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

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

Deprecated
Deprecated for removal in 3.4.0.
public static NkStyleEdit.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 NkColor
ncursor_hover(long struct)

Unsafe version of cursor_hover.

public static void
ncursor_hover(long struct, NkColor value)

Unsafe version of cursor_hover.

public static NkColor
ncursor_normal(long struct)

Unsafe version of cursor_normal.

public static void
ncursor_normal(long struct, NkColor value)

Unsafe version of cursor_normal.

public static float
ncursor_size(long struct)

Unsafe version of cursor_size.

public static void
ncursor_size(long struct, float value)

Unsafe version of cursor_size.

public static NkColor
ncursor_text_hover(long struct)

Unsafe version of cursor_text_hover.

public static void
ncursor_text_hover(long struct, NkColor value)

Unsafe version of cursor_text_hover.

public static NkColor
ncursor_text_normal(long struct)

Unsafe version of cursor_text_normal.

public static void
ncursor_text_normal(long struct, NkColor value)

Unsafe version of cursor_text_normal.

public static NkStyleItem
nhover(long struct)

Unsafe version of hover.

public static void
nhover(long struct, NkStyleItem value)

Unsafe version of hover.

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

Copies the specified NkStyleItem to the normal field.

public NkStyleEdit
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 float
nrounding(long struct)

Unsafe version of rounding.

public static void
nrounding(long struct, float value)

Unsafe version of rounding.

public static float
nrow_padding(long struct)

Unsafe version of row_padding.

public static void
nrow_padding(long struct, float value)

Unsafe version of row_padding.

public static NkStyleScrollbar
nscrollbar(long struct)

Unsafe version of scrollbar.

public static void
nscrollbar(long struct, NkStyleScrollbar value)

Unsafe version of scrollbar.

public static NkVec2
nscrollbar_size(long struct)

Unsafe version of scrollbar_size.

public static void
nscrollbar_size(long struct, NkVec2 value)

Unsafe version of scrollbar_size.

public static NkColor
nselected_hover(long struct)

Unsafe version of selected_hover.

public static void
nselected_hover(long struct, NkColor value)

Unsafe version of selected_hover.

public static NkColor
nselected_normal(long struct)

Unsafe version of selected_normal.

public static void
nselected_normal(long struct, NkColor value)

Unsafe version of selected_normal.

public static NkColor
nselected_text_hover(long struct)

Unsafe version of selected_text_hover.

public static void
nselected_text_hover(long struct, NkColor value)

Unsafe version of selected_text_hover.

public static NkColor
nselected_text_normal(long struct)

Unsafe version of selected_text_normal.

public static void
nselected_text_normal(long struct, NkColor value)

Unsafe version of selected_text_normal.

public static NkColor
ntext_active(long struct)

Unsafe version of text_active.

public static void
ntext_active(long struct, NkColor value)

Unsafe version of text_active.

public static NkColor
ntext_hover(long struct)

Unsafe version of text_hover.

public static void
ntext_hover(long struct, NkColor value)

Unsafe version of text_hover.

public static NkColor
ntext_normal(long struct)

Unsafe version of text_normal.

public static void
ntext_normal(long struct, NkColor value)

Unsafe version of text_normal.

public NkVec2

Returns:

a NkVec2 view of the padding field.
padding
()

public NkStyleEdit
padding(NkVec2 value)

Copies the specified NkVec2 to the padding field.

public NkStyleEdit
padding(Consumer<NkVec2> consumer)

Passes the padding field to the specified Consumer.

public float

Returns:

the value of the rounding field.
rounding
()

public NkStyleEdit
rounding(float value)

Sets the specified value to the rounding field.

public float

Returns:

the value of the row_padding field.
row_padding
()

public NkStyleEdit
row_padding(float value)

Sets the specified value to the row_padding field.

public NkStyleScrollbar

Returns:

a NkStyleScrollbar view of the scrollbar field.
scrollbar
()

public NkStyleEdit
scrollbar(NkStyleScrollbar value)

Copies the specified NkStyleScrollbar to the scrollbar field.

public NkStyleEdit
scrollbar(Consumer<NkStyleScrollbar> consumer)

Passes the scrollbar field to the specified Consumer.

public NkVec2

Returns:

a NkVec2 view of the scrollbar_size field.
scrollbar_size
()

public NkStyleEdit
scrollbar_size(NkVec2 value)

Copies the specified NkVec2 to the scrollbar_size field.

public NkStyleEdit
scrollbar_size(Consumer<NkVec2> consumer)

Passes the scrollbar_size field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the selected_hover field.
selected_hover
()

public NkStyleEdit
selected_hover(NkColor value)

Copies the specified NkColor to the selected_hover field.

public NkStyleEdit
selected_hover(Consumer<NkColor> consumer)

Passes the selected_hover field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the selected_normal field.
selected_normal
()

public NkStyleEdit
selected_normal(NkColor value)

Copies the specified NkColor to the selected_normal field.

public NkStyleEdit
selected_normal(Consumer<NkColor> consumer)

Passes the selected_normal field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the selected_text_hover field.
selected_text_hover
()

public NkStyleEdit
selected_text_hover(NkColor value)

Copies the specified NkColor to the selected_text_hover field.

public NkStyleEdit
selected_text_hover(Consumer<NkColor> consumer)

Passes the selected_text_hover field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the selected_text_normal field.
selected_text_normal
()

public NkStyleEdit
selected_text_normal(NkColor value)

Copies the specified NkColor to the selected_text_normal field.

public NkStyleEdit
selected_text_normal(Consumer<NkColor> consumer)

Passes the selected_text_normal field to the specified Consumer.

public NkStyleEdit
set(NkStyleItem normal, NkStyleItem hover, NkStyleItem active, NkColor border_color, NkStyleScrollbar scrollbar, NkColor cursor_normal, NkColor cursor_hover, NkColor cursor_text_normal, NkColor cursor_text_hover, NkColor text_normal, NkColor text_hover, NkColor text_active, NkColor selected_normal, NkColor selected_hover, NkColor selected_text_normal, NkColor selected_text_hover, float border, float rounding, float cursor_size, NkVec2 scrollbar_size, NkVec2 padding, float row_padding)

Initializes this struct with the specified values.

public NkStyleEdit

Returns:

this struct
set
(NkStyleEdit
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 NkColor

Returns:

a NkColor view of the text_active field.
text_active
()

public NkStyleEdit
text_active(NkColor value)

Copies the specified NkColor to the text_active field.

public NkStyleEdit
text_active(Consumer<NkColor> consumer)

Passes the text_active field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the text_hover field.
text_hover
()

public NkStyleEdit
text_hover(NkColor value)

Copies the specified NkColor to the text_hover field.

public NkStyleEdit
text_hover(Consumer<NkColor> consumer)

Passes the text_hover field to the specified Consumer.

public NkColor

Returns:

a NkColor view of the text_normal field.
text_normal
()

public NkStyleEdit
text_normal(NkColor value)

Copies the specified NkColor to the text_normal field.

public NkStyleEdit
text_normal(Consumer<NkColor> consumer)

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