Package org.lwjgl.nuklear
Class NkChartSlot
- All Implemented Interfaces:
Pointer
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/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionNkChartSlot
(ByteBuffer container) Creates aNkChartSlot
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptioncolor()
int
count()
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) int
index()
last()
float
max()
float
min()
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()
int
sizeof()
Returnssizeof(struct)
.int
type()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
COLOR
public static final int COLORThe struct member offsets. -
HIGHLIGHT
public static final int HIGHLIGHTThe struct member offsets. -
MIN
public static final int MINThe struct member offsets. -
MAX
public static final int MAXThe struct member offsets. -
RANGE
public static final int RANGEThe struct member offsets. -
COUNT
public static final int COUNTThe struct member offsets. -
LAST
public static final int LASTThe struct member offsets. -
INDEX
public static final int INDEXThe struct member offsets.
-
-
Constructor Details
-
NkChartSlot
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkChartSlot>
-
type
public int type()- Returns:
- the value of the
type
field.
-
color
- Returns:
- a
NkColor
view of thecolor
field.
-
highlight
- Returns:
- a
NkColor
view of thehighlight
field.
-
min
public float min()- Returns:
- the value of the
min
field.
-
max
public float max()- Returns:
- the value of the
max
field.
-
range
public float range()- Returns:
- the value of the
range
field.
-
count
public int count()- Returns:
- the value of the
count
field.
-
last
- Returns:
- a
NkVec2
view of thelast
field.
-
index
public int index()- Returns:
- the value of the
index
field.
-
create
Returns a newNkChartSlot
instance for the specified memory address. -
createSafe
-
create
Create aNkChartSlot.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
ntype
public static int ntype(long struct) Unsafe version oftype()
. -
ncolor
Unsafe version ofcolor()
. -
nhighlight
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()
. -
nlast
Unsafe version oflast()
. -
nindex
public static int nindex(long struct) Unsafe version ofindex()
.
-