BlueGit

ict rusty-teams

Files

rusty-teams / crates / app-base / src / notify / platform / stub.rs

stub.rs

stub.rs 2.2 KiB Download Raw
1use gpui_kit::Window;
2
3use calling::ShareKind;
4
5use super::{NativeHandle, ScreenRect, ShareGeometry, TrayCommand, WorkArea};
6use crate::notify::badge::Badge;
7use crate::notify::ring_tone::Ringtone;
8
9pub fn native_handle(_window: &Window) -> Option<NativeHandle> {
10 None
11}
12
13pub fn prepare_toast_window(_handle: NativeHandle) {}
14
15pub fn set_activatable(_handle: NativeHandle, _activatable: bool) {}
16
17pub fn work_area(_handle: NativeHandle) -> Option<WorkArea> {
18 None
19}
20
21pub fn work_area_at(_x: i32, _y: i32) -> Option<WorkArea> {
22 None
23}
24
25pub fn place(_handle: NativeHandle, _x: i32, _y: i32, _width: i32, _height: i32) {}
26
27pub fn place_rect(_handle: NativeHandle, _x: i32, _y: i32, _width: i32, _height: i32) {}
28
29pub fn stack_group_above(_shared: NativeHandle, _group: &[NativeHandle]) {}
30
31pub fn show_window_inactive(_handle: NativeHandle) {}
32
33pub fn exclude_from_capture(_handle: NativeHandle) {}
34
35#[cfg(target_os = "linux")]
36pub fn make_window_click_through(window: &Window) {
37 super::x11_input::make_input_transparent(window);
38}
39
40#[cfg(not(target_os = "linux"))]
41pub fn make_window_click_through(_window: &Window) {}
42
43pub fn window_minimized(_handle: NativeHandle) -> bool {
44 false
45}
46
47pub fn window_rect(_handle: NativeHandle) -> Option<ScreenRect> {
48 None
49}
50
51pub fn share_geometry(_kind: ShareKind, _id: u64) -> Option<ShareGeometry> {
52 None
53}
54
55pub fn system_quiet() -> bool {
56 false
57}
58
59pub fn restore_and_raise(_handle: NativeHandle) {}
60
61pub fn hide_window(_handle: NativeHandle) {}
62
63pub fn flash(_handle: NativeHandle) {}
64
65pub fn stop_flash(_handle: NativeHandle) {}
66
67pub fn set_badge(_handle: NativeHandle, _badge: Option<&Badge>) {}
68
69pub fn play_sound() {}
70
71pub fn play_mp3(_bytes: Vec<u8>) {}
72
73pub struct RingTone;
74
75pub fn start_ring(_ringtone: Ringtone) -> Option<RingTone> {
76 None
77}
78
79pub fn start_ringback() -> Option<RingTone> {
80 None
81}
82
83pub fn play_preview(_ringtone: Ringtone) {}
84
85pub fn play_meeting_chime() {}
86
87pub struct Tray;
88
89impl Tray {
90 pub fn new(_sound_on: bool, _do_not_disturb: bool) -> Option<Self> {
91 None
92 }
93
94 pub fn poll(&self) -> Vec<TrayCommand> {
95 Vec::new()
96 }
97
98 pub fn sync(&self, _sound_on: bool, _do_not_disturb: bool, _mention: bool) {}
99}
100
101pub fn animations_enabled() -> bool {
102 true
103}