namespace Terminal.Gui;
/// Defines the event arguments for
public class FocusEventArgs : EventArgs
{
/// Constructs.
/// The view that is losing focus.
/// The view that is gaining focus.
public FocusEventArgs (View leaving, View entering) {
Leaving = leaving;
Entering = entering;
}
///
/// Indicates if the current focus 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.
///
public bool Handled { get; set; }
/// Indicates the view that is losing focus.
public View Leaving { get; set; }
/// Indicates the view that is gaining focus.
public View Entering { get; set; }
}