GrabMouseEventArgs.cs 766 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. namespace Terminal.Gui {
  3. /// <summary>
  4. /// Args for events that relate to specific <see cref="Application.MouseGrabView"/>
  5. /// </summary>
  6. public class GrabMouseEventArgs : EventArgs {
  7. /// <summary>
  8. /// Creates a new instance of the <see cref="GrabMouseEventArgs"/> class.
  9. /// </summary>
  10. /// <param name="view">The view that the event is about.</param>
  11. public GrabMouseEventArgs (View view)
  12. {
  13. View = view;
  14. }
  15. /// <summary>
  16. /// The view that the event is about.
  17. /// </summary>
  18. public View View { get; }
  19. /// <summary>
  20. /// Flag that allows the cancellation of the event. If set to <see langword="true"/> in the
  21. /// event handler, the event will be canceled.
  22. /// </summary>
  23. public bool Cancel { get; set; }
  24. }
  25. }