Skip to content

Class Stack

Children in a row or a column. Each takes its content size along the axis; those with DarkEffekt.Terminal.UI.Element.Grow share what is left. Across the axis every child gets the full extent.

Declaration
public sealed class Stack : Container

Inheritance: System.Object -> DarkEffekt.Terminal.UI.Element -> DarkEffekt.Terminal.UI.Container

Declaration
public Axis Axis { get; set; }

Blank cells between children.

Declaration
public int Spacing { get; set; }

The size this element wants, within the room given.

Declaration
protected override CellSize MeasureCore(CellSize available)

DarkEffekt.Terminal.UI.CellSize

Type Name
DarkEffekt.Terminal.UI.CellSize available

Places the children inside this element’s rectangle.

Declaration
protected override void ArrangeCore(CellRect rect)
Type Name
DarkEffekt.Terminal.UI.CellRect rect