Application.Screen.cs 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. namespace Terminal.Gui.App;
  2. public static partial class Application // Screen related stuff; intended to hide Driver details
  3. {
  4. /// <inheritdoc cref="IApplication.Screen"/>
  5. [Obsolete ("The legacy static Application object is going away.")]
  6. public static Rectangle Screen
  7. {
  8. get => ApplicationImpl.Instance.Screen;
  9. set => ApplicationImpl.Instance.Screen = value;
  10. }
  11. /// <inheritdoc cref="IApplication.ScreenChanged"/>
  12. [Obsolete ("The legacy static Application object is going away.")]
  13. public static event EventHandler<EventArgs<Rectangle>>? ScreenChanged
  14. {
  15. add => ApplicationImpl.Instance.ScreenChanged += value;
  16. remove => ApplicationImpl.Instance.ScreenChanged -= value;
  17. }
  18. /// <inheritdoc cref="IApplication.ClearScreenNextIteration"/>
  19. [Obsolete ("The legacy static Application object is going away.")]
  20. internal static bool ClearScreenNextIteration
  21. {
  22. get => ApplicationImpl.Instance.ClearScreenNextIteration;
  23. set => ApplicationImpl.Instance.ClearScreenNextIteration = value;
  24. }
  25. }