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.
-
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()Returns the value of thehfield.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()Returns the value of theslotfield.NkChartSlot.Bufferslots()Returns aNkChartSlot.Buffer view of theslotsfield.NkChartSlotslots(int index)Returns aNkChartSlotview of the struct at the specified index of theslotsfield.floatw()Returns the value of thewfield.floatx()Returns the value of thexfield.floaty()Returns the value of theyfield.
-
-
-
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 theslotfield.
-
x
public float x()
Returns the value of thexfield.
-
y
public float y()
Returns the value of theyfield.
-
w
public float w()
Returns the value of thewfield.
-
h
public float h()
Returns the value of thehfield.
-
slots
public NkChartSlot.Buffer slots()
Returns aNkChartSlot.Buffer view of theslotsfield.
-
slots
public NkChartSlot slots(int index)
Returns aNkChartSlotview 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.
-
-