@@ -0,0 +1,10 @@
+namespace Terminal.Gui;
+
+/// <summary>
+/// Event arguments for the <see cref="View.Highlight"/> event.
+/// </summary>
+public class HighlightEventArgs : CancelEventArgs<HighlightStyle>
+{
+ /// <inheritdoc />
+ public HighlightEventArgs (HighlightStyle currentValue, HighlightStyle newValue) : base (currentValue, newValue) { }
+}
@@ -0,0 +1,30 @@
+/// Describes the highlight style of a view.
+[Flags]
+public enum HighlightStyle
+ /// <summary>
+ /// No highlight.
+ /// </summary>
+ None = 0,
+#if HOVER
+ /// The mouse is hovering over the view.
+ Hover = 1,
+#endif
+ /// The mouse is pressed within the <see cref="View.Viewport"/>.
+ Pressed = 2,
+ /// The mouse is pressed but moved outside the <see cref="View.Viewport"/>.
+ PressedOutside = 4