Package org.lwjgl.nuklear
Class NkChartSlot.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkChartSlot,NkChartSlot.Buffer>
-
- org.lwjgl.nuklear.NkChartSlot.Buffer
-
- All Implemented Interfaces:
java.lang.Iterable<NkChartSlot>,org.lwjgl.system.Pointer
- Enclosing class:
- NkChartSlot
public static class NkChartSlot.Buffer extends org.lwjgl.system.StructBuffer<NkChartSlot,NkChartSlot.Buffer>
An array ofNkChartSlotstructs.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkChartSlot.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NkColorcolor()Returns aNkColorview of thecolorfield.NkChartSlot.Buffercolor(java.util.function.Consumer<NkColor> consumer)Passes thecolorfield to the specifiedConsumer.intcount()Returns the value of thecountfield.NkColorhighlight()Returns aNkColorview of thehighlightfield.NkChartSlot.Bufferhighlight(java.util.function.Consumer<NkColor> consumer)Passes thehighlightfield to the specifiedConsumer.intindex()Returns the value of theindexfield.NkVec2last()Returns aNkVec2view of thelastfield.NkChartSlot.Bufferlast(java.util.function.Consumer<NkVec2> consumer)Passes thelastfield to the specifiedConsumer.floatmax()Returns the value of themaxfield.floatmin()Returns the value of theminfield.floatrange()Returns the value of therangefield.inttype()Returns the value of thetypefield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkChartSlot.Bufferinstance 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 byNkChartSlot.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
type
public int type()
Returns the value of thetypefield.
-
color
public NkChartSlot.Buffer color(java.util.function.Consumer<NkColor> consumer)
Passes thecolorfield to the specifiedConsumer.
-
highlight
public NkChartSlot.Buffer 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.Buffer last(java.util.function.Consumer<NkVec2> consumer)
Passes thelastfield to the specifiedConsumer.
-
index
public int index()
Returns the value of theindexfield.
-
-