euv-core 0.48.3

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
16
17
18
use super::*;

/// Active single-node or cross-node character-range text selection targeting live selectable `NodeKind::Text` nodes.
#[derive(Clone, Copy, Data, Debug, Eq, New, PartialEq)]
pub struct SelectionState {
    /// Scene node where the selection anchor started.
    #[get(type(copy))]
    pub(crate) anchor_node: NodeId,
    /// Inclusive character index inside `anchor_node` where selection started.
    #[get(type(copy))]
    pub(crate) anchor_char: usize,
    /// Active scene node where selection currently ends.
    #[get(type(copy))]
    pub(crate) focus_node: NodeId,
    /// Active character index inside `focus_node` where selection currently ends.
    #[get(type(copy))]
    pub(crate) focus_char: usize,
}