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
orientationOrientation
Properties
Alignment
public FlowAlignment Alignment { get; set; }
Property Value
LastWrapAlignment
public FlowLastWrapAlignment LastWrapAlignment { get; set; }
Property Value
LineCount
public int LineCount { get; }
Property Value
LineMaxChildCount
public int LineMaxChildCount { get; }
Property Value
Orientation
public Orientation Orientation { get; set; }
Property Value
ReverseFill
public bool ReverseFill { get; set; }
Property Value
Separation
public float Separation { get; set; }
Property Value
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()