Package org.lwjgl.nuklear
Class NkRowLayout.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<NkRowLayout,NkRowLayout.Buffer>
-
- org.lwjgl.nuklear.NkRowLayout.Buffer
-
- All Implemented Interfaces:
java.lang.Iterable<NkRowLayout>,org.lwjgl.system.Pointer
- Enclosing class:
- NkRowLayout
public static class NkRowLayout.Buffer extends org.lwjgl.system.StructBuffer<NkRowLayout,NkRowLayout.Buffer>
An array ofNkRowLayoutstructs.
-
-
Constructor Summary
Constructors Constructor Description Buffer(long address, int cap)Buffer(java.nio.ByteBuffer container)Creates a newNkRowLayout.Bufferinstance backed by the specified container.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcolumns()Returns the value of thecolumnsfield.floatfilled()Returns the value of thefilledfield.floatheight()Returns the value of theheightfield.intindex()Returns the value of theindexfield.NkRectitem()Returns aNkRectview of theitemfield.NkRowLayout.Bufferitem(java.util.function.Consumer<NkRect> consumer)Passes theitemfield to the specifiedConsumer.floatitem_height()Returns the value of theitem_heightfield.floatitem_offset()Returns the value of theitem_offsetfield.floatitem_width()Returns the value of theitem_widthfield.floatmin_height()Returns the value of themin_heightfield.java.nio.FloatBufferratio(int capacity)Returns aFloatBufferview of the data pointed to by theratiofield.java.nio.FloatBuffertemplates()Returns aFloatBufferview of thetemplatesfield.floattemplates(int index)Returns the value at the specified index of thetemplatesfield.inttree_depth()Returns the value of thetree_depthfield.inttype()Returns the value of thetypefield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkRowLayout.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 byNkRowLayout.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.
-
index
public int index()
Returns the value of theindexfield.
-
height
public float height()
Returns the value of theheightfield.
-
min_height
public float min_height()
Returns the value of themin_heightfield.
-
columns
public int columns()
Returns the value of thecolumnsfield.
-
ratio
public java.nio.FloatBuffer ratio(int capacity)
Returns aFloatBufferview of the data pointed to by theratiofield.- Parameters:
capacity- the number of elements in the returned buffer
-
item_width
public float item_width()
Returns the value of theitem_widthfield.
-
item_height
public float item_height()
Returns the value of theitem_heightfield.
-
item_offset
public float item_offset()
Returns the value of theitem_offsetfield.
-
filled
public float filled()
Returns the value of thefilledfield.
-
item
public NkRowLayout.Buffer item(java.util.function.Consumer<NkRect> consumer)
Passes theitemfield to the specifiedConsumer.
-
tree_depth
public int tree_depth()
Returns the value of thetree_depthfield.
-
templates
public java.nio.FloatBuffer templates()
Returns aFloatBufferview of thetemplatesfield.
-
templates
public float templates(int index)
Returns the value at the specified index of thetemplatesfield.
-
-