Table of Contents

Class MouseEventArgs

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Specifies the event arguments for MouseEventArgs. This is a higher-level construct than the wrapped MouseEventArgs class and is used for the events defined on View and subclasses of View (e.g. MouseEnter and MouseClick).

public class MouseEventArgs : HandledEventArgs
Inheritance
MouseEventArgs
Inherited Members

Properties

Flags

Flags indicating the state of the mouse buttons and the type of event that occurred.

IsDoubleClicked

Gets whether Flags contains any of the double-clicked related flags.

IsPressed

Gets whether Flags contains any of the button pressed related flags.

IsReleased

Gets whether Flags contains any of the button released related flags.

IsSingleClicked

Gets whether Flags contains any of the single-clicked related flags.

IsSingleDoubleOrTripleClicked

Gets whether Flags contains any of the mouse button clicked related flags.

IsTripleClicked

Gets whether Flags contains any of the triple-clicked related flags.

IsWheel

Gets whether Flags contains any of the mouse wheel related flags.

Position

The position of the mouse in View's Viewport-relative coordinates. Only valid if View is set.

ScreenPosition

The screen-relative mouse position.

View

The deepest View who's Frame contains ScreenPosition.

Methods

ToString()

Returns a string that represents the current MouseEventArgs.