LayoutStyle.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. namespace Terminal.Gui;
  2. /// <summary>
  3. /// <para>Indicates the LayoutStyle for the <see cref="View"/>.</para>
  4. /// <para>
  5. /// If Absolute, the <see cref="View.X"/>, <see cref="View.Y"/>, <see cref="View.Width"/>, and
  6. /// <see cref="View.Height"/> objects are all absolute values and are not relative. The position and size of the
  7. /// view is described by <see cref="View.Frame"/>.
  8. /// </para>
  9. /// <para>
  10. /// If Computed, one or more of the <see cref="View.X"/>, <see cref="View.Y"/>, <see cref="View.Width"/>, or
  11. /// <see cref="View.Height"/> objects are relative to the <see cref="View.SuperView"/> and are computed at layout
  12. /// time.
  13. /// </para>
  14. /// </summary>
  15. public enum LayoutStyle
  16. {
  17. /// <summary>
  18. /// Indicates the <see cref="View.X"/>, <see cref="View.Y"/>, <see cref="View.Width"/>, and
  19. /// <see cref="View.Height"/> objects are all absolute values and are not relative. The position and size of the view
  20. /// is described by <see cref="View.Frame"/>.
  21. /// </summary>
  22. Absolute,
  23. /// <summary>
  24. /// Indicates one or more of the <see cref="View.X"/>, <see cref="View.Y"/>, <see cref="View.Width"/>, or
  25. /// <see cref="View.Height"/>
  26. /// objects are relative to the <see cref="View.SuperView"/> and are computed at layout time. The position and size of
  27. /// the
  28. /// view
  29. /// will be computed based on these objects at layout time. <see cref="View.Frame"/> will provide the absolute computed
  30. /// values.
  31. /// </summary>
  32. Computed
  33. }