Skip to content

Class Dock

Children against the edges, in the order added, with the last one added without an edge filling what is left: new Dock { { Edge.Top, header }, { Edge.Bottom, footer }, body }.

Declaration
public sealed class Dock : Container

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

Adds a child against an edge.

Declaration
public void Add(Edge edge, Element child)
Type Name
DarkEffekt.Terminal.UI.Edge edge
DarkEffekt.Terminal.UI.Element child

A child left the container. A panel that keeps placement for its children drops it here.

Declaration
protected override void OnRemoved(Element child)
Type Name
DarkEffekt.Terminal.UI.Element child

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