Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkStyleWindow

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

Layout


struct nk_style_window {
    struct nk_style_window_header header;
    struct nk_style_item fixed_background;
    struct nk_color background;
    struct nk_color border_color;
    struct nk_color popup_border_color;
    struct nk_color combo_border_color;
    struct nk_color contextual_border_color;
    struct nk_color menu_border_color;
    struct nk_color group_border_color;
    struct nk_color tooltip_border_color;
    struct nk_style_item scaler;
    float border;
    float combo_border;
    float contextual_border;
    float menu_border;
    float group_border;
    float tooltip_border;
    float popup_border;
    float min_row_height_padding;
    float rounding;
    struct nk_vec2 spacing;
    struct nk_vec2 scrollbar_size;
    struct nk_vec2 min_size;
    struct nk_vec2 padding;
    struct nk_vec2 group_padding;
    struct nk_vec2 popup_padding;
    struct nk_vec2 combo_padding;
    struct nk_vec2 contextual_padding;
    struct nk_vec2 menu_padding;
    struct nk_vec2 tooltip_padding;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
NkStyleWindow.Buffer

An array of NkStyleWindow 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
COMBO_BORDER

The struct member offsets.

public static final int
COMBO_BORDER_COLOR

The struct member offsets.

public static final int
COMBO_PADDING

The struct member offsets.

public static final int
CONTEXTUAL_BORDER

The struct member offsets.

public static final int
CONTEXTUAL_BORDER_COLOR

The struct member offsets.

public static final int
CONTEXTUAL_PADDING

The struct member offsets.

public static final int
FIXED_BACKGROUND

The struct member offsets.

public static final int
GROUP_BORDER

The struct member offsets.

public static final int
GROUP_BORDER_COLOR

The struct member offsets.

public static final int
GROUP_PADDING

The struct member offsets.

public static final int
HEADER

The struct member offsets.

public static final int
MIN_ROW_HEIGHT_PADDING

The struct member offsets.

public static final int
MIN_SIZE

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
SCALER

The struct member offsets.

public static final int
SCROLLBAR_SIZE

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
TOOLTIP_BORDER

The struct member offsets.

public static final int
TOOLTIP_BORDER_COLOR

The struct member offsets.

public static final int
TOOLTIP_PADDING

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

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

public
NkStyleWindow(ByteBuffer container)

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

Method Summary

Modifier and TypeMethod and Description
public NkColor

Returns:

a NkColor view of the background field.
background
()

public NkStyleWindow
background(NkColor value)

Copies the specified NkColor to the background field.

public NkStyleWindow
background(Consumer<NkColor> consumer)

Passes the background field to the specified Consumer.

public float

Returns:

the value of the border field.
border
()

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

Copies the specified NkColor to the border_color field.

public NkStyleWindow
border_color(Consumer<NkColor> consumer)

Passes the border_color field to the specified Consumer.

public static NkStyleWindow
calloc()

Returns a new NkStyleWindow instance allocated with memCalloc.

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

Returns a new NkStyleWindow.Buffer instance allocated with memCalloc.

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

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

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

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

public static NkStyleWindow
callocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public float

Returns:

the value of the combo_border field.
combo_border
()

public NkStyleWindow
combo_border(float value)

Sets the specified value to the combo_border field.

public NkColor

Returns:

a NkColor view of the combo_border_color field.
combo_border_color
()

public NkStyleWindow
combo_border_color(NkColor value)

Copies the specified NkColor to the combo_border_color field.

public NkStyleWindow
combo_border_color(Consumer<NkColor> consumer)

Passes the combo_border_color field to the specified Consumer.

public NkVec2

Returns:

a NkVec2 view of the combo_padding field.
combo_padding
()

public NkStyleWindow
combo_padding(NkVec2 value)

Copies the specified NkVec2 to the combo_padding field.

public NkStyleWindow
combo_padding(Consumer<NkVec2> consumer)

Passes the combo_padding field to the specified Consumer.

public float

Returns:

the value of the contextual_border field.
contextual_border
()

public NkStyleWindow
contextual_border(float value)

Sets the specified value to the contextual_border field.

public NkColor

Returns:

a NkColor view of the contextual_border_color field.
contextual_border_color
()

public NkStyleWindow
contextual_border_color(NkColor value)

Copies the specified NkColor to the contextual_border_color field.

public NkStyleWindow
contextual_border_color(Consumer<NkColor> consumer)

Passes the contextual_border_color field to the specified Consumer.

public NkVec2

Returns:

a NkVec2 view of the contextual_padding field.
contextual_padding
()

public NkStyleWindow
contextual_padding(NkVec2 value)

Copies the specified NkVec2 to the contextual_padding field.

public NkStyleWindow
contextual_padding(Consumer<NkVec2> consumer)

Passes the contextual_padding field to the specified Consumer.

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

Returns a new NkStyleWindow instance allocated with BufferUtils.

public static NkStyleWindow
create(long address)

Returns a new NkStyleWindow instance for the specified memory address.

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

Returns a new NkStyleWindow.Buffer instance allocated with BufferUtils.

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

Create a NkStyleWindow.Buffer instance at the specified memory.

public static NkStyleWindow
createSafe(long address)

Like create, but returns null if address is NULL.

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

Like create, but returns null if address is NULL.

public NkStyleItem

Returns:

a NkStyleItem view of the fixed_background field.
fixed_background
()

public NkStyleWindow
fixed_background(NkStyleItem value)

Copies the specified NkStyleItem to the fixed_background field.

public NkStyleWindow
fixed_background(Consumer<NkStyleItem> consumer)

Passes the fixed_background field to the specified Consumer.

public float

Returns:

the value of the group_border field.
group_border
()

public NkStyleWindow
group_border(float value)

Sets the specified value to the group_border field.

public NkColor

Returns:

a NkColor view of the group_border_color field.
group_border_color
()

public NkStyleWindow
group_border_color(NkColor value)

Copies the specified NkColor to the group_border_color field.

public NkStyleWindow
group_border_color(Consumer<NkColor> consumer)

Passes the group_border_color field to the specified Consumer.

public NkVec2

Returns:

a NkVec2 view of the group_padding field.
group_padding
()

public NkStyleWindow
group_padding(NkVec2 value)

Copies the specified NkVec2 to the group_padding field.

public NkStyleWindow
group_padding(Consumer<NkVec2> consumer)

Passes the group_padding field to the specified Consumer.

public NkStyleWindowHeader

Returns:

a NkStyleWindowHeader view of the header field.
header
()

public NkStyleWindow
header(NkStyleWindowHeader value)

Copies the specified NkStyleWindowHeader to the header field.

public NkStyleWindow
header(Consumer<NkStyleWindowHeader> consumer)

Passes the header field to the specified Consumer.

public static NkStyleWindow
malloc()

Returns a new NkStyleWindow instance allocated with memAlloc.

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

Returns a new NkStyleWindow.Buffer instance allocated with memAlloc.

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

Returns a new NkStyleWindow instance allocated on the specified MemoryStack.

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

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

public static NkStyleWindow
mallocStack()

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

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

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

Deprecated
Deprecated for removal in 3.4.0.
public float

Returns:

the value of the min_row_height_padding field.
min_row_height_padding
()

public NkStyleWindow
min_row_height_padding(float value)

Sets the specified value to the min_row_height_padding field.

public NkVec2

Returns:

a NkVec2 view of the min_size field.
min_size
()

public NkStyleWindow
min_size(NkVec2 value)

Copies the specified NkVec2 to the min_size field.

public NkStyleWindow
min_size(Consumer<NkVec2> consumer)

Passes the min_size field to the specified Consumer.

public static NkColor
nbackground(long struct)

Unsafe version of background.

public static void
nbackground(long struct, NkColor 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
ncombo_border(long struct)

Unsafe version of combo_border.

public static void
ncombo_border(long struct, float value)

Unsafe version of combo_border.

public static NkColor
ncombo_border_color(long struct)

Unsafe version of combo_border_color.

public static void
ncombo_border_color(long struct, NkColor value)

Unsafe version of combo_border_color.

public static NkVec2
ncombo_padding(long struct)

Unsafe version of combo_padding.

public static void
ncombo_padding(long struct, NkVec2 value)

Unsafe version of combo_padding.

public static float
ncontextual_border(long struct)

Unsafe version of contextual_border.

public static void
ncontextual_border(long struct, float value)

Unsafe version of contextual_border.

public static NkColor
ncontextual_border_color(long struct)

Unsafe version of contextual_border_color.

public static void
ncontextual_border_color(long struct, NkColor value)

Unsafe version of contextual_border_color.

public static NkVec2
ncontextual_padding(long struct)

Unsafe version of contextual_padding.

public static void
ncontextual_padding(long struct, NkVec2 value)

Unsafe version of contextual_padding.

public static NkStyleItem
nfixed_background(long struct)

Unsafe version of fixed_background.

public static void
nfixed_background(long struct, NkStyleItem value)

Unsafe version of fixed_background.

public static float
ngroup_border(long struct)

Unsafe version of group_border.

public static void
ngroup_border(long struct, float value)

Unsafe version of group_border.

public static NkColor
ngroup_border_color(long struct)

Unsafe version of group_border_color.

public static void
ngroup_border_color(long struct, NkColor value)

Unsafe version of group_border_color.

public static NkVec2
ngroup_padding(long struct)

Unsafe version of group_padding.

public static void
ngroup_padding(long struct, NkVec2 value)

Unsafe version of group_padding.

public static NkStyleWindowHeader
nheader(long struct)

Unsafe version of header.

public static void
nheader(long struct, NkStyleWindowHeader value)

Unsafe version of header.

public static float
nmenu_border(long struct)

Unsafe version of menu_border.

public static void
nmenu_border(long struct, float value)

Unsafe version of menu_border.

public static NkColor
nmenu_border_color(long struct)

Unsafe version of menu_border_color.

public static void
nmenu_border_color(long struct, NkColor value)

Unsafe version of menu_border_color.

public static NkVec2
nmenu_padding(long struct)

Unsafe version of menu_padding.

public static void
nmenu_padding(long struct, NkVec2 value)

Unsafe version of menu_padding.

public static float
nmin_row_height_padding(long struct)

Unsafe version of min_row_height_padding.

public static void
nmin_row_height_padding(long struct, float value)

Unsafe version of min_row_height_padding.

public static NkVec2
nmin_size(long struct)

Unsafe version of min_size.

public static void
nmin_size(long struct, NkVec2 value)

Unsafe version of min_size.

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

Unsafe version of popup_border.

public static void
npopup_border(long struct, float value)

Unsafe version of popup_border.

public static NkColor
npopup_border_color(long struct)

Unsafe version of popup_border_color.

public static void
npopup_border_color(long struct, NkColor value)

Unsafe version of popup_border_color.

public static NkVec2
npopup_padding(long struct)

Unsafe version of popup_padding.

public static void
npopup_padding(long struct, NkVec2 value)

Unsafe version of popup_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 NkStyleItem
nscaler(long struct)

Unsafe version of scaler.

public static void
nscaler(long struct, NkStyleItem value)

Unsafe version of scaler.

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

Unsafe version of spacing.

public static void
nspacing(long struct, NkVec2 value)

Unsafe version of spacing.

public static float
ntooltip_border(long struct)

Unsafe version of tooltip_border.

public static void
ntooltip_border(long struct, float value)

Unsafe version of tooltip_border.

public static NkColor
ntooltip_border_color(long struct)

Unsafe version of tooltip_border_color.

public static void
ntooltip_border_color(long struct, NkColor value)

Unsafe version of tooltip_border_color.

public static NkVec2
ntooltip_padding(long struct)

Unsafe version of tooltip_padding.

public static void
ntooltip_padding(long struct, NkVec2 value)

Unsafe version of tooltip_padding.

public NkVec2

Returns:

a NkVec2 view of the padding field.
padding
()

public NkStyleWindow
padding(NkVec2 value)

Copies the specified NkVec2 to the padding field.

public NkStyleWindow
padding(Consumer<NkVec2> consumer)

Passes the padding field to the specified Consumer.

public float

Returns:

the value of the rounding field.
rounding
()

public NkStyleWindow
rounding(float value)

Sets the specified value to the rounding field.

public NkStyleItem

Returns:

a NkStyleItem view of the scaler field.
scaler
()

public NkStyleWindow
scaler(NkStyleItem value)

Copies the specified NkStyleItem to the scaler field.

public NkStyleWindow
scaler(Consumer<NkStyleItem> consumer)

Passes the scaler field to the specified Consumer.

public NkVec2

Returns:

a NkVec2 view of the scrollbar_size field.
scrollbar_size
()

public NkStyleWindow
scrollbar_size(NkVec2 value)

Copies the specified NkVec2 to the scrollbar_size field.

public NkStyleWindow
scrollbar_size(Consumer<NkVec2> consumer)

Passes the scrollbar_size field to the specified Consumer.

public NkStyleWindow
set(NkStyleWindowHeader header, NkStyleItem fixed_background, NkColor background, NkColor border_color, NkColor popup_border_color, NkColor combo_border_color, NkColor contextual_border_color, NkColor menu_border_color, NkColor group_border_color, NkColor tooltip_border_color, NkStyleItem scaler, float border, float combo_border, float contextual_border, float menu_border, float group_border, float tooltip_border, float popup_border, float min_row_height_padding, float rounding, NkVec2 spacing, NkVec2 scrollbar_size, NkVec2 min_size, NkVec2 padding, NkVec2 group_padding, NkVec2 popup_padding, NkVec2 combo_padding, NkVec2 contextual_padding, NkVec2 menu_padding, NkVec2 tooltip_padding)

Initializes this struct with the specified values.

public NkStyleWindow

Returns:

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

Copies the specified NkVec2 to the spacing field.

public NkStyleWindow
spacing(Consumer<NkVec2> consumer)

Passes the spacing field to the specified Consumer.

public float

Returns:

the value of the tooltip_border field.
tooltip_border
()

public NkStyleWindow
tooltip_border(float value)

Sets the specified value to the tooltip_border field.

public NkColor

Returns:

a NkColor view of the tooltip_border_color field.
tooltip_border_color
()

public NkStyleWindow
tooltip_border_color(NkColor value)

Copies the specified NkColor to the tooltip_border_color field.

public NkStyleWindow
tooltip_border_color(Consumer<NkColor> consumer)

Passes the tooltip_border_color field to the specified Consumer.

public NkVec2

Returns:

a NkVec2 view of the tooltip_padding field.
tooltip_padding
()

public NkStyleWindow
tooltip_padding(NkVec2 value)

Copies the specified NkVec2 to the tooltip_padding field.

public NkStyleWindow
tooltip_padding(Consumer<NkVec2> consumer)

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