namespace Terminal.Gui;
///
/// Specifies the event arguments for . This is a higher-level construct than
/// the wrapped class and is used for the events defined on and subclasses
/// of View (e.g. and ).
///
public class MouseEventEventArgs : EventArgs
{
/// Constructs.
/// The mouse event.
public MouseEventEventArgs (MouseEvent me) { MouseEvent = me; }
///
/// Indicates if the current mouse event has already been processed and the driver should stop notifying any other
/// event subscriber. It's important to set this value to true specially when updating any View's layout from inside the
/// subscriber method.
///
///
/// This property forwards to the property and is provided as a convenience and
/// for backwards compatibility
///
public bool Handled
{
get => MouseEvent.Handled;
set => MouseEvent.Handled = value;
}
// TODO: Merge MouseEvent and MouseEventEventArgs into a single class.
/// The for the event.
public MouseEvent MouseEvent { get; set; }
}