#nullable enable
using System.ComponentModel;
namespace Terminal.Gui;
/// Event args for draw events
public class DrawEventArgs : CancelEventArgs
{
/// Creates a new instance of the class.
///
/// The Content-relative rectangle describing the new visible viewport into the
/// .
///
///
/// The Content-relative rectangle describing the old visible viewport into the
/// .
///
///
/// Add any regions that have been drawn to during operations to this context. This is
/// primarily
/// in support of .
///
public DrawEventArgs (Rectangle newViewport, Rectangle oldViewport, DrawContext? drawContext)
{
NewViewport = newViewport;
OldViewport = oldViewport;
DrawContext = drawContext;
}
/// Gets the Content-relative rectangle describing the old visible viewport into the .
public Rectangle OldViewport { get; }
/// Gets the Content-relative rectangle describing the currently visible viewport into the .
public Rectangle NewViewport { get; }
///
/// Add any regions that have been drawn to during operations to this context. This is
/// primarily
/// in support of .
///
public DrawContext? DrawContext { get; }
}