Skip to content
ConsoleMonster

API Reference

Class

WatchFrame

Namespace ConsoleMonster.Live
Assembly ConsoleMonster
Implements
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 requiredposition: 0
The run's view.
status System.String? requiredposition: 1
The status, or null.

Methods

public Size Measure(Constraints constraints, RenderContext context) #
Returns: Size

Returns the size the widget wants within the constraints.

Parameters

constraints ConsoleMonster.Layout.Constraints requiredposition: 0
The space offered.
context ConsoleMonster.Canvas.RenderContext requiredposition: 1
Profile, theme and glyphs.

Returns

The desired size, never larger than the constraints.

public Void Render(Region region, RenderContext context) #
Returns: Void

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

Parameters

region ConsoleMonster.Canvas.Region requiredposition: 0
The target region.
context ConsoleMonster.Canvas.RenderContext requiredposition: 1
Profile, theme and glyphs.

Properties

public IWidget Content { get; } #

The run's view.

public String? Status { get; } #

The status for the heading, or null.