DrawEventArgs.cs 728 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Terminal.Gui {
  7. /// <summary>
  8. /// Event args for draw events
  9. /// </summary>
  10. public class DrawEventArgs : EventArgs{
  11. /// <summary>
  12. /// Creates a new instance of the <see cref="DrawEventArgs"/> class.
  13. /// </summary>
  14. /// <param name="rect">Gets the view-relative rectangle describing the currently visible viewport into the <see cref="View"/>.</param>
  15. public DrawEventArgs (Rect rect)
  16. {
  17. Rect = rect;
  18. }
  19. /// <summary>
  20. /// Gets the view-relative rectangle describing the currently visible viewport into the <see cref="View"/>.
  21. /// </summary>
  22. public Rect Rect { get; }
  23. }
  24. }