Browse Source

PosCenter -> public

Tig 1 year ago
parent
commit
8d4f706b25
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Terminal.Gui/View/Layout/Pos.cs

+ 6 - 1
Terminal.Gui/View/Layout/Pos.cs

@@ -462,9 +462,14 @@ public class PosAnchorEnd : Pos
     }
     }
 }
 }
 
 
-internal class PosCenter : Pos
+/// <summary>
+///     Represents a position that is centered.
+/// </summary>
+public class PosCenter : Pos
 {
 {
+    /// <inheritdoc />
     public override string ToString () { return "Center"; }
     public override string ToString () { return "Center"; }
+
     internal override int Anchor (int width) { return width / 2; }
     internal override int Anchor (int width) { return width / 2; }
 
 
     internal override int Calculate (int superviewDimension, Dim dim, View us, Dimension dimension)
     internal override int Calculate (int superviewDimension, Dim dim, View us, Dimension dimension)