FlagSelectorStyles.cs 817 B

12345678910111213141516171819202122232425262728293031
  1. #nullable enable
  2. namespace Terminal.Gui.Views;
  3. /// <summary>
  4. /// Styles for <see cref="FlagSelector"/>.
  5. /// </summary>
  6. [Flags]
  7. public enum FlagSelectorStyles
  8. {
  9. /// <summary>
  10. /// No styles.
  11. /// </summary>
  12. None = 0b_0000_0000,
  13. /// <summary>
  14. /// Show the `None` checkbox. This will add a checkbox with the title "None" and a value of 0
  15. /// even if the flags do not contain a value of 0.
  16. /// </summary>
  17. ShowNone = 0b_0000_0001,
  18. /// <summary>
  19. /// Show the value edit. This will add a read-only <see cref="TextField"/> to the <see cref="FlagSelector"/> to allow
  20. /// the user to see the value.
  21. /// </summary>
  22. ShowValueEdit = 0b_0000_0010,
  23. /// <summary>
  24. /// All styles.
  25. /// </summary>
  26. All = ShowNone | ShowValueEdit
  27. }