Skip to content
ConsoleMonster
Class

RunProgress

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Implements
IWidget
Modifiers
sealed

An append-only progress line, keeping counts and ETA visible at compact terminal widths.

Inheritance

  • object
  • RunProgress

Constructors

public RunProgress(RunSnapshot snapshot) #

Creates a progress line from an immutable observation.

Parameters

snapshot ConsoleMonster.Live.RunSnapshot required
Run counts, throughput and ETA.

Methods

public Size Measure(Constraints constraints, RenderContext context) #

Returns the size the widget wants within the constraints.

Parameters

constraints ConsoleMonster.Layout.Constraints required
The space offered.
context ConsoleMonster.Canvas.RenderContext required
Profile, theme and glyphs.

Returns

Size The desired size, never larger than the constraints.
public void Render(Region region, RenderContext context) #

Renders into a region. The region may be smaller or larger than the measured size.

Parameters

region ConsoleMonster.Canvas.Region required
The target region.
context ConsoleMonster.Canvas.RenderContext required
Profile, theme and glyphs.