dot_ix_model 0.10.0

Model for the `dot_ix` diagramming application.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

/// Whether an element is focused, hovered, or active.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Deserialize, Serialize)]
#[serde(rename_all = "snake_case")]
pub enum HighlightState {
    /// The element is not focused, and the cursor is not positioned over it.
    Normal,
    /// The element is focused, and the cursor is not positioned over it.
    Focus,
    /// The element is focused, and the cursor is positioned over it.
    FocusHover,
    /// The element is not focused, and the cursor is positioned over it.
    Hover,
    /// The element is clicked / pressed.
    Active,
}