webmaster442.windowsterminal.wigets.wigetbase - webmaster442/WindowsTerminal GitHub Wiki

< Back


WigetBase

Namespace: Webmaster442.WindowsTerminal.Wigets

Base class for wigets

public abstract class WigetBase

Inheritance ObjectWigetBase

Properties

IsShowing

Gets if the wiget is currently shown.

protected bool IsShowing { get; private set; }

Property Value

Boolean

IsAlternateBuffer

Gets if the wiget is currently shown in the alternate buffer.

protected bool IsAlternateBuffer { get; private set; }

Property Value

Boolean

Constructors

WigetBase()

protected WigetBase()

Methods

Show(Boolean)

Shows the wiget. If useAlternateBuffer is true, the wiget will be shown in the alternate buffer.

public void Show(bool useAlternateBuffer)

Parameters

useAlternateBuffer Boolean id set to true the wiget will be shown in the alternate buffer.

Hide()

Hides the wiget

public void Hide()

OnShow()

An overridable method that is called when the wiget is shown

public abstract void OnShow()

OnHide()

An overridable method that is called when the wiget is hidden

public abstract void OnHide()

< Back