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.StructLayout
struct nk_chart { int slot; float x; float y; float w; float h;struct nk_chart_slotslots[4]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkChart.BufferAn array ofNkChartstructs.
-
Constructor Summary
Constructors Constructor Description NkChart(java.nio.ByteBuffer container)Creates aNkChartinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NkChartcreate(long address)Returns a newNkChartinstance for the specified memory address.static NkChart.Buffercreate(long address, int capacity)Create aNkChart.Bufferinstance at the specified memory.static NkChartcreateSafe(long address)static NkChart.BuffercreateSafe(long address, int capacity)floath()static floatnh(long struct)Unsafe version ofh().static intnslot(long struct)Unsafe version ofslot().static NkChartSlot.Buffernslots(long struct)Unsafe version ofslots().static NkChartSlotnslots(long struct, int index)Unsafe version ofslots.static floatnw(long struct)Unsafe version ofw().static floatnx(long struct)Unsafe version ofx().static floatny(long struct)Unsafe version ofy().intsizeof()intslot()NkChartSlot.Bufferslots()NkChartSlotslots(int index)floatw()floatx()floaty()
-
-
-
Constructor Detail
-
NkChart
public NkChart(java.nio.ByteBuffer container)
Creates aNkChartinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
slot
public int slot()
- Returns:
- the value of the
slotfield.
-
x
public float x()
- Returns:
- the value of the
xfield.
-
y
public float y()
- Returns:
- the value of the
yfield.
-
w
public float w()
- Returns:
- the value of the
wfield.
-
h
public float h()
- Returns:
- the value of the
hfield.
-
slots
public NkChartSlot.Buffer slots()
- Returns:
- a
NkChartSlot.Buffer view of theslotsfield.
-
slots
public NkChartSlot slots(int index)
- Returns:
- a
NkChartSlotview of the struct at the specified index of theslotsfield.
-
create
public static NkChart create(long address)
Returns a newNkChartinstance 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.Bufferinstance 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.
-
-