Event MouseEvent | Terminal.Gui v2 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Raised when a mouse event occurs. Can be cancelled by setting Handled to true.
public static event EventHandler<MouseEventArgs>? MouseEvent
Returns
Raised when a mouse event occurs. Can be cancelled by setting to true.
Remarks
ScreenPosition coordinates are screen-relative.
View will be the deepest view under the mouse.
Position coordinates are view-relative. Only valid if View is set.
Use this even to handle mouse events at the application level, before View-specific handling.