namespace Terminal.Gui.ViewBase;
///
/// Provides data for events that allow cancellation of adornment drawing in the Cancellable Work Pattern (CWP).
///
///
///
/// Used in events raised by to allow handlers to cancel the drawing
/// of , , and adornments.
///
///
///
///
public class DrawAdornmentsEventArgs
{
///
/// Gets the draw context for tracking drawn regions, or null if not tracking.
///
public DrawContext? Context { get; }
///
/// Gets or sets a value indicating whether the adornment drawing is handled. If true, drawing is cancelled.
///
public bool Handled { get; set; }
///
/// Initializes a new instance of the class.
///
/// The draw context, or null if not tracking.
public DrawAdornmentsEventArgs (DrawContext? context)
{
Context = context;
}
}