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
64
65
66
67
68
//! Individual key cell — geometry, label, and the action a tap commits.
use crateRect;
use Layer;
/// What happens when the user releases a tap on this key.
/// Visual label rendered on a key. Either text or a tiny glyph.
/// Built-in glyphs the keyboard paints procedurally (no font lookup
/// required so the keyboard renders even before the host app has
/// installed a typeface).
/// One key cell positioned and painted by the layout engine. Stored in
/// [`super::state::KeyboardState::last_painted_keys`] so taps can be
/// hit-tested in O(n).