Table of Contents

Method NewMouseEvent

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

NewMouseEvent(MouseEventArgs)

Processes a new MouseEvent. This method is called by RaiseMouseEvent(MouseEventArgs) when a mouse event occurs.

public bool? NewMouseEvent(MouseEventArgs mouseEvent)

Parameters

mouseEvent MouseEventArgs

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 raises RaiseMouseEvent(MouseEventArgs)/MouseEvent; if not handled, and one of the mouse buttons was clicked, the RaiseMouseClickEvent(MouseEventArgs)/MouseClick event will be raised

If WantContinuousButtonPressed is true, and the user presses and holds the mouse button, NewMouseEvent(MouseEventArgs) will be repeatedly called with the same MouseFlags for as long as the mouse button remains pressed.