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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
pub mod bindings;
use crate::cmd::{sink::submit_cmd, Callback};
use crate::{log, types, v};
pub fn submit(callback: crate::cmd::Callback) {
submit_cmd(crate::cmd::Command::Callback(callback))
}
pub fn spawn_overlay(uid: types::Uid) {
log!("callback spawn_overlay.", v(&uid));
submit(Callback::FinishSpawnOverlay(uid));
}
pub fn get_window_titles(window_titles: String) {
log!(
"callback get_window_titles.",
"window_titles:",
&window_titles
);
submit(Callback::FinishGetWindowTitles(window_titles));
}
pub fn get_monitor_count(monitor_count: usize) {
log!(
"callback get_monitor_count.",
"monitor_count:",
v(monitor_count)
);
submit(Callback::FinishGetMonitorCount(monitor_count));
}
pub fn get_overlay_transform(
transform_info: types::OVROverlayTransform,
) {
log!("callback get_overlay_transform.", v(&transform_info));
submit(Callback::FinishGetOverlayTransform(transform_info));
}
pub fn get_overlay_type(type_: i32) {
log!("callback get_overlay_type.", "type_:", type_);
submit(Callback::FinishGetOverlayType(type_));
}
pub fn get_overlay_bounds(bounds: String) {
log!("callback get_overlay_bounds.", "bounds:", &bounds);
submit(Callback::FinishGetOverlayBounds(bounds));
}
pub fn get_finger_curls(curls: String) {
log!("callback get_finger_curls.", "curls:", &curls);
submit(Callback::FinishGetFingerCurls(curls));
}