public class NkStyleWindowHeader
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
align – one of:HEADER_LEFT | HEADER_RIGHT |
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkStyleWindowHeader.Buffer
An array of
NkStyleWindowHeader structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE
The struct member offsets.
|
static int |
ALIGN
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CLOSE_BUTTON
The struct member offsets.
|
static int |
CLOSE_SYMBOL
The struct member offsets.
|
static int |
HOVER
The struct member offsets.
|
static int |
LABEL_ACTIVE
The struct member offsets.
|
static int |
LABEL_HOVER
The struct member offsets.
|
static int |
LABEL_NORMAL
The struct member offsets.
|
static int |
LABEL_PADDING
The struct member offsets.
|
static int |
MAXIMIZE_SYMBOL
The struct member offsets.
|
static int |
MINIMIZE_BUTTON
The struct member offsets.
|
static int |
MINIMIZE_SYMBOL
The struct member offsets.
|
static int |
NORMAL
The struct member offsets.
|
static int |
PADDING
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SPACING
The struct member offsets.
|
| Constructor and Description |
|---|
NkStyleWindowHeader(java.nio.ByteBuffer container)
Creates a
NkStyleWindowHeader instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
NkStyleItem |
active()
Returns a
NkStyleItem view of the active field. |
NkStyleWindowHeader |
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
active field to the specified Consumer. |
NkStyleWindowHeader |
active(NkStyleItem value)
Copies the specified
NkStyleItem to the active field. |
int |
align()
Returns the value of the
align field. |
NkStyleWindowHeader |
align(int value)
Sets the specified value to the
align field. |
static NkStyleWindowHeader |
calloc()
Returns a new
NkStyleWindowHeader instance allocated with memCalloc. |
static NkStyleWindowHeader.Buffer |
calloc(int capacity)
Returns a new
NkStyleWindowHeader.Buffer instance allocated with memCalloc. |
static NkStyleWindowHeader |
callocStack()
Returns a new
NkStyleWindowHeader instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyleWindowHeader.Buffer |
callocStack(int capacity)
Returns a new
NkStyleWindowHeader.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyleWindowHeader.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleWindowHeader.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkStyleWindowHeader |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleWindowHeader instance allocated on the specified MemoryStack and initializes all its bits to zero. |
NkStyleButton |
close_button()
Returns a
NkStyleButton view of the close_button field. |
NkStyleWindowHeader |
close_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
close_button field to the specified Consumer. |
NkStyleWindowHeader |
close_button(NkStyleButton value)
Copies the specified
NkStyleButton to the close_button field. |
int |
close_symbol()
Returns the value of the
close_symbol field. |
NkStyleWindowHeader |
close_symbol(int value)
Sets the specified value to the
close_symbol field. |
static NkStyleWindowHeader |
create()
Returns a new
NkStyleWindowHeader instance allocated with BufferUtils. |
static NkStyleWindowHeader.Buffer |
create(int capacity)
Returns a new
NkStyleWindowHeader.Buffer instance allocated with BufferUtils. |
static NkStyleWindowHeader |
create(long address)
Returns a new
NkStyleWindowHeader instance for the specified memory address. |
static NkStyleWindowHeader.Buffer |
create(long address,
int capacity)
Create a
NkStyleWindowHeader.Buffer instance at the specified memory. |
static NkStyleWindowHeader |
createSafe(long address)
|
static NkStyleWindowHeader.Buffer |
createSafe(long address,
int capacity)
|
NkStyleItem |
hover()
Returns a
NkStyleItem view of the hover field. |
NkStyleWindowHeader |
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
hover field to the specified Consumer. |
NkStyleWindowHeader |
hover(NkStyleItem value)
Copies the specified
NkStyleItem to the hover field. |
NkColor |
label_active()
Returns a
NkColor view of the label_active field. |
NkStyleWindowHeader |
label_active(java.util.function.Consumer<NkColor> consumer)
Passes the
label_active field to the specified Consumer. |
NkStyleWindowHeader |
label_active(NkColor value)
Copies the specified
NkColor to the label_active field. |
NkColor |
label_hover()
Returns a
NkColor view of the label_hover field. |
NkStyleWindowHeader |
label_hover(java.util.function.Consumer<NkColor> consumer)
Passes the
label_hover field to the specified Consumer. |
NkStyleWindowHeader |
label_hover(NkColor value)
Copies the specified
NkColor to the label_hover field. |
NkColor |
label_normal()
Returns a
NkColor view of the label_normal field. |
NkStyleWindowHeader |
label_normal(java.util.function.Consumer<NkColor> consumer)
Passes the
label_normal field to the specified Consumer. |
NkStyleWindowHeader |
label_normal(NkColor value)
Copies the specified
NkColor to the label_normal field. |
NkVec2 |
label_padding()
Returns a
NkVec2 view of the label_padding field. |
NkStyleWindowHeader |
label_padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
label_padding field to the specified Consumer. |
NkStyleWindowHeader |
label_padding(NkVec2 value)
Copies the specified
NkVec2 to the label_padding field. |
static NkStyleWindowHeader |
malloc()
Returns a new
NkStyleWindowHeader instance allocated with memAlloc. |
static NkStyleWindowHeader.Buffer |
malloc(int capacity)
Returns a new
NkStyleWindowHeader.Buffer instance allocated with memAlloc. |
static NkStyleWindowHeader |
mallocStack()
Returns a new
NkStyleWindowHeader instance allocated on the thread-local MemoryStack. |
static NkStyleWindowHeader.Buffer |
mallocStack(int capacity)
Returns a new
NkStyleWindowHeader.Buffer instance allocated on the thread-local MemoryStack. |
static NkStyleWindowHeader.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleWindowHeader.Buffer instance allocated on the specified MemoryStack. |
static NkStyleWindowHeader |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleWindowHeader instance allocated on the specified MemoryStack. |
int |
maximize_symbol()
Returns the value of the
maximize_symbol field. |
NkStyleWindowHeader |
maximize_symbol(int value)
Sets the specified value to the
maximize_symbol field. |
NkStyleButton |
minimize_button()
Returns a
NkStyleButton view of the minimize_button field. |
NkStyleWindowHeader |
minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
minimize_button field to the specified Consumer. |
NkStyleWindowHeader |
minimize_button(NkStyleButton value)
Copies the specified
NkStyleButton to the minimize_button field. |
int |
minimize_symbol()
Returns the value of the
minimize_symbol field. |
NkStyleWindowHeader |
minimize_symbol(int value)
Sets the specified value to the
minimize_symbol field. |
static NkStyleItem |
nactive(long struct)
Unsafe version of
active(). |
static void |
nactive(long struct,
NkStyleItem value)
Unsafe version of
active. |
static int |
nalign(long struct)
Unsafe version of
align(). |
static void |
nalign(long struct,
int value)
Unsafe version of
align. |
static NkStyleButton |
nclose_button(long struct)
Unsafe version of
close_button(). |
static void |
nclose_button(long struct,
NkStyleButton value)
Unsafe version of
close_button. |
static int |
nclose_symbol(long struct)
Unsafe version of
close_symbol(). |
static void |
nclose_symbol(long struct,
int value)
Unsafe version of
close_symbol. |
static NkStyleItem |
nhover(long struct)
Unsafe version of
hover(). |
static void |
nhover(long struct,
NkStyleItem value)
Unsafe version of
hover. |
static NkColor |
nlabel_active(long struct)
Unsafe version of
label_active(). |
static void |
nlabel_active(long struct,
NkColor value)
Unsafe version of
label_active. |
static NkColor |
nlabel_hover(long struct)
Unsafe version of
label_hover(). |
static void |
nlabel_hover(long struct,
NkColor value)
Unsafe version of
label_hover. |
static NkColor |
nlabel_normal(long struct)
Unsafe version of
label_normal(). |
static void |
nlabel_normal(long struct,
NkColor value)
Unsafe version of
label_normal. |
static NkVec2 |
nlabel_padding(long struct)
Unsafe version of
label_padding(). |
static void |
nlabel_padding(long struct,
NkVec2 value)
Unsafe version of
label_padding. |
static int |
nmaximize_symbol(long struct)
Unsafe version of
maximize_symbol(). |
static void |
nmaximize_symbol(long struct,
int value)
Unsafe version of
maximize_symbol. |
static NkStyleButton |
nminimize_button(long struct)
Unsafe version of
minimize_button(). |
static void |
nminimize_button(long struct,
NkStyleButton value)
Unsafe version of
minimize_button. |
static int |
nminimize_symbol(long struct)
Unsafe version of
minimize_symbol(). |
static void |
nminimize_symbol(long struct,
int value)
Unsafe version of
minimize_symbol. |
static NkStyleItem |
nnormal(long struct)
Unsafe version of
normal(). |
static void |
nnormal(long struct,
NkStyleItem value)
Unsafe version of
normal. |
NkStyleItem |
normal()
Returns a
NkStyleItem view of the normal field. |
NkStyleWindowHeader |
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
normal field to the specified Consumer. |
NkStyleWindowHeader |
normal(NkStyleItem value)
Copies the specified
NkStyleItem to the normal field. |
static NkVec2 |
npadding(long struct)
Unsafe version of
padding(). |
static void |
npadding(long struct,
NkVec2 value)
Unsafe version of
padding. |
static NkVec2 |
nspacing(long struct)
Unsafe version of
spacing(). |
static void |
nspacing(long struct,
NkVec2 value)
Unsafe version of
spacing. |
NkVec2 |
padding()
Returns a
NkVec2 view of the padding field. |
NkStyleWindowHeader |
padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
padding field to the specified Consumer. |
NkStyleWindowHeader |
padding(NkVec2 value)
Copies the specified
NkVec2 to the padding field. |
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.
|
NkStyleWindowHeader |
set(NkStyleWindowHeader src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
NkVec2 |
spacing()
Returns a
NkVec2 view of the spacing field. |
NkStyleWindowHeader |
spacing(java.util.function.Consumer<NkVec2> consumer)
Passes the
spacing field to the specified Consumer. |
NkStyleWindowHeader |
spacing(NkVec2 value)
Copies the specified
NkVec2 to the spacing field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NORMAL
public static final int HOVER
public static final int ACTIVE
public static final int CLOSE_BUTTON
public static final int MINIMIZE_BUTTON
public static final int CLOSE_SYMBOL
public static final int MINIMIZE_SYMBOL
public static final int MAXIMIZE_SYMBOL
public static final int LABEL_NORMAL
public static final int LABEL_HOVER
public static final int LABEL_ACTIVE
public static final int ALIGN
public static final int PADDING
public static final int LABEL_PADDING
public static final int SPACING
public NkStyleWindowHeader(java.nio.ByteBuffer container)
NkStyleWindowHeader instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic NkStyleItem normal()
NkStyleItem view of the normal field.public NkStyleItem hover()
NkStyleItem view of the hover field.public NkStyleItem active()
NkStyleItem view of the active field.public NkStyleButton close_button()
NkStyleButton view of the close_button field.public NkStyleButton minimize_button()
NkStyleButton view of the minimize_button field.public int close_symbol()
close_symbol field.public int minimize_symbol()
minimize_symbol field.public int maximize_symbol()
maximize_symbol field.public int align()
align field.public NkStyleWindowHeader normal(NkStyleItem value)
NkStyleItem to the normal field.public NkStyleWindowHeader normal(java.util.function.Consumer<NkStyleItem> consumer)
normal field to the specified Consumer.public NkStyleWindowHeader hover(NkStyleItem value)
NkStyleItem to the hover field.public NkStyleWindowHeader hover(java.util.function.Consumer<NkStyleItem> consumer)
hover field to the specified Consumer.public NkStyleWindowHeader active(NkStyleItem value)
NkStyleItem to the active field.public NkStyleWindowHeader active(java.util.function.Consumer<NkStyleItem> consumer)
active field to the specified Consumer.public NkStyleWindowHeader close_button(NkStyleButton value)
NkStyleButton to the close_button field.public NkStyleWindowHeader close_button(java.util.function.Consumer<NkStyleButton> consumer)
close_button field to the specified Consumer.public NkStyleWindowHeader minimize_button(NkStyleButton value)
NkStyleButton to the minimize_button field.public NkStyleWindowHeader minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
minimize_button field to the specified Consumer.public NkStyleWindowHeader close_symbol(int value)
close_symbol field.public NkStyleWindowHeader minimize_symbol(int value)
minimize_symbol field.public NkStyleWindowHeader maximize_symbol(int value)
maximize_symbol field.public NkStyleWindowHeader label_normal(NkColor value)
NkColor to the label_normal field.public NkStyleWindowHeader label_normal(java.util.function.Consumer<NkColor> consumer)
label_normal field to the specified Consumer.public NkStyleWindowHeader label_hover(NkColor value)
NkColor to the label_hover field.public NkStyleWindowHeader label_hover(java.util.function.Consumer<NkColor> consumer)
label_hover field to the specified Consumer.public NkStyleWindowHeader label_active(NkColor value)
NkColor to the label_active field.public NkStyleWindowHeader label_active(java.util.function.Consumer<NkColor> consumer)
label_active field to the specified Consumer.public NkStyleWindowHeader align(int value)
align field.public NkStyleWindowHeader padding(NkVec2 value)
NkVec2 to the padding field.public NkStyleWindowHeader padding(java.util.function.Consumer<NkVec2> consumer)
padding field to the specified Consumer.public NkStyleWindowHeader label_padding(NkVec2 value)
NkVec2 to the label_padding field.public NkStyleWindowHeader label_padding(java.util.function.Consumer<NkVec2> consumer)
label_padding field to the specified Consumer.public NkStyleWindowHeader spacing(NkVec2 value)
NkVec2 to the spacing field.public NkStyleWindowHeader spacing(java.util.function.Consumer<NkVec2> consumer)
spacing 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)
public NkStyleWindowHeader set(NkStyleWindowHeader src)
src - the source structpublic static NkStyleWindowHeader malloc()
NkStyleWindowHeader instance allocated with memAlloc. The instance must be explicitly freed.public static NkStyleWindowHeader calloc()
NkStyleWindowHeader instance allocated with memCalloc. The instance must be explicitly freed.public static NkStyleWindowHeader create()
NkStyleWindowHeader instance allocated with BufferUtils.public static NkStyleWindowHeader create(long address)
NkStyleWindowHeader instance for the specified memory address.@Nullable public static NkStyleWindowHeader createSafe(long address)
public static NkStyleWindowHeader.Buffer malloc(int capacity)
NkStyleWindowHeader.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyleWindowHeader.Buffer calloc(int capacity)
NkStyleWindowHeader.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyleWindowHeader.Buffer create(int capacity)
NkStyleWindowHeader.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkStyleWindowHeader.Buffer create(long address, int capacity)
NkStyleWindowHeader.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkStyleWindowHeader.Buffer createSafe(long address, int capacity)
public static NkStyleWindowHeader mallocStack()
NkStyleWindowHeader instance allocated on the thread-local MemoryStack.public static NkStyleWindowHeader callocStack()
NkStyleWindowHeader instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkStyleWindowHeader mallocStack(org.lwjgl.system.MemoryStack stack)
NkStyleWindowHeader instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkStyleWindowHeader callocStack(org.lwjgl.system.MemoryStack stack)
NkStyleWindowHeader instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkStyleWindowHeader.Buffer mallocStack(int capacity)
NkStyleWindowHeader.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkStyleWindowHeader.Buffer callocStack(int capacity)
NkStyleWindowHeader.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkStyleWindowHeader.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyleWindowHeader.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkStyleWindowHeader.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyleWindowHeader.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkStyleItem nnormal(long struct)
normal().public static NkStyleItem nhover(long struct)
hover().public static NkStyleItem nactive(long struct)
active().public static NkStyleButton nclose_button(long struct)
close_button().public static NkStyleButton nminimize_button(long struct)
minimize_button().public static int nclose_symbol(long struct)
close_symbol().public static int nminimize_symbol(long struct)
minimize_symbol().public static int nmaximize_symbol(long struct)
maximize_symbol().public static NkColor nlabel_normal(long struct)
label_normal().public static NkColor nlabel_hover(long struct)
label_hover().public static NkColor nlabel_active(long struct)
label_active().public static int nalign(long struct)
align().public static NkVec2 nlabel_padding(long struct)
label_padding().public static void nnormal(long struct,
NkStyleItem value)
normal.public static void nhover(long struct,
NkStyleItem value)
hover.public static void nactive(long struct,
NkStyleItem value)
active.public static void nclose_button(long struct,
NkStyleButton value)
close_button.public static void nminimize_button(long struct,
NkStyleButton value)
minimize_button.public static void nclose_symbol(long struct,
int value)
close_symbol.public static void nminimize_symbol(long struct,
int value)
minimize_symbol.public static void nmaximize_symbol(long struct,
int value)
maximize_symbol.public static void nlabel_normal(long struct,
NkColor value)
label_normal.public static void nlabel_hover(long struct,
NkColor value)
label_hover.public static void nlabel_active(long struct,
NkColor value)
label_active.public static void nalign(long struct,
int value)
align.public static void nlabel_padding(long struct,
NkVec2 value)
label_padding.Copyright LWJGL. All Rights Reserved. License terms.