Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkChartSlot

extends Struct<NkChartSlot>
Class Inheritance
Annotations
@NativeType:struct nk_chart_slot
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

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 and Inner Type Summary

Modifier and TypeClass and Description
public static class
NkChartSlot.Buffer

An array of NkChartSlot structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
COLOR

The struct member offsets.

public static final int
COUNT

The struct member offsets.

public static final int
HIGHLIGHT

The struct member offsets.

public static final int
INDEX

The struct member offsets.

public static final int
LAST

The struct member offsets.

public static final int
MAX

The struct member offsets.

public static final int
MIN

The struct member offsets.

public static final int
RANGE

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
NkChartSlot(long address, ByteBuffer container)

public
NkChartSlot(ByteBuffer container)

Creates a NkChartSlot instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public NkColor

Returns:

a NkColor view of the color field.
color
()

public int

Returns:

the value of the count field.
count
()

protected NkChartSlot
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static NkChartSlot
create(long address)

Returns a new NkChartSlot instance for the specified memory address.

public static NkChartSlot.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a NkChartSlot.Buffer instance at the specified memory.

public static NkChartSlot
createSafe(long address)

Like create, but returns null if address is NULL.

public static NkChartSlot.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public NkColor

Returns:

a NkColor view of the highlight field.
highlight
()

public int

Returns:

the value of the index field.
index
()

public NkVec2

Returns:

a NkVec2 view of the last field.
last
()

public float

Returns:

the value of the max field.
max
()

public float

Returns:

the value of the min field.
min
()

public static NkColor
ncolor(long struct)

Unsafe version of color.

public static int
ncount(long struct)

Unsafe version of count.

public static NkColor
nhighlight(long struct)

Unsafe version of highlight.

public static int
nindex(long struct)

Unsafe version of index.

public static NkVec2
nlast(long struct)

Unsafe version of last.

public static float
nmax(long struct)

Unsafe version of max.

public static float
nmin(long struct)

Unsafe version of min.

public static float
nrange(long struct)

Unsafe version of range.

public static int
ntype(long struct)

Unsafe version of type.

public float

Returns:

the value of the range field.
range
()

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int

Returns:

the value of the type field.
type
()

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

COLORback to summary
public static final int COLOR

The struct member offsets.

COUNTback to summary
public static final int COUNT

The struct member offsets.

HIGHLIGHTback to summary
public static final int HIGHLIGHT

The struct member offsets.

INDEXback to summary
public static final int INDEX

The struct member offsets.

LASTback to summary
public static final int LAST

The struct member offsets.

MAXback to summary
public static final int MAX

The struct member offsets.

MINback to summary
public static final int MIN

The struct member offsets.

RANGEback to summary
public static final int RANGE

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

TYPEback to summary
public static final int TYPE

The struct member offsets.

Constructor Detail

NkChartSlotback to summary
protected NkChartSlot(long address, ByteBuffer container)
NkChartSlotback to summary
public NkChartSlot(ByteBuffer container)

Creates a NkChartSlot instance at the current position of the specified ByteBuffer 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

colorback to summary
public NkColor color()
Returns:NkColor

a NkColor view of the color field.

Annotations
@NativeType:struct nk_color
countback to summary
public int count()
Returns:int

the value of the count field.

createback to summary
protected NkChartSlot create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static NkChartSlot create(long address)

Returns a new NkChartSlot instance for the specified memory address.

createback to summary
public static NkChartSlot.Buffer create(long address, int capacity)

Create a NkChartSlot.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static NkChartSlot createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static NkChartSlot.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
highlightback to summary
public NkColor highlight()
Returns:NkColor

a NkColor view of the highlight field.

Annotations
@NativeType:struct nk_color
indexback to summary
public int index()
Returns:int

the value of the index field.

lastback to summary
public NkVec2 last()
Returns:NkVec2

a NkVec2 view of the last field.

Annotations
@NativeType:struct nk_vec2
maxback to summary
public float max()
Returns:float

the value of the max field.

minback to summary
public float min()
Returns:float

the value of the min field.

ncolorback to summary
public static NkColor ncolor(long struct)

Unsafe version of color.

ncountback to summary
public static int ncount(long struct)

Unsafe version of count.

nhighlightback to summary
public static NkColor nhighlight(long struct)

Unsafe version of highlight.

nindexback to summary
public static int nindex(long struct)

Unsafe version of index.

nlastback to summary
public static NkVec2 nlast(long struct)

Unsafe version of last.

nmaxback to summary
public static float nmax(long struct)

Unsafe version of max.

nminback to summary
public static float nmin(long struct)

Unsafe version of min.

nrangeback to summary
public static float nrange(long struct)

Unsafe version of range.

ntypeback to summary
public static int ntype(long struct)

Unsafe version of type.

rangeback to summary
public float range()
Returns:float

the value of the range field.

sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
typeback to summary
public int type()
Returns:int

the value of the type field.

Annotations
@NativeType:enum nk_chart_type
org.lwjgl.nuklear back to summary

public Class NkChartSlot.Buffer

extends StructBuffer<NkChartSlot, NkChartSlot.Buffer>
Class Inheritance

An array of NkChartSlot structs.

Field Summary

Modifier and TypeField and Description
private static final NkChartSlot

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new NkChartSlot.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public NkColor

Returns:

a NkColor view of the color field.
color
()

public int

Returns:

the value of the count field.
count
()

protected NkChartSlot
public NkColor

Returns:

a NkColor view of the highlight field.
highlight
()

public int

Returns:

the value of the index field.
index
()

public NkVec2

Returns:

a NkVec2 view of the last field.
last
()

public float

Returns:

the value of the max field.
max
()

public float

Returns:

the value of the min field.
min
()

public float

Returns:

the value of the range field.
range
()

protected NkChartSlot.Buffer
public int

Returns:

the value of the type field.
type
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final NkChartSlot ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new NkChartSlot.Buffer instance backed by the specified container.

Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by NkChartSlot#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

colorback to summary
public NkColor color()
Returns:NkColor

a NkColor view of the color field.

Annotations
@NativeType:struct nk_color
countback to summary
public int count()
Returns:int

the value of the count field.

getElementFactoryback to summary
protected NkChartSlot getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
highlightback to summary
public NkColor highlight()
Returns:NkColor

a NkColor view of the highlight field.

Annotations
@NativeType:struct nk_color
indexback to summary
public int index()
Returns:int

the value of the index field.

lastback to summary
public NkVec2 last()
Returns:NkVec2

a NkVec2 view of the last field.

Annotations
@NativeType:struct nk_vec2
maxback to summary
public float max()
Returns:float

the value of the max field.

minback to summary
public float min()
Returns:float

the value of the min field.

rangeback to summary
public float range()
Returns:float

the value of the range field.

selfback to summary
protected NkChartSlot.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
typeback to summary
public int type()
Returns:int

the value of the type field.

Annotations
@NativeType:enum nk_chart_type