Class FlowContainer

Namespace
Forma
Assembly
Forma.dll

Flows children into wrapping lines, distributing expansion and applying configurable alignment to incomplete lines.

public class FlowContainer : Container, IAddChild<Control>, IAddChild, INotifyPropertyChanged
Inheritance
FlowContainer
Implements
Derived
Inherited Members

Constructors

FlowContainer(Orientation)

public FlowContainer(Orientation orientation)

Parameters

orientation Orientation

Properties

Alignment

public FlowAlignment Alignment { get; set; }

Property Value

FlowAlignment

LastWrapAlignment

public FlowLastWrapAlignment LastWrapAlignment { get; set; }

Property Value

FlowLastWrapAlignment

LineCount

public int LineCount { get; }

Property Value

int

LineMaxChildCount

public int LineMaxChildCount { get; }

Property Value

int

Orientation

public Orientation Orientation { get; set; }

Property Value

Orientation

ReverseFill

public bool ReverseFill { get; set; }

Property Value

bool

Separation

public float Separation { get; set; }

Property Value

float

Methods

ArrangeChildren()

protected override void ArrangeChildren()

GetMinimumSize()

Matches Godot's FlowContainer::get_minimum_size: the main axis only needs to fit the single largest child (a tighter fit just wraps into more lines), while the cross axis needs the full wrapped extent.

public override Vector2 GetMinimumSize()

Returns

Vector2

SetFixedOrientation()

protected void SetFixedOrientation()