Package org.lwjgl.nuklear
Class NkChart
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkChart
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkChart extends org.lwjgl.system.Struct
Layout
struct nk_chart { int slot; float x; float y; float w; float h;
struct nk_chart_slot
slots[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkChart.Buffer
An array ofNkChart
structs.
-
Constructor Summary
Constructors Constructor Description NkChart(java.nio.ByteBuffer container)
Creates aNkChart
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NkChart
create(long address)
Returns a newNkChart
instance for the specified memory address.static NkChart.Buffer
create(long address, int capacity)
Create aNkChart.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 theh
field.static float
nh(long struct)
Unsafe version ofh()
.static int
nslot(long struct)
Unsafe version ofslot()
.static NkChartSlot.Buffer
nslots(long struct)
Unsafe version ofslots()
.static NkChartSlot
nslots(long struct, int index)
Unsafe version ofslots
.static float
nw(long struct)
Unsafe version ofw()
.static float
nx(long struct)
Unsafe version ofx()
.static float
ny(long struct)
Unsafe version ofy()
.int
sizeof()
int
slot()
Returns the value of theslot
field.NkChartSlot.Buffer
slots()
Returns aNkChartSlot
.Buffer view of theslots
field.NkChartSlot
slots(int index)
Returns aNkChartSlot
view of the struct at the specified index of theslots
field.float
w()
Returns the value of thew
field.float
x()
Returns the value of thex
field.float
y()
Returns the value of they
field.
-
-
-
Constructor Detail
-
NkChart
public NkChart(java.nio.ByteBuffer container)
Creates aNkChart
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
slot
public int slot()
Returns the value of theslot
field.
-
x
public float x()
Returns the value of thex
field.
-
y
public float y()
Returns the value of they
field.
-
w
public float w()
Returns the value of thew
field.
-
h
public float h()
Returns the value of theh
field.
-
slots
public NkChartSlot.Buffer slots()
Returns aNkChartSlot
.Buffer view of theslots
field.
-
slots
public NkChartSlot slots(int index)
Returns aNkChartSlot
view of the struct at the specified index of theslots
field.
-
create
public static NkChart create(long address)
Returns a newNkChart
instance for the specified memory address.
-
createSafe
@Nullable public static NkChart createSafe(long address)
-
create
public static NkChart.Buffer create(long address, int capacity)
Create aNkChart.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkChart.Buffer createSafe(long address, int capacity)
-
nslot
public static int nslot(long struct)
Unsafe version ofslot()
.
-
nx
public static float nx(long struct)
Unsafe version ofx()
.
-
ny
public static float ny(long struct)
Unsafe version ofy()
.
-
nw
public static float nw(long struct)
Unsafe version ofw()
.
-
nh
public static float nh(long struct)
Unsafe version ofh()
.
-
nslots
public static NkChartSlot.Buffer nslots(long struct)
Unsafe version ofslots()
.
-
nslots
public static NkChartSlot nslots(long struct, int index)
Unsafe version ofslots
.
-
-