public class NkStyleTab
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct nk_style_tab {
struct nk_style_item background;
struct nk_color border_color;
struct nk_color text;
struct nk_style_button tab_maximize_button;
struct nk_style_button tab_minimize_button;
struct nk_style_button node_maximize_button;
struct nk_style_button node_minimize_button;
enum nk_symbol_type sym_minimize;
enum nk_symbol_type sym_maximize;
float border;
float rounding;
float indent;
struct nk_vec2 padding;
struct nk_vec2 spacing;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkStyleTab.Buffer
An array of
NkStyleTab structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BACKGROUND
The struct member offsets.
|
static int |
BORDER
The struct member offsets.
|
static int |
BORDER_COLOR
The struct member offsets.
|
static int |
INDENT
The struct member offsets.
|
static int |
NODE_MAXIMIZE_BUTTON
The struct member offsets.
|
static int |
NODE_MINIMIZE_BUTTON
The struct member offsets.
|
static int |
PADDING
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_MAXIMIZE
The struct member offsets.
|
static int |
SYM_MINIMIZE
The struct member offsets.
|
static int |
TAB_MAXIMIZE_BUTTON
The struct member offsets.
|
static int |
TAB_MINIMIZE_BUTTON
The struct member offsets.
|
static int |
TEXT
The struct member offsets.
|
| Constructor and Description |
|---|
NkStyleTab(java.nio.ByteBuffer container)
Creates a
NkStyleTab instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
NkStyleItem |
background()
Returns a
NkStyleItem view of the background field. |
NkStyleTab |
background(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
background field to the specified Consumer. |
NkStyleTab |
background(NkStyleItem value)
Copies the specified
NkStyleItem to the background field. |
NkColor |
border_color()
Returns a
NkColor view of the border_color field. |
NkStyleTab |
border_color(java.util.function.Consumer<NkColor> consumer)
Passes the
border_color field to the specified Consumer. |
NkStyleTab |
border_color(NkColor value)
Copies the specified
NkColor to the border_color field. |
float |
border()
Returns the value of the
border field. |
NkStyleTab |
border(float value)
Sets the specified value to the
border field. |
static NkStyleTab |
calloc()
Returns a new
NkStyleTab instance allocated with memCalloc. |
static NkStyleTab.Buffer |
calloc(int capacity)
Returns a new
NkStyleTab.Buffer instance allocated with memCalloc. |
static NkStyleTab |
callocStack()
Returns a new
NkStyleTab instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyleTab.Buffer |
callocStack(int capacity)
Returns a new
NkStyleTab.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyleTab.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleTab.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkStyleTab |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleTab instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkStyleTab |
create()
Returns a new
NkStyleTab instance allocated with BufferUtils. |
static NkStyleTab.Buffer |
create(int capacity)
Returns a new
NkStyleTab.Buffer instance allocated with BufferUtils. |
static NkStyleTab |
create(long address)
Returns a new
NkStyleTab instance for the specified memory address. |
static NkStyleTab.Buffer |
create(long address,
int capacity)
Create a
NkStyleTab.Buffer instance at the specified memory. |
static NkStyleTab |
createSafe(long address)
|
static NkStyleTab.Buffer |
createSafe(long address,
int capacity)
|
float |
indent()
Returns the value of the
indent field. |
NkStyleTab |
indent(float value)
Sets the specified value to the
indent field. |
static NkStyleTab |
malloc()
Returns a new
NkStyleTab instance allocated with memAlloc. |
static NkStyleTab.Buffer |
malloc(int capacity)
Returns a new
NkStyleTab.Buffer instance allocated with memAlloc. |
static NkStyleTab |
mallocStack()
Returns a new
NkStyleTab instance allocated on the thread-local MemoryStack. |
static NkStyleTab.Buffer |
mallocStack(int capacity)
Returns a new
NkStyleTab.Buffer instance allocated on the thread-local MemoryStack. |
static NkStyleTab.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleTab.Buffer instance allocated on the specified MemoryStack. |
static NkStyleTab |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleTab instance allocated on the specified MemoryStack. |
static NkStyleItem |
nbackground(long struct)
Unsafe version of
background(). |
static void |
nbackground(long struct,
NkStyleItem value)
Unsafe version of
background. |
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 float |
nindent(long struct)
Unsafe version of
indent(). |
static void |
nindent(long struct,
float value)
Unsafe version of
indent. |
static NkStyleButton |
nnode_maximize_button(long struct)
Unsafe version of
node_maximize_button(). |
static void |
nnode_maximize_button(long struct,
NkStyleButton value)
Unsafe version of
node_maximize_button. |
static NkStyleButton |
nnode_minimize_button(long struct)
Unsafe version of
node_minimize_button(). |
static void |
nnode_minimize_button(long struct,
NkStyleButton value)
Unsafe version of
node_minimize_button. |
NkStyleButton |
node_maximize_button()
Returns a
NkStyleButton view of the node_maximize_button field. |
NkStyleTab |
node_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
node_maximize_button field to the specified Consumer. |
NkStyleTab |
node_maximize_button(NkStyleButton value)
Copies the specified
NkStyleButton to the node_maximize_button field. |
NkStyleButton |
node_minimize_button()
Returns a
NkStyleButton view of the node_minimize_button field. |
NkStyleTab |
node_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
node_minimize_button field to the specified Consumer. |
NkStyleTab |
node_minimize_button(NkStyleButton value)
Copies the specified
NkStyleButton to the node_minimize_button field. |
static NkVec2 |
npadding(long struct)
Unsafe version of
padding(). |
static void |
npadding(long struct,
NkVec2 value)
Unsafe version of
padding. |
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_maximize(long struct)
Unsafe version of
sym_maximize(). |
static void |
nsym_maximize(long struct,
int value)
Unsafe version of
sym_maximize. |
static int |
nsym_minimize(long struct)
Unsafe version of
sym_minimize(). |
static void |
nsym_minimize(long struct,
int value)
Unsafe version of
sym_minimize. |
static NkStyleButton |
ntab_maximize_button(long struct)
Unsafe version of
tab_maximize_button(). |
static void |
ntab_maximize_button(long struct,
NkStyleButton value)
Unsafe version of
tab_maximize_button. |
static NkStyleButton |
ntab_minimize_button(long struct)
Unsafe version of
tab_minimize_button(). |
static void |
ntab_minimize_button(long struct,
NkStyleButton value)
Unsafe version of
tab_minimize_button. |
static NkColor |
ntext(long struct)
Unsafe version of
text(). |
static void |
ntext(long struct,
NkColor value)
Unsafe version of
text. |
NkVec2 |
padding()
Returns a
NkVec2 view of the padding field. |
NkStyleTab |
padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
padding field to the specified Consumer. |
NkStyleTab |
padding(NkVec2 value)
Copies the specified
NkVec2 to the padding field. |
float |
rounding()
Returns the value of the
rounding field. |
NkStyleTab |
rounding(float value)
Sets the specified value to the
rounding field. |
NkStyleTab |
set(NkStyleItem background,
NkColor border_color,
NkColor text,
NkStyleButton tab_maximize_button,
NkStyleButton tab_minimize_button,
NkStyleButton node_maximize_button,
NkStyleButton node_minimize_button,
int sym_minimize,
int sym_maximize,
float border,
float rounding,
float indent,
NkVec2 padding,
NkVec2 spacing)
Initializes this struct with the specified values.
|
NkStyleTab |
set(NkStyleTab src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
NkVec2 |
spacing()
Returns a
NkVec2 view of the spacing field. |
NkStyleTab |
spacing(java.util.function.Consumer<NkVec2> consumer)
Passes the
spacing field to the specified Consumer. |
NkStyleTab |
spacing(NkVec2 value)
Copies the specified
NkVec2 to the spacing field. |
int |
sym_maximize()
Returns the value of the
sym_maximize field. |
NkStyleTab |
sym_maximize(int value)
Sets the specified value to the
sym_maximize field. |
int |
sym_minimize()
Returns the value of the
sym_minimize field. |
NkStyleTab |
sym_minimize(int value)
Sets the specified value to the
sym_minimize field. |
NkStyleButton |
tab_maximize_button()
Returns a
NkStyleButton view of the tab_maximize_button field. |
NkStyleTab |
tab_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
tab_maximize_button field to the specified Consumer. |
NkStyleTab |
tab_maximize_button(NkStyleButton value)
Copies the specified
NkStyleButton to the tab_maximize_button field. |
NkStyleButton |
tab_minimize_button()
Returns a
NkStyleButton view of the tab_minimize_button field. |
NkStyleTab |
tab_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
Passes the
tab_minimize_button field to the specified Consumer. |
NkStyleTab |
tab_minimize_button(NkStyleButton value)
Copies the specified
NkStyleButton to the tab_minimize_button field. |
NkColor |
text()
Returns a
NkColor view of the text field. |
NkStyleTab |
text(java.util.function.Consumer<NkColor> consumer)
Passes the
text field to the specified Consumer. |
NkStyleTab |
text(NkColor value)
Copies the specified
NkColor to the text field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int BACKGROUND
public static final int BORDER_COLOR
public static final int TEXT
public static final int TAB_MAXIMIZE_BUTTON
public static final int TAB_MINIMIZE_BUTTON
public static final int NODE_MAXIMIZE_BUTTON
public static final int NODE_MINIMIZE_BUTTON
public static final int SYM_MINIMIZE
public static final int SYM_MAXIMIZE
public static final int BORDER
public static final int ROUNDING
public static final int INDENT
public static final int PADDING
public static final int SPACING
public NkStyleTab(java.nio.ByteBuffer container)
NkStyleTab 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 background()
NkStyleItem view of the background field.public NkStyleButton tab_maximize_button()
NkStyleButton view of the tab_maximize_button field.public NkStyleButton tab_minimize_button()
NkStyleButton view of the tab_minimize_button field.public NkStyleButton node_maximize_button()
NkStyleButton view of the node_maximize_button field.public NkStyleButton node_minimize_button()
NkStyleButton view of the node_minimize_button field.public int sym_minimize()
sym_minimize field.public int sym_maximize()
sym_maximize field.public float border()
border field.public float rounding()
rounding field.public float indent()
indent field.public NkStyleTab background(NkStyleItem value)
NkStyleItem to the background field.public NkStyleTab background(java.util.function.Consumer<NkStyleItem> consumer)
background field to the specified Consumer.public NkStyleTab border_color(NkColor value)
NkColor to the border_color field.public NkStyleTab border_color(java.util.function.Consumer<NkColor> consumer)
border_color field to the specified Consumer.public NkStyleTab text(NkColor value)
NkColor to the text field.public NkStyleTab text(java.util.function.Consumer<NkColor> consumer)
text field to the specified Consumer.public NkStyleTab tab_maximize_button(NkStyleButton value)
NkStyleButton to the tab_maximize_button field.public NkStyleTab tab_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
tab_maximize_button field to the specified Consumer.public NkStyleTab tab_minimize_button(NkStyleButton value)
NkStyleButton to the tab_minimize_button field.public NkStyleTab tab_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
tab_minimize_button field to the specified Consumer.public NkStyleTab node_maximize_button(NkStyleButton value)
NkStyleButton to the node_maximize_button field.public NkStyleTab node_maximize_button(java.util.function.Consumer<NkStyleButton> consumer)
node_maximize_button field to the specified Consumer.public NkStyleTab node_minimize_button(NkStyleButton value)
NkStyleButton to the node_minimize_button field.public NkStyleTab node_minimize_button(java.util.function.Consumer<NkStyleButton> consumer)
node_minimize_button field to the specified Consumer.public NkStyleTab sym_minimize(int value)
sym_minimize field.public NkStyleTab sym_maximize(int value)
sym_maximize field.public NkStyleTab border(float value)
border field.public NkStyleTab rounding(float value)
rounding field.public NkStyleTab indent(float value)
indent field.public NkStyleTab padding(NkVec2 value)
NkVec2 to the padding field.public NkStyleTab padding(java.util.function.Consumer<NkVec2> consumer)
padding field to the specified Consumer.public NkStyleTab spacing(NkVec2 value)
NkVec2 to the spacing field.public NkStyleTab spacing(java.util.function.Consumer<NkVec2> consumer)
spacing field to the specified Consumer.public NkStyleTab set(NkStyleItem background, NkColor border_color, NkColor text, NkStyleButton tab_maximize_button, NkStyleButton tab_minimize_button, NkStyleButton node_maximize_button, NkStyleButton node_minimize_button, int sym_minimize, int sym_maximize, float border, float rounding, float indent, NkVec2 padding, NkVec2 spacing)
public NkStyleTab set(NkStyleTab src)
src - the source structpublic static NkStyleTab malloc()
NkStyleTab instance allocated with memAlloc. The instance must be explicitly freed.public static NkStyleTab calloc()
NkStyleTab instance allocated with memCalloc. The instance must be explicitly freed.public static NkStyleTab create()
NkStyleTab instance allocated with BufferUtils.public static NkStyleTab create(long address)
NkStyleTab instance for the specified memory address.@Nullable public static NkStyleTab createSafe(long address)
public static NkStyleTab.Buffer malloc(int capacity)
NkStyleTab.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyleTab.Buffer calloc(int capacity)
NkStyleTab.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyleTab.Buffer create(int capacity)
NkStyleTab.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkStyleTab.Buffer create(long address, int capacity)
NkStyleTab.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkStyleTab.Buffer createSafe(long address, int capacity)
public static NkStyleTab mallocStack()
NkStyleTab instance allocated on the thread-local MemoryStack.public static NkStyleTab callocStack()
NkStyleTab instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkStyleTab mallocStack(org.lwjgl.system.MemoryStack stack)
NkStyleTab instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkStyleTab callocStack(org.lwjgl.system.MemoryStack stack)
NkStyleTab instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkStyleTab.Buffer mallocStack(int capacity)
NkStyleTab.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkStyleTab.Buffer callocStack(int capacity)
NkStyleTab.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkStyleTab.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyleTab.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkStyleTab.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyleTab.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 nbackground(long struct)
background().public static NkColor nborder_color(long struct)
border_color().public static NkStyleButton ntab_maximize_button(long struct)
tab_maximize_button().public static NkStyleButton ntab_minimize_button(long struct)
tab_minimize_button().public static NkStyleButton nnode_maximize_button(long struct)
node_maximize_button().public static NkStyleButton nnode_minimize_button(long struct)
node_minimize_button().public static int nsym_minimize(long struct)
sym_minimize().public static int nsym_maximize(long struct)
sym_maximize().public static float nborder(long struct)
border().public static float nrounding(long struct)
rounding().public static float nindent(long struct)
indent().public static void nbackground(long struct,
NkStyleItem value)
background.public static void nborder_color(long struct,
NkColor value)
border_color.public static void ntab_maximize_button(long struct,
NkStyleButton value)
tab_maximize_button.public static void ntab_minimize_button(long struct,
NkStyleButton value)
tab_minimize_button.public static void nnode_maximize_button(long struct,
NkStyleButton value)
node_maximize_button.public static void nnode_minimize_button(long struct,
NkStyleButton value)
node_minimize_button.public static void nsym_minimize(long struct,
int value)
sym_minimize.public static void nsym_maximize(long struct,
int value)
sym_maximize.public static void nborder(long struct,
float value)
border.public static void nrounding(long struct,
float value)
rounding.public static void nindent(long struct,
float value)
indent.Copyright LWJGL. All Rights Reserved. License terms.