1234567891011121314151617181920212223242526272829 |
- namespace Terminal.Gui;
- /// <summary>Event args for draw events</summary>
- public class DrawEventArgs : EventArgs
- {
- /// <summary>Creates a new instance of the <see cref="DrawEventArgs"/> class.</summary>
- /// <param name="newViewport">
- /// The Content-relative rectangle describing the new visible viewport into the
- /// <see cref="View"/>.
- /// </param>
- /// <param name="oldViewport">
- /// The Content-relative rectangle describing the old visible viewport into the
- /// <see cref="View"/>.
- /// </param>
- public DrawEventArgs (Rectangle newViewport, Rectangle oldViewport)
- {
- NewViewport = newViewport;
- OldViewport = oldViewport;
- }
- /// <summary>If set to true, the draw operation will be canceled, if applicable.</summary>
- public bool Cancel { get; set; }
- /// <summary>Gets the Content-relative rectangle describing the old visible viewport into the <see cref="View"/>.</summary>
- public Rectangle OldViewport { get; }
- /// <summary>Gets the Content-relative rectangle describing the currently visible viewport into the <see cref="View"/>.</summary>
- public Rectangle NewViewport { get; }
- }
|