Browse Source

Undo naming change that isn't changed globally until next batch

Brandon Thetford 1 year ago
parent
commit
13bd11d5d0

+ 3 - 3
Terminal.Gui/Drawing/LineCanvas.cs

@@ -67,7 +67,7 @@ public class LineCanvas : IDisposable
     ///     Gets the rectangle that describes the bounds of the canvas. Location is the coordinates of the line that is
     ///     furthest left/top and Size is defined by the line that extends the furthest right/bottom.
     /// </summary>
-    public Rectangle Bounds
+    public Rect Bounds
     {
         get
         {
@@ -78,11 +78,11 @@ public class LineCanvas : IDisposable
                     return _cachedBounds;
                 }
 
-                Rectangle bounds = _lines [0].Bounds;
+                Rect bounds = _lines [0].Bounds;
 
                 for (var i = 1; i < _lines.Count; i++)
                 {
-                    bounds = Rectangle.Union (bounds, _lines [i].Bounds);
+                    bounds = Rect.Union (bounds, _lines [i].Bounds);
                 }
 
                 if (bounds is {Width: 0} or {Height: 0})

+ 1 - 1
Terminal.Gui/Text/Autocomplete/PopupAutocomplete.PopUp.cs

@@ -16,7 +16,7 @@ public abstract partial class PopupAutocomplete
 
         public override bool MouseEvent (MouseEvent mouseEvent) { return _autoComplete.MouseEvent (mouseEvent); }
 
-        public override void OnDrawContent (Rectangle contentArea)
+        public override void OnDrawContent (Rect contentArea)
         {
             if (!_autoComplete.LastPopupPos.HasValue)
             {