Skip to main content

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 entered node bounds.
15    PointerEnter,
16    /// Pointer exited node bounds.
17    PointerLeave,
18    /// Scroll wheel or touch pan delta.
19    Scroll(Point),
20    /// Key press while focused.
21    KeyDown(KeyCode, Modifiers),
22    /// Key release while focused.
23    KeyUp(KeyCode, Modifiers),
24    /// Text committed via keyboard or IME.
25    TextInput(String),
26    /// Input value mutated.
27    Change(String),
28    /// Node gained keyboard focus.
29    Focus,
30    /// Node lost keyboard focus.
31    Blur,
32}