euv_core/scene/event/enum.rs
1use super::*;
2
3/// Unified UI interaction event dispatched identically across all 7 platforms.
4#[derive(Clone, Debug, PartialEq)]
5pub enum UiEventKind {
6 /// Primary click or tap activation.
7 Click(Point),
8 /// Pointer contact down (mouse press, finger touch, stylus down).
9 PointerDown(Point),
10 /// Pointer motion over or dragging the node.
11 PointerMove(Point),
12 /// Pointer release.
13 PointerUp(Point),
14 /// Pointer interaction cancelled by OS or gesture arbitration.
15 PointerCancel,
16 /// Pointer entered node bounds.
17 PointerEnter,
18 /// Pointer exited node bounds.
19 PointerLeave,
20 /// Scroll wheel or touch pan delta.
21 Scroll(Point),
22 /// Key press while focused.
23 KeyDown(KeyCode, Modifiers),
24 /// Key release while focused.
25 KeyUp(KeyCode, Modifiers),
26 /// Text committed via keyboard or IME.
27 TextInput(String),
28 /// Input value mutated.
29 Change(String),
30 /// Node gained keyboard focus.
31 Focus,
32 /// Node lost keyboard focus.
33 Blur,
34}