Package org.lwjgl.nuklear
Class NkChartSlot
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkChartSlot
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkChartSlot extends org.lwjgl.system.StructLayout
struct nk_chart_slot { enum nk_chart_type type;struct nk_colorcolor;struct nk_colorhighlight; float min; float max; float range; int count;struct nk_vec2last; int index; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNkChartSlot.BufferAn array ofNkChartSlotstructs.
-
Constructor Summary
Constructors Constructor Description NkChartSlot(java.nio.ByteBuffer container)Creates aNkChartSlotinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkColorcolor()intcount()static NkChartSlotcreate(long address)Returns a newNkChartSlotinstance for the specified memory address.static NkChartSlot.Buffercreate(long address, int capacity)Create aNkChartSlot.Bufferinstance at the specified memory.static NkChartSlotcreateSafe(long address)static NkChartSlot.BuffercreateSafe(long address, int capacity)NkColorhighlight()intindex()NkVec2last()floatmax()floatmin()static NkColorncolor(long struct)Unsafe version ofcolor().static intncount(long struct)Unsafe version ofcount().static NkColornhighlight(long struct)Unsafe version ofhighlight().static intnindex(long struct)Unsafe version ofindex().static NkVec2nlast(long struct)Unsafe version oflast().static floatnmax(long struct)Unsafe version ofmax().static floatnmin(long struct)Unsafe version ofmin().static floatnrange(long struct)Unsafe version ofrange().static intntype(long struct)Unsafe version oftype().floatrange()intsizeof()inttype()
-
-
-
Constructor Detail
-
NkChartSlot
public NkChartSlot(java.nio.ByteBuffer container)
Creates aNkChartSlotinstance 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
-
type
public int type()
- Returns:
- the value of the
typefield.
-
min
public float min()
- Returns:
- the value of the
minfield.
-
max
public float max()
- Returns:
- the value of the
maxfield.
-
range
public float range()
- Returns:
- the value of the
rangefield.
-
count
public int count()
- Returns:
- the value of the
countfield.
-
index
public int index()
- Returns:
- the value of the
indexfield.
-
create
public static NkChartSlot create(long address)
Returns a newNkChartSlotinstance for the specified memory address.
-
createSafe
@Nullable public static NkChartSlot createSafe(long address)
-
create
public static NkChartSlot.Buffer create(long address, int capacity)
Create aNkChartSlot.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static NkChartSlot.Buffer createSafe(long address, int capacity)
-
ntype
public static int ntype(long struct)
Unsafe version oftype().
-
nhighlight
public static NkColor nhighlight(long struct)
Unsafe version ofhighlight().
-
nmin
public static float nmin(long struct)
Unsafe version ofmin().
-
nmax
public static float nmax(long struct)
Unsafe version ofmax().
-
nrange
public static float nrange(long struct)
Unsafe version ofrange().
-
ncount
public static int ncount(long struct)
Unsafe version ofcount().
-
nindex
public static int nindex(long struct)
Unsafe version ofindex().
-
-