SizeChangedEventArgs.cs 650 B

123456789101112131415
  1. namespace Terminal.Gui;
  2. /// <summary>Args for events about Size (e.g. Resized)</summary>
  3. public class SizeChangedEventArgs : EventArgs
  4. {
  5. /// <summary>Creates a new instance of the <see cref="SizeChangedEventArgs"/> class.</summary>
  6. /// <param name="size"></param>
  7. public SizeChangedEventArgs (Size? size) { Size = size; }
  8. /// <summary>Set to <see langword="true"/> to cause the resize to be cancelled, if appropriate.</summary>
  9. public bool Cancel { get; set; }
  10. /// <summary>Gets the size the event describes. This should reflect the new/current size after the event resolved.</summary>
  11. public Size? Size { get; }
  12. }