Skip to main content

euv_core/scene/focus/
struct.rs

1use super::*;
2
3/// Tracks active focus, hover, and pointer-press targets across the retained scene graph.
4#[derive(Clone, Copy, Data, Debug, Default, Eq, PartialEq)]
5pub struct FocusManager {
6    /// Currently focused node receiving keyboard and IME input.
7    #[get(skip)]
8    pub(crate) focused: Option<NodeId>,
9    /// Node currently hovered by the primary pointer.
10    #[get(skip)]
11    pub(crate) hovered: Option<NodeId>,
12    /// Node currently pressed by the primary pointer.
13    #[get(skip)]
14    pub(crate) pressed: Option<NodeId>,
15}