Package org.lwjgl.nuklear
Class NkRowLayout
- All Implemented Interfaces:
Pointer
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;
{@link NkRect struct nk_rect} item;
int tree_depth;
float templates[16];
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionNkRowLayout(ByteBuffer container) Creates aNkRowLayoutinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionintcolumns()static NkRowLayoutcreate(long address) Returns a newNkRowLayoutinstance for the specified memory address.static NkRowLayout.Buffercreate(long address, int capacity) Create aNkRowLayout.Bufferinstance at the specified memory.static @Nullable NkRowLayoutcreateSafe(long address) static @Nullable NkRowLayout.BuffercreateSafe(long address, int capacity) floatfilled()floatheight()intindex()item()floatfloatfloatfloatstatic intncolumns(long struct) Unsafe version ofcolumns().static floatnfilled(long struct) Unsafe version offilled().static floatnheight(long struct) Unsafe version ofheight().static intnindex(long struct) Unsafe version ofindex().static NkRectnitem(long struct) Unsafe version ofitem().static floatnitem_height(long struct) Unsafe version ofitem_height().static floatnitem_offset(long struct) Unsafe version ofitem_offset().static floatnitem_width(long struct) Unsafe version ofitem_width().static floatnmin_height(long struct) Unsafe version ofmin_height().static FloatBuffernratio(long struct, int capacity) Unsafe version ofratio.static FloatBufferntemplates(long struct) Unsafe version oftemplates().static floatntemplates(long struct, int index) Unsafe version oftemplates.static intntree_depth(long struct) Unsafe version oftree_depth().static intntype(long struct) Unsafe version oftype().ratio(int capacity) intsizeof()Returnssizeof(struct).floattemplates(int index) intinttype()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 aNkRowLayoutinstance at the current position of the specifiedByteBuffercontainer. 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:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<NkRowLayout>
-
type
public int type()- Returns:
- the value of the
typefield.
-
index
public int index()- Returns:
- the value of the
indexfield.
-
height
public float height()- Returns:
- the value of the
heightfield.
-
min_height
public float min_height()- Returns:
- the value of the
min_heightfield.
-
columns
public int columns()- Returns:
- the value of the
columnsfield.
-
ratio
- Returns:
- a
FloatBufferview of the data pointed to by theratiofield.
-
item_width
public float item_width()- Returns:
- the value of the
item_widthfield.
-
item_height
public float item_height()- Returns:
- the value of the
item_heightfield.
-
item_offset
public float item_offset()- Returns:
- the value of the
item_offsetfield.
-
filled
public float filled()- Returns:
- the value of the
filledfield.
-
item
- Returns:
- a
NkRectview of theitemfield.
-
tree_depth
public int tree_depth()- Returns:
- the value of the
tree_depthfield.
-
templates
- Returns:
- a
FloatBufferview of thetemplatesfield.
-
templates
public float templates(int index) - Returns:
- the value at the specified index of the
templatesfield.
-
create
Returns a newNkRowLayoutinstance for the specified memory address. -
createSafe
-
create
Create aNkRowLayout.Bufferinstance 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.
-