GrabMouseEventArgs.cs 688 B

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