public class NkChart
extends org.lwjgl.system.Struct
struct nk_chart {
int slot;
float x;
float y;
float w;
float h;
struct nk_chart_slot slots[4];
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkChart.Buffer
An array of
NkChart structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
H
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SLOT
The struct member offsets.
|
static int |
SLOTS
The struct member offsets.
|
static int |
W
The struct member offsets.
|
static int |
X
The struct member offsets.
|
static int |
Y
The struct member offsets.
|
| Constructor and Description |
|---|
NkChart(java.nio.ByteBuffer container)
Creates a
NkChart instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static NkChart |
create(long address)
Returns a new
NkChart instance for the specified memory address. |
static NkChart.Buffer |
create(long address,
int capacity)
Create a
NkChart.Buffer instance at the specified memory. |
static NkChart |
createSafe(long address)
|
static NkChart.Buffer |
createSafe(long address,
int capacity)
|
float |
h()
Returns the value of the
h field. |
static float |
nh(long struct)
Unsafe version of
h(). |
static int |
nslot(long struct)
Unsafe version of
slot(). |
static NkChartSlot.Buffer |
nslots(long struct)
Unsafe version of
slots(). |
static NkChartSlot |
nslots(long struct,
int index)
Unsafe version of
slots. |
static float |
nw(long struct)
Unsafe version of
w(). |
static float |
nx(long struct)
Unsafe version of
x(). |
static float |
ny(long struct)
Unsafe version of
y(). |
int |
sizeof() |
int |
slot()
Returns the value of the
slot field. |
NkChartSlot.Buffer |
slots()
Returns a
NkChartSlot.Buffer view of the slots field. |
NkChartSlot |
slots(int index)
Returns a
NkChartSlot view of the struct at the specified index of the slots field. |
float |
w()
Returns the value of the
w field. |
float |
x()
Returns the value of the
x field. |
float |
y()
Returns the value of the
y field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SLOT
public static final int X
public static final int Y
public static final int W
public static final int H
public static final int SLOTS
public NkChart(java.nio.ByteBuffer container)
NkChart 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 slot()
slot field.public float x()
x field.public float y()
y field.public float w()
w field.public float h()
h field.public NkChartSlot.Buffer slots()
NkChartSlot.Buffer view of the slots field.public NkChartSlot slots(int index)
NkChartSlot view of the struct at the specified index of the slots field.public static NkChart create(long address)
NkChart instance for the specified memory address.@Nullable public static NkChart createSafe(long address)
public static NkChart.Buffer create(long address, int capacity)
NkChart.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkChart.Buffer createSafe(long address, int capacity)
public static int nslot(long struct)
slot().public static float nx(long struct)
x().public static float ny(long struct)
y().public static float nw(long struct)
w().public static float nh(long struct)
h().public static NkChartSlot.Buffer nslots(long struct)
slots().public static NkChartSlot nslots(long struct, int index)
slots.Copyright LWJGL. All Rights Reserved. License terms.