Table of Contents

Class FlowContainer

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

Inheritance
FlowContainer
Derived

Remarks

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.

See Also

Properties

alignment

The alignment of the container's children (must be one of FlowContainer.ALIGNMENT_BEGIN, FlowContainer.ALIGNMENT_CENTER, or FlowContainer.ALIGNMENT_END).

var alignment : int = 0

Property Value

int

Remarks

  • void set_alignment(int value)
  • int get_alignment

last_wrap_alignment

The wrap behavior of the last, partially filled row or column (must be one of FlowContainer.LAST_WRAP_ALIGNMENT_INHERIT, FlowContainer.LAST_WRAP_ALIGNMENT_BEGIN, FlowContainer.LAST_WRAP_ALIGNMENT_CENTER, or FlowContainer.LAST_WRAP_ALIGNMENT_END).

var last_wrap_alignment : int = 0

Property Value

int

Remarks

  • void set_last_wrap_alignment(int value)
  • int get_last_wrap_alignment

reverse_fill

If true, reverses fill direction. Horizontal FlowContainers will fill rows bottom to top, vertical FlowContainers will fill columns right to left.

When using a vertical FlowContainer with a right to left layout_direction, columns will fill left to right instead.

var reverse_fill : bool = false

Property Value

bool

Remarks

  • void set_reverse_fill(bool value)
  • bool is_reverse_fill

vertical

If true, the FlowContainer will arrange its children vertically, rather than horizontally.

Can't be changed when using HFlowContainer and VFlowContainer.

var vertical : bool = false

Property Value

bool

Remarks

  • void set_vertical(bool value)
  • bool is_vertical

h_separation

Theme Property

The horizontal separation of child nodes.

 = ``4``

Property Value

int

v_separation

Theme Property

The vertical separation of child nodes.

 = ``4``

Property Value

int

Methods

get_line_count

Qualifiers: const

Returns the current line count.

int get_line_count