Package org.lwjgl.nuklear
Class NkRowLayout
- All Implemented Interfaces:
Pointer
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/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionNkRowLayout
(ByteBuffer container) Creates aNkRowLayout
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
columns()
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()
float
height()
int
index()
item()
float
float
float
float
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 FloatBuffer
nratio
(long struct, int capacity) Unsafe version ofratio
.static 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()
.ratio
(int capacity) int
sizeof()
Returnssizeof(struct)
.float
templates
(int index) int
int
type()
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
TYPE
public static final int TYPEThe struct member offsets. -
INDEX
public static final int INDEXThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
MIN_HEIGHT
public static final int MIN_HEIGHTThe struct member offsets. -
COLUMNS
public static final int COLUMNSThe struct member offsets. -
RATIO
public static final int RATIOThe struct member offsets. -
ITEM_WIDTH
public static final int ITEM_WIDTHThe struct member offsets. -
ITEM_HEIGHT
public static final int ITEM_HEIGHTThe struct member offsets. -
ITEM_OFFSET
public static final int ITEM_OFFSETThe struct member offsets. -
FILLED
public static final int FILLEDThe struct member offsets. -
ITEM
public static final int ITEMThe struct member offsets. -
TREE_DEPTH
public static final int TREE_DEPTHThe struct member offsets. -
TEMPLATES
public static final int TEMPLATESThe struct member offsets.
-
-
Constructor Details
-
NkRowLayout
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<NkRowLayout>
-
type
public int type() -
index
public int index()- Returns:
- the value of the
index
field.
-
height
public float height()- Returns:
- the value of the
height
field.
-
min_height
public float min_height()- Returns:
- the value of the
min_height
field.
-
columns
public int columns()- Returns:
- the value of the
columns
field.
-
ratio
- Parameters:
capacity
- the number of elements in the returned buffer- Returns:
- a
FloatBuffer
view of the data pointed to by theratio
field.
-
item_width
public float item_width()- Returns:
- the value of the
item_width
field.
-
item_height
public float item_height()- Returns:
- the value of the
item_height
field.
-
item_offset
public float item_offset()- Returns:
- the value of the
item_offset
field.
-
filled
public float filled()- Returns:
- the value of the
filled
field.
-
item
- Returns:
- a
NkRect
view of theitem
field.
-
tree_depth
public int tree_depth()- Returns:
- the value of the
tree_depth
field.
-
templates
- Returns:
- a
FloatBuffer
view of thetemplates
field.
-
templates
public float templates(int index) - Returns:
- the value at the specified index of the
templates
field.
-
create
Returns a newNkRowLayout
instance for the specified memory address. -
createSafe
-
create
Create aNkRowLayout.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
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
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()
. -
nitem
Unsafe version ofitem()
. -
ntree_depth
public static int ntree_depth(long struct) Unsafe version oftree_depth()
. -
ntemplates
Unsafe version oftemplates()
. -
ntemplates
public static float ntemplates(long struct, int index) Unsafe version oftemplates
.
-