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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

/// Tracks active focus, hover, and pointer-press targets across the retained scene graph.
#[derive(Clone, Copy, Data, Debug, Default, Eq, PartialEq)]
pub struct FocusManager {
    /// Currently focused node receiving keyboard and IME input.
    #[get(skip)]
    pub(crate) focused: Option<NodeId>,
    /// Node currently hovered by the primary pointer.
    #[get(skip)]
    pub(crate) hovered: Option<NodeId>,
    /// Node currently pressed by the primary pointer.
    #[get(skip)]
    pub(crate) pressed: Option<NodeId>,
}