use tauri_runtime::dpi::PhysicalRect;
#[cfg(any(
target_os = "linux",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd"
))]
mod linux;
#[cfg(target_os = "macos")]
mod macos;
#[cfg(windows)]
mod windows;
pub trait MonitorExt {
fn work_area(&self) -> PhysicalRect<i32, u32>;
}
#[cfg(mobile)]
impl MonitorExt for tao::monitor::MonitorHandle {
fn work_area(&self) -> PhysicalRect<i32, u32> {
PhysicalRect {
size: self.size(),
position: self.position(),
}
}
}