1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
use cratePoint;
use KeyModifier;
use MouseButton;
use MouseWheelDirection;
/// Represents the data associated with a mouse event.
///
/// This struct contains information about the position of the mouse,
/// the button that was pressed, and the modifier keys (e.g., shift, ctrl, alt).
///
/// # Fields
/// * `x` - The x-coordinate of the mouse position.
/// * `y` - The y-coordinate of the mouse position.
/// * `button` - The button that was pressed.
/// * `modifier` - The modifier keys (e.g., shift, ctrl, alt).
/// Represents the type of mouse event.
///
/// This enum defines the possible types of mouse events that can occur.
///
/// # Values
/// * `Enter` - The mouse pointer has entered a control .
/// * `Leave` - The mouse pointer has left a control.
/// * `Over` - The mouse pointer is over a control.
/// * `Pressed` - A mouse button has been pressed.
/// * `Released` - A mouse button has been released.
/// * `DoubleClick` - A mouse button has been double-clicked.
/// * `Drag` - The mouse pointer is being dragged.
/// * `Wheel` - The mouse wheel has been rotated.