Refactored Leave event and added unit tests

This commit is contained in:
Tig
2024-09-21 16:01:26 -06:00
parent e95ff61fef
commit f512cd49c3
7 changed files with 73 additions and 80 deletions

View File

@@ -25,3 +25,8 @@ When the user does something with the mouse, the `ConsoleDriver` maps the platfo
## **Global Mouse Handling**
The @Terminal.Gui.Application.MouseEvent event can be used if an application wishes to receive all mouse events.
## Mouse Enter/Leave Events
The @Terminal.Gui.View.MouseEnter and @Terminal.Gui.View.MouseLeave events enable a View to take action when the mouse is over the view. Internally, this is used to enable @Terminal.Gui.View.Highlight.