public class NkStyleChart
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct nk_style_chart {
struct nk_style_item background;
struct nk_color border_color;
struct nk_color selected_color;
struct nk_color color;
float border;
float rounding;
struct nk_vec2 padding;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkStyleChart.Buffer
An array of
NkStyleChart 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 |
COLOR
The struct member offsets.
|
static int |
PADDING
The struct member offsets.
|
static int |
ROUNDING
The struct member offsets.
|
static int |
SELECTED_COLOR
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
NkStyleChart(java.nio.ByteBuffer container)
Creates a
NkStyleChart 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. |
NkStyleChart |
background(java.util.function.Consumer<NkStyleItem> consumer)
Passes the
background field to the specified Consumer. |
NkStyleChart |
background(NkStyleItem value)
Copies the specified
NkStyleItem to the background field. |
NkColor |
border_color()
Returns a
NkColor view of the border_color field. |
NkStyleChart |
border_color(java.util.function.Consumer<NkColor> consumer)
Passes the
border_color field to the specified Consumer. |
NkStyleChart |
border_color(NkColor value)
Copies the specified
NkColor to the border_color field. |
float |
border()
Returns the value of the
border field. |
NkStyleChart |
border(float value)
Sets the specified value to the
border field. |
static NkStyleChart |
calloc()
Returns a new
NkStyleChart instance allocated with memCalloc. |
static NkStyleChart.Buffer |
calloc(int capacity)
Returns a new
NkStyleChart.Buffer instance allocated with memCalloc. |
static NkStyleChart |
callocStack()
Returns a new
NkStyleChart instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyleChart.Buffer |
callocStack(int capacity)
Returns a new
NkStyleChart.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static NkStyleChart.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleChart.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static NkStyleChart |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleChart instance allocated on the specified MemoryStack and initializes all its bits to zero. |
NkColor |
color()
Returns a
NkColor view of the color field. |
NkStyleChart |
color(java.util.function.Consumer<NkColor> consumer)
Passes the
color field to the specified Consumer. |
NkStyleChart |
color(NkColor value)
Copies the specified
NkColor to the color field. |
static NkStyleChart |
create()
Returns a new
NkStyleChart instance allocated with BufferUtils. |
static NkStyleChart.Buffer |
create(int capacity)
Returns a new
NkStyleChart.Buffer instance allocated with BufferUtils. |
static NkStyleChart |
create(long address)
Returns a new
NkStyleChart instance for the specified memory address. |
static NkStyleChart.Buffer |
create(long address,
int capacity)
Create a
NkStyleChart.Buffer instance at the specified memory. |
static NkStyleChart |
createSafe(long address)
|
static NkStyleChart.Buffer |
createSafe(long address,
int capacity)
|
static NkStyleChart |
malloc()
Returns a new
NkStyleChart instance allocated with memAlloc. |
static NkStyleChart.Buffer |
malloc(int capacity)
Returns a new
NkStyleChart.Buffer instance allocated with memAlloc. |
static NkStyleChart |
mallocStack()
Returns a new
NkStyleChart instance allocated on the thread-local MemoryStack. |
static NkStyleChart.Buffer |
mallocStack(int capacity)
Returns a new
NkStyleChart.Buffer instance allocated on the thread-local MemoryStack. |
static NkStyleChart.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleChart.Buffer instance allocated on the specified MemoryStack. |
static NkStyleChart |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
NkStyleChart 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 NkColor |
ncolor(long struct)
Unsafe version of
color(). |
static void |
ncolor(long struct,
NkColor value)
Unsafe version of
color. |
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 NkColor |
nselected_color(long struct)
Unsafe version of
selected_color(). |
static void |
nselected_color(long struct,
NkColor value)
Unsafe version of
selected_color. |
NkVec2 |
padding()
Returns a
NkVec2 view of the padding field. |
NkStyleChart |
padding(java.util.function.Consumer<NkVec2> consumer)
Passes the
padding field to the specified Consumer. |
NkStyleChart |
padding(NkVec2 value)
Copies the specified
NkVec2 to the padding field. |
float |
rounding()
Returns the value of the
rounding field. |
NkStyleChart |
rounding(float value)
Sets the specified value to the
rounding field. |
NkColor |
selected_color()
Returns a
NkColor view of the selected_color field. |
NkStyleChart |
selected_color(java.util.function.Consumer<NkColor> consumer)
Passes the
selected_color field to the specified Consumer. |
NkStyleChart |
selected_color(NkColor value)
Copies the specified
NkColor to the selected_color field. |
NkStyleChart |
set(NkStyleChart src)
Copies the specified struct data to this struct.
|
NkStyleChart |
set(NkStyleItem background,
NkColor border_color,
NkColor selected_color,
NkColor color,
float border,
float rounding,
NkVec2 padding)
Initializes this struct with the specified values.
|
int |
sizeof() |
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 SELECTED_COLOR
public static final int COLOR
public static final int BORDER
public static final int ROUNDING
public static final int PADDING
public NkStyleChart(java.nio.ByteBuffer container)
NkStyleChart 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 float border()
border field.public float rounding()
rounding field.public NkStyleChart background(NkStyleItem value)
NkStyleItem to the background field.public NkStyleChart background(java.util.function.Consumer<NkStyleItem> consumer)
background field to the specified Consumer.public NkStyleChart border_color(NkColor value)
NkColor to the border_color field.public NkStyleChart border_color(java.util.function.Consumer<NkColor> consumer)
border_color field to the specified Consumer.public NkStyleChart selected_color(NkColor value)
NkColor to the selected_color field.public NkStyleChart selected_color(java.util.function.Consumer<NkColor> consumer)
selected_color field to the specified Consumer.public NkStyleChart color(NkColor value)
NkColor to the color field.public NkStyleChart color(java.util.function.Consumer<NkColor> consumer)
color field to the specified Consumer.public NkStyleChart border(float value)
border field.public NkStyleChart rounding(float value)
rounding field.public NkStyleChart padding(NkVec2 value)
NkVec2 to the padding field.public NkStyleChart padding(java.util.function.Consumer<NkVec2> consumer)
padding field to the specified Consumer.public NkStyleChart set(NkStyleItem background, NkColor border_color, NkColor selected_color, NkColor color, float border, float rounding, NkVec2 padding)
public NkStyleChart set(NkStyleChart src)
src - the source structpublic static NkStyleChart malloc()
NkStyleChart instance allocated with memAlloc. The instance must be explicitly freed.public static NkStyleChart calloc()
NkStyleChart instance allocated with memCalloc. The instance must be explicitly freed.public static NkStyleChart create()
NkStyleChart instance allocated with BufferUtils.public static NkStyleChart create(long address)
NkStyleChart instance for the specified memory address.@Nullable public static NkStyleChart createSafe(long address)
public static NkStyleChart.Buffer malloc(int capacity)
NkStyleChart.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyleChart.Buffer calloc(int capacity)
NkStyleChart.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static NkStyleChart.Buffer create(int capacity)
NkStyleChart.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static NkStyleChart.Buffer create(long address, int capacity)
NkStyleChart.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkStyleChart.Buffer createSafe(long address, int capacity)
public static NkStyleChart mallocStack()
NkStyleChart instance allocated on the thread-local MemoryStack.public static NkStyleChart callocStack()
NkStyleChart instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static NkStyleChart mallocStack(org.lwjgl.system.MemoryStack stack)
NkStyleChart instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static NkStyleChart callocStack(org.lwjgl.system.MemoryStack stack)
NkStyleChart instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static NkStyleChart.Buffer mallocStack(int capacity)
NkStyleChart.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static NkStyleChart.Buffer callocStack(int capacity)
NkStyleChart.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static NkStyleChart.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyleChart.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static NkStyleChart.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
NkStyleChart.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 NkColor nselected_color(long struct)
selected_color().public static float nborder(long struct)
border().public static float nrounding(long struct)
rounding().public static void nbackground(long struct,
NkStyleItem value)
background.public static void nborder_color(long struct,
NkColor value)
border_color.public static void nselected_color(long struct,
NkColor value)
selected_color.public static void nborder(long struct,
float value)
border.public static void nrounding(long struct,
float value)
rounding.Copyright LWJGL. All Rights Reserved. License terms.