euv-core 0.46.1

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::*;

/// Active character-range text selection targeting a live selectable `NodeKind::Text` node.
#[derive(Clone, Copy, Data, Debug, Eq, New, PartialEq)]
pub struct SelectionState {
    /// Scene node owning the selected text run.
    #[get(type(copy))]
    pub(crate) node_id: NodeId,
    /// Inclusive character index where selection started.
    #[get(type(copy))]
    pub(crate) anchor_char: usize,
    /// Active character index where selection currently ends.
    #[get(type(copy))]
    pub(crate) focus_char: usize,
}