Class CursesMouseEvent
Mouse input event.
Inherited Members
Namespace: Sharpie.Backend
Assembly: sharpie.dll
Syntax
public sealed record CursesMouseEvent : CursesEvent, IEquatable<CursesEvent>, IEquatable<CursesMouseEvent>
Constructors
CursesMouseEvent(int, int, MouseButton, MouseButtonState, ModifierKey)
Mouse input event.
Declaration
public CursesMouseEvent(int X, int Y, MouseButton Button, MouseButtonState State, ModifierKey Modifiers)
Parameters
Type | Name | Description |
---|---|---|
int | X | The mouse X coordinate. |
int | Y | The mouse Y coordinate. |
MouseButton | Button | The mouse button. |
MouseButtonState | State | The mouse button state. |
ModifierKey | Modifiers | Key modifiers. |
Properties
Button
The mouse button.
Declaration
public MouseButton Button { get; init; }
Property Value
Type | Description |
---|---|
MouseButton |
Modifiers
Key modifiers.
Declaration
public ModifierKey Modifiers { get; init; }
Property Value
Type | Description |
---|---|
ModifierKey |
State
The mouse button state.
Declaration
public MouseButtonState State { get; init; }
Property Value
Type | Description |
---|---|
MouseButtonState |
X
The mouse X coordinate.
Declaration
public int X { get; init; }
Property Value
Type | Description |
---|---|
int |
Y
The mouse Y coordinate.
Declaration
public int Y { get; init; }
Property Value
Type | Description |
---|---|
int |