mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
namespace Terminal.Gui;
|
|
|
|
/// <summary>
|
|
/// Determines alignment modes for <see cref="Alignment"/>.
|
|
/// </summary>
|
|
[Flags]
|
|
public enum AlignmentModes
|
|
{
|
|
/// <summary>
|
|
/// The items will be arranged from start (left/top) to end (right/bottom).
|
|
/// </summary>
|
|
StartToEnd = 0,
|
|
|
|
/// <summary>
|
|
/// The items will be arranged from end (right/bottom) to start (left/top).
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Not implemented.
|
|
/// </remarks>
|
|
EndToStart = 1,
|
|
|
|
/// <summary>
|
|
/// At least one space will be added between items. Useful for justifying text where at least one space is needed.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// If the total size of the items is greater than the container size, the space between items will be ignored
|
|
/// starting from the end.
|
|
/// </para>
|
|
/// </remarks>
|
|
AddSpaceBetweenItems = 2,
|
|
|
|
/// <summary>
|
|
/// When aligning via <see cref="Alignment.Start"/> or <see cref="Alignment.End"/>, the item opposite to the alignment (the first or last item) will be ignored.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// <para>
|
|
/// If the container is smaller than the total size of the items, the end items will be clipped (their locations
|
|
/// will be greater than the container size).
|
|
/// </para>
|
|
/// </remarks>
|
|
/// <example>
|
|
/// <c>
|
|
/// Start: |111 2222 33333|
|
|
/// End: |111 2222 33333|
|
|
/// </c>
|
|
/// </example>
|
|
IgnoreFirstOrLast = 4,
|
|
} |