GrabMouseEventArgs.cs 681 B

123456789101112131415161718
  1. namespace Terminal.Gui;
  2. /// <summary>Args GrabMouse related events.</summary>
  3. public class GrabMouseEventArgs : EventArgs
  4. {
  5. /// <summary>Creates a new instance of the <see cref="GrabMouseEventArgs"/> class.</summary>
  6. /// <param name="view">The view that the event is about.</param>
  7. public GrabMouseEventArgs (View view) { View = view; }
  8. /// <summary>
  9. /// Flag that allows the cancellation of the event. If set to <see langword="true"/> in the event handler, the
  10. /// event will be canceled.
  11. /// </summary>
  12. public bool Cancel { get; set; }
  13. /// <summary>Gets the view that grabbed the mouse.</summary>
  14. public View View { get; }
  15. }