| 1 | #[cfg(windows)] |
| 2 | mod windows_impl; |
| 3 | #[cfg(windows)] |
| 4 | pub use windows_impl::*; |
| 5 | |
| 6 | #[cfg(not(windows))] |
| 7 | mod stub; |
| 8 | #[cfg(not(windows))] |
| 9 | pub use stub::*; |
| 10 | |
| 11 | pub type NativeHandle = isize; |
| 12 | |
| 13 | #[derive(Debug, Clone, Copy, PartialEq)] |
| 14 | pub struct WorkArea { |
| 15 | pub left: i32, |
| 16 | pub top: i32, |
| 17 | pub right: i32, |
| 18 | pub bottom: i32, |
| 19 | pub scale: f32, |
| 20 | } |
| 21 | |
| 22 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
| 23 | pub enum TrayCommand { |
| 24 | Toggle, |
| 25 | Open, |
| 26 | ToggleSound, |
| 27 | ToggleDoNotDisturb, |
| 28 | Settings, |
| 29 | Quit, |
| 30 | } |