public static class NkRowLayout.Buffer extends org.lwjgl.system.StructBuffer<NkRowLayout,NkRowLayout.Buffer>
NkRowLayout structs.| Constructor and Description |
|---|
Buffer(java.nio.ByteBuffer container)
Creates a new
NkRowLayout.Buffer instance backed by the specified container. |
Buffer(long address,
int cap) |
| Modifier and Type | Method and Description |
|---|---|
int |
columns()
Returns the value of the
columns field. |
float |
filled()
Returns the value of the
filled field. |
float |
height()
Returns the value of the
height field. |
int |
index()
Returns the value of the
index field. |
float |
item_height()
Returns the value of the
item_height field. |
float |
item_offset()
Returns the value of the
item_offset field. |
float |
item_width()
Returns the value of the
item_width field. |
NkRect |
item()
Returns a
NkRect view of the item field. |
float |
min_height()
Returns the value of the
min_height field. |
java.nio.FloatBuffer |
ratio(int capacity)
Returns a
FloatBuffer view of the data pointed to by the ratio field. |
java.nio.FloatBuffer |
templates()
Returns a
FloatBuffer view of the templates field. |
float |
templates(int index)
Returns the value at the specified index of the
templates field. |
int |
tree_depth()
Returns the value of the
tree_depth field. |
int |
type()
Returns the value of the
type field. |
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streampublic Buffer(java.nio.ByteBuffer container)
NkRowLayout.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 NkRowLayout.SIZEOF, and its mark will be undefined.
The created buffer instance holds a strong reference to the container object.
public Buffer(long address,
int cap)
public int type()
type field.public int index()
index field.public float height()
height field.public float min_height()
min_height field.public int columns()
columns field.public java.nio.FloatBuffer ratio(int capacity)
FloatBuffer view of the data pointed to by the ratio field.capacity - the number of elements in the returned bufferpublic float item_width()
item_width field.public float item_height()
item_height field.public float item_offset()
item_offset field.public float filled()
filled field.public int tree_depth()
tree_depth field.public java.nio.FloatBuffer templates()
FloatBuffer view of the templates field.public float templates(int index)
templates field.Copyright LWJGL. All Rights Reserved. License terms.