FlowModes.cs 979 B

12345678910111213141516171819202122232425262728293031
  1. namespace Terminal.Gui;
  2. /// <summary>
  3. /// Determines how items will be arranged in a container when alignment is <see cref="Alignment.Start"/> or <see cref="Alignment.End"/>,
  4. /// </summary>
  5. [Flags]
  6. public enum FlowModes
  7. {
  8. /// <summary>
  9. /// The items will be arranged from start (left/top) to end (right/bottom).
  10. /// </summary>
  11. StartToEnd = 0,
  12. /// <summary>
  13. /// The items will be arranged from end (right/bottom) to start (left/top).
  14. /// </summary>
  15. /// <remarks>
  16. /// Not implemented.
  17. /// </remarks>
  18. EndToStart = 1,
  19. /// <summary>
  20. /// When aligning via <see cref="Alignment.Start"/> or <see cref="Alignment.End"/>, the first item will be aligned at the opposite end.
  21. /// </summary>
  22. IgnoreFirst = 2,
  23. /// <summary>
  24. /// When aligning via <see cref="Alignment.Start"/> or <see cref="Alignment.End"/>, the last item will be aligned at the opposite end.
  25. /// </summary>
  26. IgnoreLast = 4,
  27. }