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()Returns aNkColorview of thecolorfield.NkChartSlotcolor(java.util.function.Consumer<NkColor> consumer)Passes thecolorfield to the specifiedConsumer.intcount()Returns the value of thecountfield.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()Returns aNkColorview of thehighlightfield.NkChartSlothighlight(java.util.function.Consumer<NkColor> consumer)Passes thehighlightfield to the specifiedConsumer.intindex()Returns the value of theindexfield.NkVec2last()Returns aNkVec2view of thelastfield.NkChartSlotlast(java.util.function.Consumer<NkVec2> consumer)Passes thelastfield to the specifiedConsumer.floatmax()Returns the value of themaxfield.floatmin()Returns the value of theminfield.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()Returns the value of therangefield.intsizeof()inttype()Returns the value of thetypefield.
-
-
-
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 thetypefield.
-
color
public NkChartSlot color(java.util.function.Consumer<NkColor> consumer)
Passes thecolorfield to the specifiedConsumer.
-
highlight
public NkChartSlot highlight(java.util.function.Consumer<NkColor> consumer)
Passes thehighlightfield to the specifiedConsumer.
-
min
public float min()
Returns the value of theminfield.
-
max
public float max()
Returns the value of themaxfield.
-
range
public float range()
Returns the value of therangefield.
-
count
public int count()
Returns the value of thecountfield.
-
last
public NkChartSlot last(java.util.function.Consumer<NkVec2> consumer)
Passes thelastfield to the specifiedConsumer.
-
index
public int index()
Returns the value of theindexfield.
-
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().
-
-