public class NkStyleCombo
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkStyleCombo.Buffer
An array of
NkStyleCombo structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE
The struct member offsets.
|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BORDER
The struct member offsets.
|
static int |
BORDER_COLOR
The struct member offsets.
|
static int |
BUTTON
The struct member offsets.
|
static int |
BUTTON_PADDING
The struct member offsets.
|
static int |
CONTENT_PADDING
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 |
NORMAL
The struct member offsets.
|
static int |
ROUNDING
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SPACING
The struct member offsets.
|
static int |
SYM_ACTIVE
The struct member offsets.
|
static int |
SYM_HOVER
The struct member offsets.
|
static int |
SYM_NORMAL
The struct member offsets.
|
static int |
SYMBOL_ACTIVE
The struct member offsets.
|
static int |
SYMBOL_HOVER
The struct member offsets.
|
static int |
SYMBOL_NORMAL
The struct member offsets.
|
| Constructor and Description |
|---|
NkStyleCombo(java.nio.ByteBuffer container)
Creates a
NkStyleCombo 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. |
NkStyleCombo |
active(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
active field to the specified Consumer. |
NkStyleCombo |
active(NkStyleItem value)
Copies the specified
NkStyleItem to the active field. |
NkColor |
border_color()
Returns a
NkColor view of the border_color field. |
NkStyleCombo |
border_color(java.util.function.Consumer<NkColor> consumer)
Passes the
border_color field to the specified Consumer. |
NkStyleCombo |
border_color(NkColor value)
Copies the specified
NkColor to the border_color field. |
float |
border()
Returns the value of the
border field. |
NkStyleCombo |
border(float value)
Sets the specified value to the
border field. |
NkVec2 |
button_padding()
Returns a
NkVec2 view of the button_padding field. |
NkStyleCombo |
button_padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
button_padding field to the specified Consumer. |
NkStyleCombo |
button_padding(NkVec2 value)
Copies the specified
NkVec2 to the button_padding field. |
NkStyleButton |
button()
Returns a
NkStyleButton view of the button field. |
NkStyleCombo |
button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
button field to the specified Consumer. |
NkStyleCombo |
button(NkStyleButton value)
Copies the specified
NkStyleButton to the button field. |
static NkStyleCombo |
calloc()
Returns a new
NkStyleCombo instance allocated with memCalloc. |
static NkStyleCombo.Buffer |
calloc(int capacity)
Returns a new
NkStyleCombo.Buffer instance allocated with memCalloc. |
static NkStyleCombo |
callocStack()
Returns a new
NkStyleCombo instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyleCombo.Buffer |
callocStack(int capacity)
Returns a new
NkStyleCombo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyleCombo.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleCombo.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkStyleCombo |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleCombo instance allocated on the specified MemoryStack and initializes all its bits to zero. |
NkVec2 |
content_padding()
Returns a
NkVec2 view of the content_padding field. |
NkStyleCombo |
content_padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
content_padding field to the specified Consumer. |
NkStyleCombo |
content_padding(NkVec2 value)
Copies the specified
NkVec2 to the content_padding field. |
static NkStyleCombo |
create()
Returns a new
NkStyleCombo instance allocated with BufferUtils. |
static NkStyleCombo.Buffer |
create(int capacity)
Returns a new
NkStyleCombo.Buffer instance allocated with BufferUtils. |
static NkStyleCombo |
create(long address)
Returns a new
NkStyleCombo instance for the specified memory address. |
static NkStyleCombo.Buffer |
create(long address,
int capacity)
Create a
NkStyleCombo.Buffer instance at the specified memory. |
static NkStyleCombo |
createSafe(long address)
|
static NkStyleCombo.Buffer |
createSafe(long address,
int capacity)
|
NkStyleItem |
hover()
Returns a
NkStyleItem view of the hover field. |
NkStyleCombo |
hover(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
hover field to the specified Consumer. |
NkStyleCombo |
hover(NkStyleItem value)
Copies the specified
NkStyleItem to the hover field. |
NkColor |
label_active()
Returns a
NkColor view of the label_active field. |
NkStyleCombo |
label_active(java.util.function.Consumer<NkColor> consumer)
Passes the
label_active field to the specified Consumer. |
NkStyleCombo |
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. |
NkStyleCombo |
label_hover(java.util.function.Consumer<NkColor> consumer)
Passes the
label_hover field to the specified Consumer. |
NkStyleCombo |
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. |
NkStyleCombo |
label_normal(java.util.function.Consumer<NkColor> consumer)
Passes the
label_normal field to the specified Consumer. |
NkStyleCombo |
label_normal(NkColor value)
Copies the specified
NkColor to the label_normal field. |
static NkStyleCombo |
malloc()
Returns a new
NkStyleCombo instance allocated with memAlloc. |
static NkStyleCombo.Buffer |
malloc(int capacity)
Returns a new
NkStyleCombo.Buffer instance allocated with memAlloc. |
static NkStyleCombo |
mallocStack()
Returns a new
NkStyleCombo instance allocated on the thread-local MemoryStack. |
static NkStyleCombo.Buffer |
mallocStack(int capacity)
Returns a new
NkStyleCombo.Buffer instance allocated on the thread-local MemoryStack. |
static NkStyleCombo.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleCombo.Buffer instance allocated on the specified MemoryStack. |
static NkStyleCombo |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleCombo instance allocated on the specified MemoryStack. |
static NkStyleItem |
nactive(long struct)
Unsafe version of
active(). |
static void |
nactive(long struct,
NkStyleItem value)
Unsafe version of
active. |
static NkColor |
nborder_color(long struct)
Unsafe version of
border_color(). |
static void |
nborder_color(long struct,
NkColor value)
Unsafe version of
border_color. |
static float |
nborder(long struct)
Unsafe version of
border(). |
static void |
nborder(long struct,
float value)
Unsafe version of
border. |
static NkVec2 |
nbutton_padding(long struct)
Unsafe version of
button_padding(). |
static void |
nbutton_padding(long struct,
NkVec2 value)
Unsafe version of
button_padding. |
static NkStyleButton |
nbutton(long struct)
Unsafe version of
button(). |
static void |
nbutton(long struct,
NkStyleButton value)
Unsafe version of
button. |
static NkVec2 |
ncontent_padding(long struct)
Unsafe version of
content_padding(). |
static void |
ncontent_padding(long struct,
NkVec2 value)
Unsafe version of
content_padding. |
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 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. |
NkStyleCombo |
normal(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
normal field to the specified Consumer. |
NkStyleCombo |
normal(NkStyleItem value)
Copies the specified
NkStyleItem to the normal field. |
static float |
nrounding(long struct)
Unsafe version of
rounding(). |
static void |
nrounding(long struct,
float value)
Unsafe version of
rounding. |
static NkVec2 |
nspacing(long struct)
Unsafe version of
spacing(). |
static void |
nspacing(long struct,
NkVec2 value)
Unsafe version of
spacing. |
static int |
nsym_active(long struct)
Unsafe version of
sym_active(). |
static void |
nsym_active(long struct,
int value)
Unsafe version of
sym_active. |
static int |
nsym_hover(long struct)
Unsafe version of
sym_hover(). |
static void |
nsym_hover(long struct,
int value)
Unsafe version of
sym_hover. |
static int |
nsym_normal(long struct)
Unsafe version of
sym_normal(). |
static void |
nsym_normal(long struct,
int value)
Unsafe version of
sym_normal. |
static NkColor |
nsymbol_active(long struct)
Unsafe version of
symbol_active(). |
static void |
nsymbol_active(long struct,
NkColor value)
Unsafe version of
symbol_active. |
static NkColor |
nsymbol_hover(long struct)
Unsafe version of
symbol_hover(). |
static void |
nsymbol_hover(long struct,
NkColor value)
Unsafe version of
symbol_hover. |
static NkColor |
nsymbol_normal(long struct)
Unsafe version of
symbol_normal(). |
static void |
nsymbol_normal(long struct,
NkColor value)
Unsafe version of
symbol_normal. |
float |
rounding()
Returns the value of the
rounding field. |
NkStyleCombo |
rounding(float value)
Sets the specified value to the
rounding field. |
NkStyleCombo |
set(NkStyleCombo src)
Copies the specified struct data to this struct.
|
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.
|
int |
sizeof() |
NkVec2 |
spacing()
Returns a
NkVec2 view of the spacing field. |
NkStyleCombo |
spacing(java.util.function.Consumer<NkVec2> consumer)
Passes the
spacing field to the specified Consumer. |
NkStyleCombo |
spacing(NkVec2 value)
Copies the specified
NkVec2 to the spacing field. |
int |
sym_active()
Returns the value of the
sym_active field. |
NkStyleCombo |
sym_active(int value)
Sets the specified value to the
sym_active field. |
int |
sym_hover()
Returns the value of the
sym_hover field. |
NkStyleCombo |
sym_hover(int value)
Sets the specified value to the
sym_hover field. |
int |
sym_normal()
Returns the value of the
sym_normal field. |
NkStyleCombo |
sym_normal(int value)
Sets the specified value to the
sym_normal field. |
NkColor |
symbol_active()
Returns a
NkColor view of the symbol_active field. |
NkStyleCombo |
symbol_active(java.util.function.Consumer<NkColor> consumer)
Passes the
symbol_active field to the specified Consumer. |
NkStyleCombo |
symbol_active(NkColor value)
Copies the specified
NkColor to the symbol_active field. |
NkColor |
symbol_hover()
Returns a
NkColor view of the symbol_hover field. |
NkStyleCombo |
symbol_hover(java.util.function.Consumer<NkColor> consumer)
Passes the
symbol_hover field to the specified Consumer. |
NkStyleCombo |
symbol_hover(NkColor value)
Copies the specified
NkColor to the symbol_hover field. |
NkColor |
symbol_normal()
Returns a
NkColor view of the symbol_normal field. |
NkStyleCombo |
symbol_normal(java.util.function.Consumer<NkColor> consumer)
Passes the
symbol_normal field to the specified Consumer. |
NkStyleCombo |
symbol_normal(NkColor value)
Copies the specified
NkColor to the symbol_normal 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 BORDER_COLOR
public static final int LABEL_NORMAL
public static final int LABEL_HOVER
public static final int LABEL_ACTIVE
public static final int SYMBOL_NORMAL
public static final int SYMBOL_HOVER
public static final int SYMBOL_ACTIVE
public static final int BUTTON
public static final int SYM_NORMAL
public static final int SYM_HOVER
public static final int SYM_ACTIVE
public static final int BORDER
public static final int ROUNDING
public static final int CONTENT_PADDING
public static final int BUTTON_PADDING
public static final int SPACING
public NkStyleCombo(java.nio.ByteBuffer container)
NkStyleCombo 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 button()
NkStyleButton view of the button field.public int sym_normal()
sym_normal field.public int sym_hover()
sym_hover field.public int sym_active()
sym_active field.public float border()
border field.public float rounding()
rounding field.public NkStyleCombo normal(NkStyleItem value)
NkStyleItem to the normal field.public NkStyleCombo normal(java.util.function.Consumer<NkStyleItem> consumer)
normal field to the specified Consumer.public NkStyleCombo hover(NkStyleItem value)
NkStyleItem to the hover field.public NkStyleCombo hover(java.util.function.Consumer<NkStyleItem> consumer)
hover field to the specified Consumer.public NkStyleCombo active(NkStyleItem value)
NkStyleItem to the active field.public NkStyleCombo active(java.util.function.Consumer<NkStyleItem> consumer)
active field to the specified Consumer.public NkStyleCombo border_color(NkColor value)
NkColor to the border_color field.public NkStyleCombo border_color(java.util.function.Consumer<NkColor> consumer)
border_color field to the specified Consumer.public NkStyleCombo label_normal(NkColor value)
NkColor to the label_normal field.public NkStyleCombo label_normal(java.util.function.Consumer<NkColor> consumer)
label_normal field to the specified Consumer.public NkStyleCombo label_hover(NkColor value)
NkColor to the label_hover field.public NkStyleCombo label_hover(java.util.function.Consumer<NkColor> consumer)
label_hover field to the specified Consumer.public NkStyleCombo label_active(NkColor value)
NkColor to the label_active field.public NkStyleCombo label_active(java.util.function.Consumer<NkColor> consumer)
label_active field to the specified Consumer.public NkStyleCombo symbol_normal(NkColor value)
NkColor to the symbol_normal field.public NkStyleCombo symbol_normal(java.util.function.Consumer<NkColor> consumer)
symbol_normal field to the specified Consumer.public NkStyleCombo symbol_hover(NkColor value)
NkColor to the symbol_hover field.public NkStyleCombo symbol_hover(java.util.function.Consumer<NkColor> consumer)
symbol_hover field to the specified Consumer.public NkStyleCombo symbol_active(NkColor value)
NkColor to the symbol_active field.public NkStyleCombo symbol_active(java.util.function.Consumer<NkColor> consumer)
symbol_active field to the specified Consumer.public NkStyleCombo button(NkStyleButton value)
NkStyleButton to the button field.public NkStyleCombo button(java.util.function.Consumer<NkStyleButton> consumer)
button field to the specified Consumer.public NkStyleCombo sym_normal(int value)
sym_normal field.public NkStyleCombo sym_hover(int value)
sym_hover field.public NkStyleCombo sym_active(int value)
sym_active field.public NkStyleCombo border(float value)
border field.public NkStyleCombo rounding(float value)
rounding field.public NkStyleCombo content_padding(NkVec2 value)
NkVec2 to the content_padding field.public NkStyleCombo content_padding(java.util.function.Consumer<NkVec2> consumer)
content_padding field to the specified Consumer.public NkStyleCombo button_padding(NkVec2 value)
NkVec2 to the button_padding field.public NkStyleCombo button_padding(java.util.function.Consumer<NkVec2> consumer)
button_padding field to the specified Consumer.public NkStyleCombo spacing(NkVec2 value)
NkVec2 to the spacing field.public NkStyleCombo spacing(java.util.function.Consumer<NkVec2> consumer)
spacing field to the specified Consumer.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)
public NkStyleCombo set(NkStyleCombo src)
src - the source structpublic static NkStyleCombo malloc()
NkStyleCombo instance allocated with memAlloc. The instance must be explicitly freed.public static NkStyleCombo calloc()
NkStyleCombo instance allocated with memCalloc. The instance must be explicitly freed.public static NkStyleCombo create()
NkStyleCombo instance allocated with BufferUtils.public static NkStyleCombo create(long address)
NkStyleCombo instance for the specified memory address.@Nullable public static NkStyleCombo createSafe(long address)
public static NkStyleCombo.Buffer malloc(int capacity)
NkStyleCombo.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyleCombo.Buffer calloc(int capacity)
NkStyleCombo.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyleCombo.Buffer create(int capacity)
NkStyleCombo.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkStyleCombo.Buffer create(long address, int capacity)
NkStyleCombo.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkStyleCombo.Buffer createSafe(long address, int capacity)
public static NkStyleCombo mallocStack()
NkStyleCombo instance allocated on the thread-local MemoryStack.public static NkStyleCombo callocStack()
NkStyleCombo instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkStyleCombo mallocStack(org.lwjgl.system.MemoryStack stack)
NkStyleCombo instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkStyleCombo callocStack(org.lwjgl.system.MemoryStack stack)
NkStyleCombo instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkStyleCombo.Buffer mallocStack(int capacity)
NkStyleCombo.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkStyleCombo.Buffer callocStack(int capacity)
NkStyleCombo.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkStyleCombo.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyleCombo.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkStyleCombo.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyleCombo.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 NkColor nborder_color(long struct)
border_color().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 NkColor nsymbol_normal(long struct)
symbol_normal().public static NkColor nsymbol_hover(long struct)
symbol_hover().public static NkColor nsymbol_active(long struct)
symbol_active().public static NkStyleButton nbutton(long struct)
button().public static int nsym_normal(long struct)
sym_normal().public static int nsym_hover(long struct)
sym_hover().public static int nsym_active(long struct)
sym_active().public static float nborder(long struct)
border().public static float nrounding(long struct)
rounding().public static NkVec2 ncontent_padding(long struct)
content_padding().public static NkVec2 nbutton_padding(long struct)
button_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 nborder_color(long struct,
NkColor value)
border_color.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 nsymbol_normal(long struct,
NkColor value)
symbol_normal.public static void nsymbol_hover(long struct,
NkColor value)
symbol_hover.public static void nsymbol_active(long struct,
NkColor value)
symbol_active.public static void nbutton(long struct,
NkStyleButton value)
button.public static void nsym_normal(long struct,
int value)
sym_normal.public static void nsym_hover(long struct,
int value)
sym_hover.public static void nsym_active(long struct,
int value)
sym_active.public static void nborder(long struct,
float value)
border.public static void nrounding(long struct,
float value)
rounding.public static void ncontent_padding(long struct,
NkVec2 value)
content_padding.public static void nbutton_padding(long struct,
NkVec2 value)
button_padding.Copyright LWJGL. All Rights Reserved. License terms.