Skip to content

Class Border

A box drawn around one child, with a title set into the top edge.

Declaration
public sealed class Border : Element

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

Declaration
public string Title { get; set; }
Declaration
public Element Child { get; set; }
Declaration
public override int ChildCount { get; }
Declaration
public override Element GetChild(int index)

DarkEffekt.Terminal.UI.Element

Type Name
System.Int32 index

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
Declaration
protected override void RenderCore(CellCanvas canvas)
Type Name
DarkEffekt.Terminal.UI.CellCanvas canvas