Skip to content
ConsoleMonster
Class

WatchFrame

ConsoleMonster.Live

Namespace
ConsoleMonster.Live
Assembly
ConsoleMonster
Implements
IWidget
Modifiers
sealed

One run's view with a status for the heading (for example "2 errors" when the run partly failed).

Inheritance

  • object
  • WatchFrame

Constructors

public WatchFrame(IWidget content, string? status) #

Creates a frame.

Parameters

content ConsoleMonster.Layout.IWidget required
The run's view.
status string? required
The status, or null.

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.

Properties

public IWidget Content { get; } #

The run's view.

public string? Status { get; } #

The status for the heading, or null.