Skip to content

FocusedScreenObjectStack Class

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

C#
public class FocusedScreenObjectStack

Inheritance object

Creates a new instance of the class.

C#
public FocusedScreenObjectStack()

Gets the current active screen object.

C#
public IScreenObject? ScreenObject { get; }

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

C#
public void Clear()

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

C#
public void Push(IScreenObject screenObject)

screenObject IScreenObject

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

C#
public void Set(IScreenObject screenObject)

screenObject IScreenObject
The screen object to make active.

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.

C#
public void Pop(IScreenObject screenObject)

screenObject IScreenObject
The screen object to remove.

Removes the top screen object from the stack.

C#
public void Pop()