IToplevelTransitionManager.cs 616 B

1234567891011121314151617181920
  1. namespace Terminal.Gui;
  2. /// <summary>
  3. /// Interface for class that handles bespoke behaviours that occur when application
  4. /// top level changes.
  5. /// </summary>
  6. public interface IToplevelTransitionManager
  7. {
  8. /// <summary>
  9. /// Raises the <see cref="Toplevel.Ready"/> event on the current top level
  10. /// if it has not been raised before now.
  11. /// </summary>
  12. void RaiseReadyEventIfNeeded ();
  13. /// <summary>
  14. /// Handles any state change needed when the application top changes e.g.
  15. /// setting redraw flags
  16. /// </summary>
  17. void HandleTopMaybeChanging ();
  18. }