Table of Contents

Method NewMouseEvent

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

NewMouseEvent(MouseEvent)

Processes a MouseEvent. This method is called by OnMouseEvent(MouseEvent) when a mouse event occurs.

public bool? NewMouseEvent(MouseEvent mouseEvent)

Parameters

mouseEvent MouseEvent

Returns

bool?

true if the event was handled, false otherwise.

Remarks

A view must be both enabled and visible to receive mouse events.

This method calls OnMouseEvent(MouseEvent) to process the event. If the event is not handled, and one of the mouse buttons was clicked, it calls OnMouseClick(MouseEventEventArgs) to process the click.

See SetPressedHighlight(HighlightStyle) for more information.

If WantContinuousButtonPressed is true, the OnMouseClick(MouseEventEventArgs) event will be invoked repeatedly while the button is pressed.