euv-core 0.48.2

Core cross-platform runtime for euv featuring arena-based fine-grained reactivity, deterministic layout, flat scene graph, multi-mode rendering, and direct OS platform adapters.
Documentation
use super::*;

/// Unified UI interaction event dispatched identically across all 7 platforms.
#[derive(Clone, Debug, PartialEq)]
pub enum UiEventKind {
    /// Primary click or tap activation.
    Click(Point),
    /// Pointer contact down (mouse press, finger touch, stylus down).
    PointerDown(Point),
    /// Pointer motion over or dragging the node.
    PointerMove(Point),
    /// Pointer release.
    PointerUp(Point),
    /// Pointer interaction cancelled by OS or gesture arbitration.
    PointerCancel,
    /// Pointer entered node bounds.
    PointerEnter,
    /// Pointer exited node bounds.
    PointerLeave,
    /// Scroll wheel or touch pan delta.
    Scroll(Point),
    /// Key press while focused.
    KeyDown(KeyCode, Modifiers),
    /// Key release while focused.
    KeyUp(KeyCode, Modifiers),
    /// Text committed via keyboard or IME.
    TextInput(String),
    /// Input value mutated.
    Change(String),
    /// Node gained keyboard focus.
    Focus,
    /// Node lost keyboard focus.
    Blur,
}