Skip to content
ConsoleMonster
Interface

ICompactWidget

ConsoleMonster.Layout

Namespace
ConsoleMonster.Layout
Assembly
ConsoleMonster
Implements
IWidget
Modifiers
abstract

A widget with a minimum size and a compact rendering used when the screen is smaller: live sessions render the compact form instead of squeezing the full layout into garbage (for example a dashboard shows a one-line status and only its highest-priority widgets).

Methods

public abstract void RenderCompact(Region region, RenderContext context) #

Renders the compact form into a region smaller than ICompactWidget.MinimumSize.

Parameters

region ConsoleMonster.Canvas.Region required
The region (possibly tiny or empty).
context ConsoleMonster.Canvas.RenderContext required
The render context.

Properties

public abstract Size MinimumSize { get; } #

The smallest size the full layout needs.