BlueGit

ict rusty-teams

Files

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

stub.rs

stub.rs 1.0 KiB Download Raw
1use gpui_kit::Window;
2
3use super::{NativeHandle, TrayCommand, WorkArea};
4use crate::notify::badge::Badge;
5
6pub fn native_handle(_window: &Window) -> Option<NativeHandle> {
7 None
8}
9
10pub fn prepare_toast_window(_handle: NativeHandle) {}
11
12pub fn set_activatable(_handle: NativeHandle, _activatable: bool) {}
13
14pub fn work_area(_handle: NativeHandle) -> Option<WorkArea> {
15 None
16}
17
18pub fn place(_handle: NativeHandle, _x: i32, _y: i32, _width: i32, _height: i32) {}
19
20pub fn system_quiet() -> bool {
21 false
22}
23
24pub fn restore_and_raise(_handle: NativeHandle) {}
25
26pub fn hide_window(_handle: NativeHandle) {}
27
28pub fn flash(_handle: NativeHandle) {}
29
30pub fn set_badge(_handle: NativeHandle, _badge: Option<&Badge>) {}
31
32pub fn play_sound() {}
33
34pub struct Tray;
35
36impl Tray {
37 pub fn new(_sound_on: bool, _do_not_disturb: bool) -> Option<Self> {
38 None
39 }
40
41 pub fn poll(&self) -> Vec<TrayCommand> {
42 Vec::new()
43 }
44
45 pub fn sync(&self, _sound_on: bool, _do_not_disturb: bool, _mention: bool) {}
46}
47
48
49pub fn animations_enabled() -> bool {
50 true
51}