#nullable enable namespace Terminal.Gui; using System; /// /// Implement this interface to provide orientation support. /// /// /// See for a helper class that implements this interface. /// public interface IOrientation { /// /// Gets or sets the orientation of the View. /// Orientation Orientation { get; set; } /// /// Raised when is changing. Can be cancelled. /// public event EventHandler>? OrientationChanging; /// /// Called when is changing. /// /// The current orientation. /// The new orientation. /// to cancel the change. public bool OnOrientationChanging (Orientation currentOrientation, Orientation newOrientation) { return false; } /// /// Raised when has changed. /// public event EventHandler>? OrientationChanged; /// /// Called when has been changed. /// /// /// public void OnOrientationChanged (Orientation newOrientation) { return; } }