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 }.
Assembly: DarkEffekt.Terminal.UI
Section titled “Assembly: DarkEffekt.Terminal.UI”public sealed class Dock : ContainerInheritance: System.Object -> DarkEffekt.Terminal.UI.Element -> DarkEffekt.Terminal.UI.Container
Methods
Section titled “Methods”Add(Edge, Element)
Section titled “Add(Edge, Element)”Adds a child against an edge.
public void Add(Edge edge, Element child)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.Edge | edge |
| DarkEffekt.Terminal.UI.Element | child |
OnRemoved(Element)
Section titled “OnRemoved(Element)”A child left the container. A panel that keeps placement for its children drops it here.
protected override void OnRemoved(Element child)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.Element | child |
MeasureCore(CellSize)
Section titled “MeasureCore(CellSize)”The size this element wants, within the room given.
protected override CellSize MeasureCore(CellSize available)Returns
Section titled “Returns”DarkEffekt.Terminal.UI.CellSize
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.CellSize | available |
ArrangeCore(CellRect)
Section titled “ArrangeCore(CellRect)”Places the children inside this element’s rectangle.
protected override void ArrangeCore(CellRect rect)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.CellRect | rect |