fret-ui 0.1.0

Mechanism-layer UI engine for Fret with tree, layout, focus, routing, and interaction contracts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::super::*;

#[derive(Debug, Clone, Copy, Default)]
pub struct UiDebugTextConstraintsSnapshot {
    pub measured: Option<TextConstraints>,
    pub prepared: Option<TextConstraints>,
}

#[derive(Debug, Clone, Copy)]
pub struct UiDebugPaintTextPrepareHotspot {
    pub node: NodeId,
    pub element: Option<GlobalElementId>,
    pub element_kind: &'static str,
    pub text_len: u32,
    pub constraints: TextConstraints,
    pub reasons_mask: u16,
    pub prepare_time: Duration,
}