public class NkRowLayout
extends org.lwjgl.system.Struct
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 |
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];
}| Modifier and Type | Class and Description |
|---|---|
static class |
NkRowLayout.Buffer
An array of
NkRowLayout structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
COLUMNS
The struct member offsets.
|
static int |
FILLED
The struct member offsets.
|
static int |
HEIGHT
The struct member offsets.
|
static int |
INDEX
The struct member offsets.
|
static int |
ITEM
The struct member offsets.
|
static int |
ITEM_HEIGHT
The struct member offsets.
|
static int |
ITEM_OFFSET
The struct member offsets.
|
static int |
ITEM_WIDTH
The struct member offsets.
|
static int |
MIN_HEIGHT
The struct member offsets.
|
static int |
RATIO
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TEMPLATES
The struct member offsets.
|
static int |
TREE_DEPTH
The struct member offsets.
|
static int |
TYPE
The struct member offsets.
|
| Constructor and Description |
|---|
NkRowLayout(java.nio.ByteBuffer container)
Creates a
NkRowLayout instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
columns()
Returns the value of the
columns field. |
static NkRowLayout |
create(long address)
Returns a new
NkRowLayout instance for the specified memory address. |
static NkRowLayout.Buffer |
create(long address,
int capacity)
Create a
NkRowLayout.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 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. |
static int |
ncolumns(long struct)
Unsafe version of
columns(). |
static float |
nfilled(long struct)
Unsafe version of
filled(). |
static float |
nheight(long struct)
Unsafe version of
height(). |
static int |
nindex(long struct)
Unsafe version of
index(). |
static float |
nitem_height(long struct)
Unsafe version of
item_height(). |
static float |
nitem_offset(long struct)
Unsafe version of
item_offset(). |
static float |
nitem_width(long struct)
Unsafe version of
item_width(). |
static NkRect |
nitem(long struct)
Unsafe version of
item(). |
static float |
nmin_height(long struct)
Unsafe version of
min_height(). |
static java.nio.FloatBuffer |
nratio(long struct,
int capacity)
Unsafe version of
ratio. |
static java.nio.FloatBuffer |
ntemplates(long struct)
Unsafe version of
templates(). |
static float |
ntemplates(long struct,
int index)
Unsafe version of
templates. |
static int |
ntree_depth(long struct)
Unsafe version of
tree_depth(). |
static int |
ntype(long struct)
Unsafe version of
type(). |
java.nio.FloatBuffer |
ratio(int capacity)
Returns a
FloatBuffer view of the data pointed to by the ratio field. |
int |
sizeof() |
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. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TYPE
public static final int INDEX
public static final int HEIGHT
public static final int MIN_HEIGHT
public static final int COLUMNS
public static final int RATIO
public static final int ITEM_WIDTH
public static final int ITEM_HEIGHT
public static final int ITEM_OFFSET
public static final int FILLED
public static final int ITEM
public static final int TREE_DEPTH
public static final int TEMPLATES
public NkRowLayout(java.nio.ByteBuffer container)
NkRowLayout instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic 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.public static NkRowLayout create(long address)
NkRowLayout instance for the specified memory address.@Nullable public static NkRowLayout createSafe(long address)
public static NkRowLayout.Buffer create(long address, int capacity)
NkRowLayout.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static NkRowLayout.Buffer createSafe(long address, int capacity)
public static int ntype(long struct)
type().public static int nindex(long struct)
index().public static float nheight(long struct)
height().public static float nmin_height(long struct)
min_height().public static int ncolumns(long struct)
columns().public static java.nio.FloatBuffer nratio(long struct,
int capacity)
ratio.public static float nitem_width(long struct)
item_width().public static float nitem_height(long struct)
item_height().public static float nitem_offset(long struct)
item_offset().public static float nfilled(long struct)
filled().public static int ntree_depth(long struct)
tree_depth().public static java.nio.FloatBuffer ntemplates(long struct)
templates().public static float ntemplates(long struct,
int index)
templates.Copyright LWJGL. All Rights Reserved. License terms.