Skip to content

Class LogView

Lines of text that scroll as more arrive, newest at the bottom. The wheel and the bar scroll back through the lines kept; a view scrolled to the newest line follows as more arrive.

Declaration
public sealed class LogView : Element

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

Where a line too wide for the view breaks. A wrapped line takes as many rows as it needs.

Declaration
public TextWrap Wrap { get; set; }

The most lines kept; older ones are dropped.

Declaration
public int Capacity { get; set; }

When the bar at the right edge shows. Hidden by default: a log overflows by nature, and the wheel scrolls back without one.

Declaration
public ScrollBarMode ScrollBar { get; set; }

The bar’s glyphs. Null takes the interface’s DarkEffekt.Terminal.UI.TerminalUI.ScrollBarStyle.

Declaration
public ScrollBarStyle ScrollBarStyle { get; set; }

The cells one wheel notch moves.

Declaration
public int WheelStep { get; set; }
Declaration
public int Count { get; }
Declaration
public override int ChildCount { get; }
Declaration
public override Element GetChild(int index)

DarkEffekt.Terminal.UI.Element

Type Name
System.Int32 index
Declaration
public void Add(string line)
Type Name
System.String line
Declaration
public void Clear()

Scrolls to the newest line, so the view follows the log again.

Declaration
public void ScrollToEnd()

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

A pointer event on this element. Return true when it was used.

Declaration
public override bool OnMouse(in TermMouseEvent e)

System.Boolean

Type Name
DarkEffekt.Terminal.TermMouseEvent e