Class BoxContainer

Namespace
Forma
Assembly
Forma.dll

Arranges visible children sequentially along one axis and distributes spare space to expanding children.

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

Constructors

BoxContainer()

public BoxContainer()

BoxContainer(Orientation)

public BoxContainer(Orientation orientation)

Parameters

orientation Orientation

Properties

Alignment

public BoxAlignment Alignment { get; set; }

Property Value

BoxAlignment

Orientation

public Orientation Orientation { get; }

Property Value

Orientation

ReverseSort

Arranges visible children in reverse order while preserving their ownership order.

public bool ReverseSort { get; set; }

Property Value

bool

Separation

public float Separation { get; set; }

Property Value

float

Methods

AddSpacer(bool)

Appends a mouse-pass-through, expand-fill child that consumes leftover space along the box's axis, matching Godot's BoxContainer::add_spacer.

public Control AddSpacer(bool begin = false)

Parameters

begin bool

Returns

Control

ArrangeChildren()

protected override void ArrangeChildren()

GetMinimumSize()

public override Vector2 GetMinimumSize()

Returns

Vector2