1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! A clonable, paint-only snapshot of a realized subtree — the "ghost" an
//! exiting element leaves behind while it animates out.
//!
//! [`FrameNode`](crate::frame) is not `Clone` (it carries interactive,
//! per-frame state: scroll geometry, accessibility projection, live editors).
//! An exit animation outlives the element, so it cannot borrow the live node;
//! it snapshots just what painting needs into this owned, clonable tree. There
//! is no live widget behind a ghost — a text input collapses to a plain box
//! ([`GhostPaint::InputBox`]), since the editor is gone with the element.
use Rect;
use crate;
use crateStyle;
use crateResolvedText;
/// One node of a snapshotted subtree: an absolute rect, the resolved style to
/// paint, the inherited clip it lived within, its paint payload, and children
/// in paint order. Cheap to clone (the heavy path/image payloads are `Arc`-shared).
pub
/// The paint payload of a [`GhostNode`], mirroring the live frame's paint
/// kinds. Inputs collapse to [`GhostPaint::InputBox`] (the box only — no live
/// editor, caret, or selection in a snapshot).
pub