Application.Toplevel.cs 532 B

1234567891011121314
  1. #nullable enable
  2. namespace Terminal.Gui;
  3. public static partial class Application // Toplevel handling
  4. {
  5. // BUGBUG: Technically, this is not the full lst of TopLevels. There be dragons here, e.g. see how Toplevel.Id is used. What
  6. /// <summary>Holds the stack of TopLevel views.</summary>
  7. internal static Stack<Toplevel> TopLevels { get; } = new ();
  8. /// <summary>The <see cref="Toplevel"/> that is currently active.</summary>
  9. /// <value>The top.</value>
  10. public static Toplevel? Top { get; internal set; }
  11. }