HighlightStyle.cs 782 B

12345678910111213141516171819202122232425262728293031
  1. using System.Text.Json.Serialization;
  2. namespace Terminal.Gui;
  3. /// <summary>
  4. /// Describes the highlight style of a view when the mouse is over it.
  5. /// </summary>
  6. [JsonConverter (typeof (JsonStringEnumConverter<HighlightStyle>))]
  7. [Flags]
  8. public enum HighlightStyle
  9. {
  10. /// <summary>
  11. /// No highlight.
  12. /// </summary>
  13. None = 0,
  14. /// <summary>
  15. /// The mouse is hovering over the view (but not pressed). See <see cref="View.MouseEnter"/>.
  16. /// </summary>
  17. Hover = 1,
  18. /// <summary>
  19. /// The mouse is pressed within the <see cref="View.Viewport"/>.
  20. /// </summary>
  21. Pressed = 2,
  22. /// <summary>
  23. /// The mouse is pressed but moved outside the <see cref="View.Viewport"/>.
  24. /// </summary>
  25. PressedOutside = 4
  26. }