Skip to content
ConsoleMonster
Class

RegionHandle

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
sealed

Replaces the content of a RegionWidget through the live session's update queue (thread-safe).

Inheritance

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Constructors

public RegionHandle(ILiveDispatcher dispatcher, string widgetId) #

Creates a handle.

Parameters

dispatcher ConsoleMonster.Live.ILiveDispatcher required
The dispatcher (a live session).
widgetId string required
The slot name.

Methods

public void Clear() #

Empties the slot.

public void Replace(IWidget widget) #

Shows widget in the slot (same as RegionHandle.Set).

Parameters

widget ConsoleMonster.Layout.IWidget required
The new content.
public void Set(IWidget widget) #

Shows widget in the slot from the next frame on.

Parameters

widget ConsoleMonster.Layout.IWidget required
The new content.