|
@@ -432,12 +432,6 @@ namespace Terminal.Gui {
|
|
return p.X < 0 || p.X > r.Width - 1 || p.Y < 0 || p.Y > r.Height - 1;
|
|
return p.X < 0 || p.X > r.Width - 1 || p.Y < 0 || p.Y > r.Height - 1;
|
|
}
|
|
}
|
|
|
|
|
|
- /// <summary>
|
|
|
|
- /// This event is fired once when the application is first loaded. The dimensions of the
|
|
|
|
- /// terminal are provided.
|
|
|
|
- /// </summary>
|
|
|
|
- public static Action<ResizedEventArgs> Loaded;
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Building block API: Prepares the provided <see cref="Toplevel"/> for execution.
|
|
/// Building block API: Prepares the provided <see cref="Toplevel"/> for execution.
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -472,8 +466,8 @@ namespace Terminal.Gui {
|
|
if (toplevel.LayoutStyle == LayoutStyle.Computed)
|
|
if (toplevel.LayoutStyle == LayoutStyle.Computed)
|
|
toplevel.SetRelativeLayout (new Rect (0, 0, Driver.Cols, Driver.Rows));
|
|
toplevel.SetRelativeLayout (new Rect (0, 0, Driver.Cols, Driver.Rows));
|
|
toplevel.LayoutSubviews ();
|
|
toplevel.LayoutSubviews ();
|
|
- Loaded?.Invoke (new ResizedEventArgs () { Rows = Driver.Rows, Cols = Driver.Cols });
|
|
|
|
toplevel.WillPresent ();
|
|
toplevel.WillPresent ();
|
|
|
|
+ toplevel.OnLoaded ();
|
|
Redraw (toplevel);
|
|
Redraw (toplevel);
|
|
toplevel.PositionCursor ();
|
|
toplevel.PositionCursor ();
|
|
Driver.Refresh ();
|
|
Driver.Refresh ();
|