DimPercentMode.cs 533 B

123456789101112131415161718192021
  1. using Terminal.Gui.Analyzers.Internal.Attributes;
  2. namespace Terminal.Gui;
  3. /// <summary>
  4. /// Indicates the mode for a <see cref="DimPercent"/> object.
  5. /// </summary>
  6. [GenerateEnumExtensionMethods]
  7. public enum DimPercentMode
  8. {
  9. /// <summary>
  10. /// The dimension is computed using the View's position (<see cref="View.X"/> or <see cref="View.Y"/>).
  11. /// </summary>
  12. Position = 0,
  13. /// <summary>
  14. /// The dimension is computed using the View's <see cref="View.ContentSize"/>.
  15. /// </summary>
  16. ContentSize = 1
  17. }