public class NkChartSlot
extends org.lwjgl.system.Struct
struct nk_chart_slot {
enum nk_chart_type type;
struct nk_color color;
struct nk_color highlight;
float min;
float max;
float range;
int count;
struct nk_vec2 last;
int index;
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkChartSlot.Buffer
An array of
NkChartSlot structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COLOR
The struct member offsets.
|
static int |
COUNT
The struct member offsets.
|
static int |
HIGHLIGHT
The struct member offsets.
|
static int |
INDEX
The struct member offsets.
|
static int |
LAST
The struct member offsets.
|
static int |
MAX
The struct member offsets.
|
static int |
MIN
The struct member offsets.
|
static int |
RANGE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TYPE
The struct member offsets.
|
| Constructor and Description |
|---|
NkChartSlot(java.nio.ByteBuffer container)
Creates a
NkChartSlot instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
NkColor |
color()
Returns a
NkColor view of the color field. |
int |
count()
Returns the value of the
count field. |
static NkChartSlot |
create(long address)
Returns a new
NkChartSlot instance for the specified memory address. |
static NkChartSlot.Buffer |
create(long address,
int capacity)
Create a
NkChartSlot.Buffer instance at the specified memory. |
static NkChartSlot |
createSafe(long address)
|
static NkChartSlot.Buffer |
createSafe(long address,
int capacity)
|
NkColor |
highlight()
Returns a
NkColor view of the highlight field. |
int |
index()
Returns the value of the
index field. |
NkVec2 |
last()
Returns a
NkVec2 view of the last field. |
float |
max()
Returns the value of the
max field. |
float |
min()
Returns the value of the
min field. |
static NkColor |
ncolor(long struct)
Unsafe version of
color(). |
static int |
ncount(long struct)
Unsafe version of
count(). |
static NkColor |
nhighlight(long struct)
Unsafe version of
highlight(). |
static int |
nindex(long struct)
Unsafe version of
index(). |
static NkVec2 |
nlast(long struct)
Unsafe version of
last(). |
static float |
nmax(long struct)
Unsafe version of
max(). |
static float |
nmin(long struct)
Unsafe version of
min(). |
static float |
nrange(long struct)
Unsafe version of
range(). |
static int |
ntype(long struct)
Unsafe version of
type(). |
float |
range()
Returns the value of the
range field. |
int |
sizeof() |
int |
type()
Returns the value of the
type field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TYPE
public static final int COLOR
public static final int HIGHLIGHT
public static final int MIN
public static final int MAX
public static final int RANGE
public static final int COUNT
public static final int LAST
public static final int INDEX
public NkChartSlot(java.nio.ByteBuffer container)
NkChartSlot 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 int type()
type field.public float min()
min field.public float max()
max field.public float range()
range field.public int count()
count field.public int index()
index field.public static NkChartSlot create(long address)
NkChartSlot instance for the specified memory address.@Nullable public static NkChartSlot createSafe(long address)
public static NkChartSlot.Buffer create(long address, int capacity)
NkChartSlot.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkChartSlot.Buffer createSafe(long address, int capacity)
public static int ntype(long struct)
type().public static NkColor nhighlight(long struct)
highlight().public static float nmin(long struct)
min().public static float nmax(long struct)
max().public static float nrange(long struct)
range().public static int ncount(long struct)
count().public static int nindex(long struct)
index().Copyright LWJGL. All Rights Reserved. License terms.