Skip to content
ConsoleMonster

API Reference

Class

SlotHandle

Namespace ConsoleMonster.Widgets
Assembly ConsoleMonster
Source Slot.cs:89
Modifiers sealed

Replaces the content of a Slot 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 SlotHandle(ILiveDispatcher dispatcher, String target) #

Creates a handle.

Parameters

dispatcher ConsoleMonster.Live.ILiveDispatcher requiredposition: 0
The dispatcher (a live session).
target System.String requiredposition: 1
The slot name.

Methods

public Void Clear() #
Returns: Void

Empties the slot.

public Void Replace(IWidget widget) #
Returns: Void

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

Parameters

widget ConsoleMonster.Layout.IWidget requiredposition: 0
The new content.
public Void Set(IWidget widget) #
Returns: Void

Shows widget in the slot from the next frame on.

Parameters

widget ConsoleMonster.Layout.IWidget requiredposition: 0
The new content.