Top Description Inners Fields Constructors Methods
org.lwjgl.nuklear

public Class NkRowLayout

extends Struct<NkRowLayout>
Class Inheritance
Annotations
@NativeType:struct nk_row_layout
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

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 and Inner Type Summary

Modifier and TypeClass and Description
public static class
NkRowLayout.Buffer

An array of NkRowLayout structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
COLUMNS

The struct member offsets.

public static final int
FILLED

The struct member offsets.

public static final int
HEIGHT

The struct member offsets.

public static final int
INDEX

The struct member offsets.

public static final int
ITEM

The struct member offsets.

public static final int
ITEM_HEIGHT

The struct member offsets.

public static final int
ITEM_OFFSET

The struct member offsets.

public static final int
ITEM_WIDTH

The struct member offsets.

public static final int
MIN_HEIGHT

The struct member offsets.

public static final int
RATIO

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
TEMPLATES

The struct member offsets.

public static final int
TREE_DEPTH

The struct member offsets.

public static final int
TYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
NkRowLayout(long address, ByteBuffer container)

public
NkRowLayout(ByteBuffer container)

Creates a NkRowLayout instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the columns field.
columns
()

protected NkRowLayout
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static NkRowLayout
create(long address)

Returns a new NkRowLayout instance for the specified memory address.

public static NkRowLayout.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a NkRowLayout.Buffer instance at the specified memory.

public static NkRowLayout
createSafe(long address)

Like create, but returns null if address is NULL.

public static NkRowLayout.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public float

Returns:

the value of the filled field.
filled
()

public float

Returns:

the value of the height field.
height
()

public int

Returns:

the value of the index field.
index
()

public NkRect

Returns:

a NkRect view of the item field.
item
()

public float

Returns:

the value of the item_height field.
item_height
()

public float

Returns:

the value of the item_offset field.
item_offset
()

public float

Returns:

the value of the item_width field.
item_width
()

public float

Returns:

the value of the min_height field.
min_height
()

public static int
ncolumns(long struct)

Unsafe version of columns.

public static float
nfilled(long struct)

Unsafe version of filled.

public static float
nheight(long struct)

Unsafe version of height.

public static int
nindex(long struct)

Unsafe version of index.

public static NkRect
nitem(long struct)

Unsafe version of item.

public static float
nitem_height(long struct)

Unsafe version of item_height.

public static float
nitem_offset(long struct)

Unsafe version of item_offset.

public static float
nitem_width(long struct)

Unsafe version of item_width.

public static float
nmin_height(long struct)

Unsafe version of min_height.

public static FloatBuffer
nratio(long struct, int capacity)

Unsafe version of ratio.

public static FloatBuffer
ntemplates(long struct)

Unsafe version of templates.

public static float
ntemplates(long struct, int index)

Unsafe version of templates.

public static int
ntree_depth(long struct)

Unsafe version of tree_depth.

public static int
ntype(long struct)

Unsafe version of type.

public FloatBuffer

Returns:

a FloatBuffer view of the data pointed to by the ratio field.
ratio
(int
the number of elements in the returned buffer
capacity
)

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public FloatBuffer

Returns:

a FloatBuffer view of the templates field.
templates
()

public float

Returns:

the value at the specified index of the templates field.
templates
(int index)

public int

Returns:

the value of the tree_depth field.
tree_depth
()

public int
Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate

Field Detail

ALIGNOFback to summary
public static final int ALIGNOF

The struct alignment in bytes.

COLUMNSback to summary
public static final int COLUMNS

The struct member offsets.

FILLEDback to summary
public static final int FILLED

The struct member offsets.

HEIGHTback to summary
public static final int HEIGHT

The struct member offsets.

INDEXback to summary
public static final int INDEX

The struct member offsets.

ITEMback to summary
public static final int ITEM

The struct member offsets.

ITEM_HEIGHTback to summary
public static final int ITEM_HEIGHT

The struct member offsets.

ITEM_OFFSETback to summary
public static final int ITEM_OFFSET

The struct member offsets.

ITEM_WIDTHback to summary
public static final int ITEM_WIDTH

The struct member offsets.

MIN_HEIGHTback to summary
public static final int MIN_HEIGHT

The struct member offsets.

RATIOback to summary
public static final int RATIO

The struct member offsets.

SIZEOFback to summary
public static final int SIZEOF

The struct size in bytes.

TEMPLATESback to summary
public static final int TEMPLATES

The struct member offsets.

TREE_DEPTHback to summary
public static final int TREE_DEPTH

The struct member offsets.

TYPEback to summary
public static final int TYPE

The struct member offsets.

Constructor Detail

NkRowLayoutback to summary
protected NkRowLayout(long address, ByteBuffer container)
NkRowLayoutback to summary
public NkRowLayout(ByteBuffer container)

Creates a 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.

Method Detail

columnsback to summary
public int columns()
Returns:int

the value of the columns field.

createback to summary
protected NkRowLayout create(long address, ByteBuffer container)

Implements abstract org.lwjgl.system.Struct.create.

Doc from org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.

Effectively, every Struct instance is a factory for more instances of the same type. This is used by StructBuffer.

Parameters
address:long

the struct memory address

container:ByteBuffer

an optional container buffer, to be referenced strongly by the struct instance.

Annotations
@Override
createback to summary
public static NkRowLayout create(long address)

Returns a new NkRowLayout instance for the specified memory address.

createback to summary
public static NkRowLayout.Buffer create(long address, int capacity)

Create a NkRowLayout.Buffer instance at the specified memory.

Parameters
address:long

the memory address

capacity:int

the buffer capacity

createSafeback to summary
public static NkRowLayout createSafe(long address)

Like create, but returns null if address is NULL.

Annotations
@Nullable
createSafeback to summary
public static NkRowLayout.Buffer createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

Annotations
@Nullable
filledback to summary
public float filled()
Returns:float

the value of the filled field.

heightback to summary
public float height()
Returns:float

the value of the height field.

indexback to summary
public int index()
Returns:int

the value of the index field.

itemback to summary
public NkRect item()
Returns:NkRect

a NkRect view of the item field.

Annotations
@NativeType:struct nk_rect
item_heightback to summary
public float item_height()
Returns:float

the value of the item_height field.

item_offsetback to summary
public float item_offset()
Returns:float

the value of the item_offset field.

item_widthback to summary
public float item_width()
Returns:float

the value of the item_width field.

min_heightback to summary
public float min_height()
Returns:float

the value of the min_height field.

ncolumnsback to summary
public static int ncolumns(long struct)

Unsafe version of columns.

nfilledback to summary
public static float nfilled(long struct)

Unsafe version of filled.

nheightback to summary
public static float nheight(long struct)

Unsafe version of height.

nindexback to summary
public static int nindex(long struct)

Unsafe version of index.

nitemback to summary
public static NkRect nitem(long struct)

Unsafe version of item.

nitem_heightback to summary
public static float nitem_height(long struct)

Unsafe version of item_height.

nitem_offsetback to summary
public static float nitem_offset(long struct)

Unsafe version of item_offset.

nitem_widthback to summary
public static float nitem_width(long struct)

Unsafe version of item_width.

nmin_heightback to summary
public static float nmin_height(long struct)

Unsafe version of min_height.

nratioback to summary
public static FloatBuffer nratio(long struct, int capacity)

Unsafe version of ratio.

ntemplatesback to summary
public static FloatBuffer ntemplates(long struct)

Unsafe version of templates.

ntemplatesback to summary
public static float ntemplates(long struct, int index)

Unsafe version of templates.

ntree_depthback to summary
public static int ntree_depth(long struct)

Unsafe version of tree_depth.

ntypeback to summary
public static int ntype(long struct)

Unsafe version of type.

ratioback to summary
public FloatBuffer ratio(int capacity)
Parameters
capacity:int

the number of elements in the returned buffer

Returns:FloatBuffer

a FloatBuffer view of the data pointed to by the ratio field.

Annotations
@NativeType:float const *
sizeofback to summary
public int sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Doc from org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).

Annotations
@Override
templatesback to summary
public FloatBuffer templates()
Returns:FloatBuffer

a FloatBuffer view of the templates field.

Annotations
@NativeType:float[16]
templatesback to summary
public float templates(int index)
Returns:float

the value at the specified index of the templates field.

tree_depthback to summary
public int tree_depth()
Returns:int

the value of the tree_depth field.

typeback to summary
public int type()

one of:

LAYOUT_DYNAMIC_FIXEDLAYOUT_DYNAMIC_ROWLAYOUT_DYNAMIC_FREELAYOUT_DYNAMIC
LAYOUT_STATIC_FIXEDLAYOUT_STATIC_ROWLAYOUT_STATIC_FREELAYOUT_STATIC
LAYOUT_TEMPLATELAYOUT_COUNT
Annotations
@NativeType:enum nk_panel_row_layout_type
org.lwjgl.nuklear back to summary

public Class NkRowLayout.Buffer

extends StructBuffer<NkRowLayout, NkRowLayout.Buffer>
Class Inheritance

An array of NkRowLayout structs.

Field Summary

Modifier and TypeField and Description
private static final NkRowLayout

Constructor Summary

AccessConstructor and Description
public
Buffer(ByteBuffer container)

Creates a new NkRowLayout.Buffer instance backed by the specified container.

public
Buffer(long address, int cap)

pack-priv
Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the value of the columns field.
columns
()

public float

Returns:

the value of the filled field.
filled
()

protected NkRowLayout
public float

Returns:

the value of the height field.
height
()

public int

Returns:

the value of the index field.
index
()

public NkRect

Returns:

a NkRect view of the item field.
item
()

public float

Returns:

the value of the item_height field.
item_height
()

public float

Returns:

the value of the item_offset field.
item_offset
()

public float

Returns:

the value of the item_width field.
item_width
()

public float

Returns:

the value of the min_height field.
min_height
()

public FloatBuffer

Returns:

a FloatBuffer view of the data pointed to by the ratio field.
ratio
(int
the number of elements in the returned buffer
capacity
)

protected NkRowLayout.Buffer
public FloatBuffer

Returns:

a FloatBuffer view of the templates field.
templates
()

public float

Returns:

the value at the specified index of the templates field.
templates
(int index)

public int

Returns:

the value of the tree_depth field.
tree_depth
()

public int

Returns:

the value of the NkRowLayout#type field.
type
()

Inherited from org.lwjgl.system.StructBuffer:
applyapplyforEachgetgetgetgetiteratorparallelStreamputputsizeofspliteratorstream

Field Detail

ELEMENT_FACTORYback to summary
private static final NkRowLayout ELEMENT_FACTORY

Constructor Detail

Bufferback to summary
public Buffer(ByteBuffer container)

Creates a new NkRowLayout.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 by NkRowLayout#SIZEOF, and its mark will be undefined.

The created buffer instance holds a strong reference to the container object.

Bufferback to summary
public Buffer(long address, int cap)
Bufferback to summary
pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap)

Method Detail

columnsback to summary
public int columns()
Returns:int

the value of the columns field.

filledback to summary
public float filled()
Returns:float

the value of the filled field.

getElementFactoryback to summary
protected NkRowLayout getElementFactory()

Implements abstract org.lwjgl.system.StructBuffer.getElementFactory.

Annotations
@Override
heightback to summary
public float height()
Returns:float

the value of the height field.

indexback to summary
public int index()
Returns:int

the value of the index field.

itemback to summary
public NkRect item()
Returns:NkRect

a NkRect view of the item field.

Annotations
@NativeType:struct nk_rect
item_heightback to summary
public float item_height()
Returns:float

the value of the item_height field.

item_offsetback to summary
public float item_offset()
Returns:float

the value of the item_offset field.

item_widthback to summary
public float item_width()
Returns:float

the value of the item_width field.

min_heightback to summary
public float min_height()
Returns:float

the value of the min_height field.

ratioback to summary
public FloatBuffer ratio(int capacity)
Parameters
capacity:int

the number of elements in the returned buffer

Returns:FloatBuffer

a FloatBuffer view of the data pointed to by the ratio field.

Annotations
@NativeType:float const *
selfback to summary
protected NkRowLayout.Buffer self()

Implements abstract org.lwjgl.system.CustomBuffer.self.

Annotations
@Override
templatesback to summary
public FloatBuffer templates()
Returns:FloatBuffer

a FloatBuffer view of the templates field.

Annotations
@NativeType:float[16]
templatesback to summary
public float templates(int index)
Returns:float

the value at the specified index of the templates field.

tree_depthback to summary
public int tree_depth()
Returns:int

the value of the tree_depth field.

typeback to summary
public int type()
Returns:int

the value of the NkRowLayout#type field.

Annotations
@NativeType:enum nk_panel_row_layout_type