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.Struct
Layout
struct nk_chart_slot { enum nk_chart_type type;
struct nk_color
color;struct nk_color
highlight; float min; float max; float range; int count;struct nk_vec2
last; int index; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkChartSlot.Buffer
An array ofNkChartSlot
structs.
-
Constructor Summary
Constructors Constructor Description NkChartSlot(java.nio.ByteBuffer container)
Creates aNkChartSlot
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NkColor
color()
Returns aNkColor
view of thecolor
field.int
count()
Returns the value of thecount
field.static NkChartSlot
create(long address)
Returns a newNkChartSlot
instance for the specified memory address.static NkChartSlot.Buffer
create(long address, int capacity)
Create aNkChartSlot.Buffer
instance at the specified memory.static NkChartSlot
createSafe(long address)
static NkChartSlot.Buffer
createSafe(long address, int capacity)
NkColor
highlight()
Returns aNkColor
view of thehighlight
field.int
index()
Returns the value of theindex
field.NkVec2
last()
Returns aNkVec2
view of thelast
field.float
max()
Returns the value of themax
field.float
min()
Returns the value of themin
field.static NkColor
ncolor(long struct)
Unsafe version ofcolor()
.static int
ncount(long struct)
Unsafe version ofcount()
.static NkColor
nhighlight(long struct)
Unsafe version ofhighlight()
.static int
nindex(long struct)
Unsafe version ofindex()
.static NkVec2
nlast(long struct)
Unsafe version oflast()
.static float
nmax(long struct)
Unsafe version ofmax()
.static float
nmin(long struct)
Unsafe version ofmin()
.static float
nrange(long struct)
Unsafe version ofrange()
.static int
ntype(long struct)
Unsafe version oftype()
.float
range()
Returns the value of therange
field.int
sizeof()
int
type()
Returns the value of thetype
field.
-
-
-
Constructor Detail
-
NkChartSlot
public NkChartSlot(java.nio.ByteBuffer container)
Creates aNkChartSlot
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
-
type
public int type()
Returns the value of thetype
field.
-
min
public float min()
Returns the value of themin
field.
-
max
public float max()
Returns the value of themax
field.
-
range
public float range()
Returns the value of therange
field.
-
count
public int count()
Returns the value of thecount
field.
-
index
public int index()
Returns the value of theindex
field.
-
create
public static NkChartSlot create(long address)
Returns a newNkChartSlot
instance 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.Buffer
instance 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()
.
-
-