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 ofNkRowLayout
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
columns()
Returns the value of thecolumns
field.float
filled()
Returns the value of thefilled
field.float
height()
Returns the value of theheight
field.int
index()
Returns the value of theindex
field.NkRect
item()
Returns aNkRect
view of theitem
field.float
item_height()
Returns the value of theitem_height
field.float
item_offset()
Returns the value of theitem_offset
field.float
item_width()
Returns the value of theitem_width
field.float
min_height()
Returns the value of themin_height
field.java.nio.FloatBuffer
ratio(int capacity)
Returns aFloatBuffer
view of the data pointed to by theratio
field.java.nio.FloatBuffer
templates()
Returns aFloatBuffer
view of thetemplates
field.float
templates(int index)
Returns the value at the specified index of thetemplates
field.int
tree_depth()
Returns the value of thetree_depth
field.int
type()
Returns the value of thetype
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newNkRowLayout.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 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 thetype
field.
-
index
public int index()
Returns the value of theindex
field.
-
height
public float height()
Returns the value of theheight
field.
-
min_height
public float min_height()
Returns the value of themin_height
field.
-
columns
public int columns()
Returns the value of thecolumns
field.
-
ratio
public java.nio.FloatBuffer ratio(int capacity)
Returns aFloatBuffer
view of the data pointed to by theratio
field.- Parameters:
capacity
- the number of elements in the returned buffer
-
item_width
public float item_width()
Returns the value of theitem_width
field.
-
item_height
public float item_height()
Returns the value of theitem_height
field.
-
item_offset
public float item_offset()
Returns the value of theitem_offset
field.
-
filled
public float filled()
Returns the value of thefilled
field.
-
tree_depth
public int tree_depth()
Returns the value of thetree_depth
field.
-
templates
public java.nio.FloatBuffer templates()
Returns aFloatBuffer
view of thetemplates
field.
-
templates
public float templates(int index)
Returns the value at the specified index of thetemplates
field.
-
-