IPopover.cs 771 B

12345678910111213141516171819
  1. #nullable enable
  2. namespace Terminal.Gui.App;
  3. /// <summary>
  4. /// Interface identifying a View as being capable of being a Popover.
  5. /// </summary>
  6. public interface IPopover
  7. {
  8. /// <summary>
  9. /// Gets or sets the <see cref="Toplevel"/> that this Popover is associated with. If null, it is not associated with
  10. /// any Toplevel and will receive all keyboard
  11. /// events from the <see cref="Application"/>. If set, it will only receive keyboard events the Toplevel would normally
  12. /// receive.
  13. /// When <see cref="ApplicationPopover.Register"/> is called, the <see cref="Toplevel"/> is set to the current
  14. /// <see cref="Application.Top"/> if not already set.
  15. /// </summary>
  16. public Toplevel? Toplevel { get; set; }
  17. }