Package org.lwjgl.nuklear
Class NkChartSlot
- All Implemented Interfaces:
Pointer
struct nk_chart_slot {
enum nk_chart_type type;
{@link NkColor struct nk_color} color;
{@link NkColor struct nk_color} highlight;
float min;
float max;
float range;
int count;
{@link NkVec2 struct nk_vec2} last;
int index;
nk_bool show_markers;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNkChartSlot(ByteBuffer container) Creates aNkChartSlotinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncolor()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 @Nullable NkChartSlotcreateSafe(long address) static @Nullable NkChartSlot.BuffercreateSafe(long address, int capacity) intindex()last()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 booleannshow_markers(long struct) Unsafe version ofshow_markers().static intntype(long struct) Unsafe version oftype().floatrange()booleanintsizeof()Returnssizeof(struct).inttype()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. -
SHOW_MARKERS
public static final int SHOW_MARKERSThe struct member offsets.
-
-
Constructor Details
-
NkChartSlot
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<NkChartSlot>
-
type
public int type()- Returns:
- the value of the
typefield.
-
color
- Returns:
- a
NkColorview of thecolorfield.
-
highlight
- Returns:
- a
NkColorview of thehighlightfield.
-
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.
-
last
- Returns:
- a
NkVec2view of thelastfield.
-
index
public int index()- Returns:
- the value of the
indexfield.
-
show_markers
public boolean show_markers()- Returns:
- the value of the
show_markersfield.
-
create
Returns a newNkChartSlotinstance for the specified memory address. -
createSafe
-
create
Create aNkChartSlot.Bufferinstance 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(). -
nshow_markers
public static boolean nshow_markers(long struct) Unsafe version ofshow_markers().
-