Class
RunProgress
ConsoleMonster.Widgets
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
- 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
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
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
- The target region.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.