Class reference

FlowContainer

Inherits Container

A container that arranges its child controls horizontally or vertically and wraps them around at the borders.

Description

A container that arranges its child controls horizontally or vertically and wraps them around at the borders. This is similar to how text in a book wraps around when no more words can fit on a line.

Properties

Methods

int get_line_count() const

Returns the current line count.

Constants

ALIGNMENT_BEGIN = 0

Enum: AlignmentMode

The child controls will be arranged at the beginning of the container, i.e. top if orientation is vertical, left if orientation is horizontal (right for RTL layout).

ALIGNMENT_CENTER = 1

Enum: AlignmentMode

The child controls will be centered in the container.

ALIGNMENT_END = 2

Enum: AlignmentMode

The child controls will be arranged at the end of the container, i.e. bottom if orientation is vertical, right if orientation is horizontal (left for RTL layout).

LAST_WRAP_ALIGNMENT_INHERIT = 0

Enum: LastWrapAlignmentMode

The last partially filled row or column will wrap aligned to the previous row or column in accordance with alignment.

LAST_WRAP_ALIGNMENT_BEGIN = 1

Enum: LastWrapAlignmentMode

The last partially filled row or column will wrap aligned to the beginning of the previous row or column.

LAST_WRAP_ALIGNMENT_CENTER = 2

Enum: LastWrapAlignmentMode

The last partially filled row or column will wrap aligned to the center of the previous row or column.

LAST_WRAP_ALIGNMENT_END = 3

Enum: LastWrapAlignmentMode

The last partially filled row or column will wrap aligned to the end of the previous row or column.

Theme properties

int h_separation = 4

The horizontal separation of child nodes.

int v_separation = 4

The vertical separation of child nodes.

Tutorials

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.