Skip to content
ConsoleMonster
Class

ConsoleViewStyle

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The opt-in visual vocabulary for embedded default views; ordinary terminal contexts retain their defaults.

Inheritance

  • object
  • ConsoleViewStyle

Methods

public static RenderContext Apply(RenderContext context) #

Creates an isolated context with compact health glyphs and the console-view palette.

Parameters

context ConsoleMonster.Canvas.RenderContext required
The destination's existing capabilities and theme.

Returns

RenderContext A context without changing terminal or process settings.
public static IWidget Create(Func<RenderContext, IWidget> build) #

Builds and renders a deferred view using that view's isolated destination context.

Parameters

build System.Func<ConsoleMonster.Canvas.RenderContext, ConsoleMonster.Layout.IWidget> required
The pure view factory.

Returns

IWidget An opt-in widget.
public static IWidget Wrap(IWidget widget) #

Applies the console-view vocabulary only while measuring and rendering this widget.

Parameters

widget ConsoleMonster.Layout.IWidget required
The view.

Returns

IWidget A wrapper that leaves other render calls unchanged.