Application.Toplevel.cs 558 B

123456789101112131415161718
  1. #nullable enable
  2. using System.Collections.Concurrent;
  3. namespace Terminal.Gui.App;
  4. public static partial class Application // Toplevel handling
  5. {
  6. /// <inheritdoc cref="IApplication.TopLevels"/>
  7. public static ConcurrentStack<Toplevel> TopLevels => ApplicationImpl.Instance.TopLevels;
  8. /// <summary>The <see cref="Toplevel"/> that is currently active.</summary>
  9. /// <value>The top.</value>
  10. public static Toplevel? Top
  11. {
  12. get => ApplicationImpl.Instance.Top;
  13. internal set => ApplicationImpl.Instance.Top = value;
  14. }
  15. }