LayoutEventArgs.cs 570 B

123456789101112
  1. namespace Terminal.Gui;
  2. /// <summary>Event arguments for the <see cref="View.SubViewsLaidOut"/> event.</summary>
  3. public class LayoutEventArgs : EventArgs
  4. {
  5. /// <summary>Creates a new instance of the <see cref="Terminal.Gui.LayoutEventArgs"/> class.</summary>
  6. /// <param name="oldContentSize">The view that the event is about.</param>
  7. public LayoutEventArgs (Size oldContentSize) { OldContentSize = oldContentSize; }
  8. /// <summary>The viewport of the <see cref="View"/> before it was laid out.</summary>
  9. public Size OldContentSize { get; set; }
  10. }