-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v2_develop' of github.com:gui-cs/Terminal.Gui into v2_d…
…evelop
- Loading branch information
Showing
7 changed files
with
159 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace Terminal.Gui; | ||
|
||
/// <summary>Text alignment enumeration, controls how text is displayed.</summary> | ||
public enum TextAlignment | ||
{ | ||
/// <summary>The text will be left-aligned.</summary> | ||
Left, | ||
|
||
/// <summary>The text will be right-aligned.</summary> | ||
Right, | ||
|
||
/// <summary>The text will be centered horizontally.</summary> | ||
Centered, | ||
|
||
/// <summary> | ||
/// The text will be justified (spaces will be added to existing spaces such that the text fills the container | ||
/// horizontally). | ||
/// </summary> | ||
Justified | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
namespace Terminal.Gui; | ||
|
||
/// <summary>Text direction enumeration, controls how text is displayed.</summary> | ||
/// <remarks> | ||
/// <para>TextDirection [H] = Horizontal [V] = Vertical</para> | ||
/// <table> | ||
/// <tr> | ||
/// <th>TextDirection</th> <th>Description</th> | ||
/// </tr> | ||
/// <tr> | ||
/// <td>LeftRight_TopBottom [H]</td> <td>Normal</td> | ||
/// </tr> | ||
/// <tr> | ||
/// <td>TopBottom_LeftRight [V]</td> <td>Normal</td> | ||
/// </tr> | ||
/// <tr> | ||
/// <td>RightLeft_TopBottom [H]</td> <td>Invert Text</td> | ||
/// </tr> | ||
/// <tr> | ||
/// <td>TopBottom_RightLeft [V]</td> <td>Invert Lines</td> | ||
/// </tr> | ||
/// <tr> | ||
/// <td>LeftRight_BottomTop [H]</td> <td>Invert Lines</td> | ||
/// </tr> | ||
/// <tr> | ||
/// <td>BottomTop_LeftRight [V]</td> <td>Invert Text</td> | ||
/// </tr> | ||
/// <tr> | ||
/// <td>RightLeft_BottomTop [H]</td> <td>Invert Text + Invert Lines</td> | ||
/// </tr> | ||
/// <tr> | ||
/// <td>BottomTop_RightLeft [V]</td> <td>Invert Text + Invert Lines</td> | ||
/// </tr> | ||
/// </table> | ||
/// </remarks> | ||
public enum TextDirection | ||
{ | ||
/// <summary>Normal horizontal direction. <code>HELLO<br/>WORLD</code></summary> | ||
LeftRight_TopBottom, | ||
|
||
/// <summary>Normal vertical direction. <code>H W<br/>E O<br/>L R<br/>L L<br/>O D</code></summary> | ||
TopBottom_LeftRight, | ||
|
||
/// <summary>This is a horizontal direction. <br/> RTL <code>OLLEH<br/>DLROW</code></summary> | ||
RightLeft_TopBottom, | ||
|
||
/// <summary>This is a vertical direction. <code>W H<br/>O E<br/>R L<br/>L L<br/>D O</code></summary> | ||
TopBottom_RightLeft, | ||
|
||
/// <summary>This is a horizontal direction. <code>WORLD<br/>HELLO</code></summary> | ||
LeftRight_BottomTop, | ||
|
||
/// <summary>This is a vertical direction. <code>O D<br/>L L<br/>L R<br/>E O<br/>H W</code></summary> | ||
BottomTop_LeftRight, | ||
|
||
/// <summary>This is a horizontal direction. <code>DLROW<br/>OLLEH</code></summary> | ||
RightLeft_BottomTop, | ||
|
||
/// <summary>This is a vertical direction. <code>D O<br/>L L<br/>R L<br/>O E<br/>W H</code></summary> | ||
BottomTop_RightLeft | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
namespace Terminal.Gui; | ||
|
||
/// <summary>Vertical text alignment enumeration, controls how text is displayed.</summary> | ||
public enum VerticalTextAlignment | ||
{ | ||
/// <summary>The text will be top-aligned.</summary> | ||
Top, | ||
|
||
/// <summary>The text will be bottom-aligned.</summary> | ||
Bottom, | ||
|
||
/// <summary>The text will centered vertically.</summary> | ||
Middle, | ||
|
||
/// <summary> | ||
/// The text will be justified (spaces will be added to existing spaces such that the text fills the container | ||
/// vertically). | ||
/// </summary> | ||
Justified | ||
} |
Oops, something went wrong.