Application.Screen.cs 894 B

1234567891011121314151617181920212223242526272829
  1. #nullable enable
  2. namespace Terminal.Gui.App;
  3. public static partial class Application // Screen related stuff; intended to hide Driver details
  4. {
  5. /// <inheritdoc cref="IApplication.Screen"/>
  6. public static Rectangle Screen
  7. {
  8. get => ApplicationImpl.Instance.Screen;
  9. set => ApplicationImpl.Instance.Screen = value;
  10. }
  11. /// <inheritdoc cref="IApplication.ScreenChanged"/>
  12. public static event EventHandler<EventArgs<Rectangle>>? ScreenChanged
  13. {
  14. add => ApplicationImpl.Instance.ScreenChanged += value;
  15. remove => ApplicationImpl.Instance.ScreenChanged -= value;
  16. }
  17. /// <inheritdoc cref="IApplication.ClearScreenNextIteration"/>
  18. internal static bool ClearScreenNextIteration
  19. {
  20. get => ApplicationImpl.Instance.ClearScreenNextIteration;
  21. set => ApplicationImpl.Instance.ClearScreenNextIteration = value;
  22. }
  23. }