Package org.lwjgl.nuklear
Class NkRowLayout
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.nuklear.NkRowLayout
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class NkRowLayout extends org.lwjgl.system.Struct
Member documentation
type
– one of:LAYOUT_DYNAMIC_FIXED
LAYOUT_DYNAMIC_ROW
LAYOUT_DYNAMIC_FREE
LAYOUT_DYNAMIC
LAYOUT_STATIC_FIXED
LAYOUT_STATIC_ROW
LAYOUT_STATIC_FREE
LAYOUT_STATIC
LAYOUT_TEMPLATE
LAYOUT_COUNT
Layout
struct nk_row_layout { enum nk_panel_row_layout_type type; int index; float height; float min_height; int columns; float const * ratio; float item_width; float item_height; float item_offset; float filled;
struct nk_rect
item; int tree_depth; float templates[16]; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NkRowLayout.Buffer
An array ofNkRowLayout
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
COLUMNS
FILLED
HEIGHT
INDEX
ITEM
ITEM_HEIGHT
ITEM_OFFSET
ITEM_WIDTH
MIN_HEIGHT
RATIOThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
TEMPLATES
TREE_DEPTH
TYPEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description NkRowLayout(java.nio.ByteBuffer container)
Creates aNkRowLayout
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
columns()
Returns the value of thecolumns
field.static NkRowLayout
create(long address)
Returns a newNkRowLayout
instance for the specified memory address.static NkRowLayout.Buffer
create(long address, int capacity)
Create aNkRowLayout.Buffer
instance at the specified memory.static NkRowLayout
createSafe(long address)
static NkRowLayout.Buffer
createSafe(long address, int capacity)
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.static int
ncolumns(long struct)
Unsafe version ofcolumns()
.static float
nfilled(long struct)
Unsafe version offilled()
.static float
nheight(long struct)
Unsafe version ofheight()
.static int
nindex(long struct)
Unsafe version ofindex()
.static NkRect
nitem(long struct)
Unsafe version ofitem()
.static float
nitem_height(long struct)
Unsafe version ofitem_height()
.static float
nitem_offset(long struct)
Unsafe version ofitem_offset()
.static float
nitem_width(long struct)
Unsafe version ofitem_width()
.static float
nmin_height(long struct)
Unsafe version ofmin_height()
.static java.nio.FloatBuffer
nratio(long struct, int capacity)
Unsafe version ofratio
.static java.nio.FloatBuffer
ntemplates(long struct)
Unsafe version oftemplates()
.static float
ntemplates(long struct, int index)
Unsafe version oftemplates
.static int
ntree_depth(long struct)
Unsafe version oftree_depth()
.static int
ntype(long struct)
Unsafe version oftype()
.java.nio.FloatBuffer
ratio(int capacity)
Returns aFloatBuffer
view of the data pointed to by theratio
field.int
sizeof()
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
-
NkRowLayout
public NkRowLayout(java.nio.ByteBuffer container)
Creates aNkRowLayout
instance at the current position of the specifiedByteBuffer
container. 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:
sizeof
in classorg.lwjgl.system.Struct
-
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.
-
create
public static NkRowLayout create(long address)
Returns a newNkRowLayout
instance for the specified memory address.
-
createSafe
@Nullable public static NkRowLayout createSafe(long address)
-
create
public static NkRowLayout.Buffer create(long address, int capacity)
Create aNkRowLayout.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static NkRowLayout.Buffer createSafe(long address, int capacity)
-
ntype
public static int ntype(long struct)
Unsafe version oftype()
.
-
nindex
public static int nindex(long struct)
Unsafe version ofindex()
.
-
nheight
public static float nheight(long struct)
Unsafe version ofheight()
.
-
nmin_height
public static float nmin_height(long struct)
Unsafe version ofmin_height()
.
-
ncolumns
public static int ncolumns(long struct)
Unsafe version ofcolumns()
.
-
nratio
public static java.nio.FloatBuffer nratio(long struct, int capacity)
Unsafe version ofratio
.
-
nitem_width
public static float nitem_width(long struct)
Unsafe version ofitem_width()
.
-
nitem_height
public static float nitem_height(long struct)
Unsafe version ofitem_height()
.
-
nitem_offset
public static float nitem_offset(long struct)
Unsafe version ofitem_offset()
.
-
nfilled
public static float nfilled(long struct)
Unsafe version offilled()
.
-
ntree_depth
public static int ntree_depth(long struct)
Unsafe version oftree_depth()
.
-
ntemplates
public static java.nio.FloatBuffer ntemplates(long struct)
Unsafe version oftemplates()
.
-
ntemplates
public static float ntemplates(long struct, int index)
Unsafe version oftemplates
.
-
-