Application.Screen.cs 877 B

12345678910111213141516171819202122232425262728
  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. public static Rectangle Screen
  6. {
  7. get => ApplicationImpl.Instance.Screen;
  8. set => ApplicationImpl.Instance.Screen = value;
  9. }
  10. /// <inheritdoc cref="IApplication.ScreenChanged"/>
  11. public static event EventHandler<EventArgs<Rectangle>>? ScreenChanged
  12. {
  13. add => ApplicationImpl.Instance.ScreenChanged += value;
  14. remove => ApplicationImpl.Instance.ScreenChanged -= value;
  15. }
  16. /// <inheritdoc cref="IApplication.ClearScreenNextIteration"/>
  17. internal static bool ClearScreenNextIteration
  18. {
  19. get => ApplicationImpl.Instance.ClearScreenNextIteration;
  20. set => ApplicationImpl.Instance.ClearScreenNextIteration = value;
  21. }
  22. }