use crate::dpi::{PhysicalPosition, PhysicalSize}; #[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] pub struct MonitorHandle; impl MonitorHandle { pub fn scale_factor(&self) -> f64 { 1.0 } pub fn position(&self) -> PhysicalPosition { PhysicalPosition { x: 0, y: 0 } } pub fn name(&self) -> Option { None } pub fn refresh_rate_millihertz(&self) -> Option { None } pub fn size(&self) -> PhysicalSize { PhysicalSize { width: 0, height: 0, } } pub fn video_modes(&self) -> impl Iterator { std::iter::empty() } } #[derive(Clone, Debug, PartialEq, Eq, Hash)] pub struct VideoMode; impl VideoMode { pub fn size(&self) -> PhysicalSize { unimplemented!(); } pub fn bit_depth(&self) -> u16 { unimplemented!(); } pub fn refresh_rate_millihertz(&self) -> u32 { 32000 } pub fn monitor(&self) -> MonitorHandle { MonitorHandle } }