Show / Hide Table of Contents

Class FocusedScreenObjectStack

A stack of screen objects. The top-most of the stack is considered active and represented by the IScreenObject property.

Inheritance
object
FocusedScreenObjectStack
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole
Assembly: SadConsole.dll
Syntax
public class FocusedScreenObjectStack

Constructors

FocusedScreenObjectStack()

Creates a new instance of the class.

Declaration
public FocusedScreenObjectStack()

Properties

ScreenObject

Gets the current active screen object.

Declaration
public IScreenObject? ScreenObject { get; }
Property Value
Type Description
IScreenObject

Methods

Clear()

Clears all screen objects from the active stack along with the current active screen object.

Declaration
public void Clear()

Pop()

Removes the top screen object from the stack.

Declaration
public void Pop()

Pop(IScreenObject)

Removes the screen object from the active stack. If the instance is the current active screen object, the active screen object is set to the last screen object in the previous screen object.

Declaration
public void Pop(IScreenObject screenObject)
Parameters
Type Name Description
IScreenObject screenObject

The screen object to remove.

Push(IScreenObject)

Adds another screen object to active stack, setting it as the active (top most in the stack) screen object.

Declaration
public void Push(IScreenObject screenObject)
Parameters
Type Name Description
IScreenObject screenObject

Set(IScreenObject)

Replaces the top screen object (active screen object) with the provided instance. Sets IScreenObject to this instance.

Declaration
public void Set(IScreenObject screenObject)
Parameters
Type Name Description
IScreenObject screenObject

The screen object to make active.

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX