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
orientationOrientation
Properties
Alignment
public BoxAlignment Alignment { get; set; }
Property Value
Orientation
public Orientation Orientation { get; }
Property Value
ReverseSort
Arranges visible children in reverse order while preserving their ownership order.
public bool ReverseSort { get; set; }
Property Value
Separation
public float Separation { get; set; }
Property Value
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
beginbool
Returns
ArrangeChildren()
protected override void ArrangeChildren()
GetMinimumSize()
public override Vector2 GetMinimumSize()
Returns
- Vector2