FocusedScreenObjectStack Class
Definition
Section titled “Definition”A stack of screen objects. The top-most of the stack is considered active and represented by the IScreenObject property.
public class FocusedScreenObjectStackInheritance object
Constructors
Section titled “Constructors”FocusedScreenObjectStack()
Section titled “FocusedScreenObjectStack()”Creates a new instance of the class.
public FocusedScreenObjectStack()Properties
Section titled “Properties”ScreenObject
Section titled “ScreenObject”Gets the current active screen object.
public IScreenObject? ScreenObject { get; }Methods
Section titled “Methods”Clear()
Section titled “Clear()”Clears all screen objects from the active stack along with the current active screen object.
public void Clear()Push(IScreenObject)
Section titled “Push(IScreenObject)”Adds another screen object to active stack, setting it as the active (top most in the stack) screen object.
public void Push(IScreenObject screenObject)Parameters
Section titled “Parameters”screenObject IScreenObject
Set(IScreenObject)
Section titled “Set(IScreenObject)”Replaces the top screen object (active screen object) with the provided instance. Sets IScreenObject to this instance.
public void Set(IScreenObject screenObject)Parameters
Section titled “Parameters”screenObject IScreenObject
The screen object to make active.
Pop(IScreenObject)
Section titled “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.
public void Pop(IScreenObject screenObject)Parameters
Section titled “Parameters”screenObject IScreenObject
The screen object to remove.
Removes the top screen object from the stack.
public void Pop()