2019-06-25 03:15:34 +02:00
|
|
|
use crate::dpi::{PhysicalPosition, PhysicalSize};
|
2019-09-24 19:39:13 -04:00
|
|
|
use crate::monitor::{MonitorHandle, VideoMode};
|
2019-06-25 03:15:34 +02:00
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
|
|
|
|
pub struct Handle;
|
|
|
|
|
|
|
|
|
|
impl Handle {
|
|
|
|
|
pub fn hidpi_factor(&self) -> f64 {
|
|
|
|
|
1.0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn position(&self) -> PhysicalPosition {
|
2019-09-24 19:33:32 -04:00
|
|
|
PhysicalPosition { x: 0.0, y: 0.0 }
|
2019-06-25 03:15:34 +02:00
|
|
|
}
|
|
|
|
|
|
2019-07-11 00:54:54 +02:00
|
|
|
pub fn name(&self) -> Option<String> {
|
2019-09-24 19:33:32 -04:00
|
|
|
None
|
2019-06-25 03:15:34 +02:00
|
|
|
}
|
|
|
|
|
|
2019-07-11 00:54:54 +02:00
|
|
|
pub fn size(&self) -> PhysicalSize {
|
2019-09-24 19:33:32 -04:00
|
|
|
PhysicalSize {
|
|
|
|
|
width: 0.0,
|
|
|
|
|
height: 0.0,
|
|
|
|
|
}
|
2019-06-25 03:15:34 +02:00
|
|
|
}
|
2019-07-11 00:54:54 +02:00
|
|
|
|
|
|
|
|
pub fn video_modes(&self) -> impl Iterator<Item = VideoMode> {
|
|
|
|
|
std::iter::empty()
|
|
|
|
|
}
|
2019-06-25 03:15:34 +02:00
|
|
|
}
|
2019-09-24 19:39:13 -04:00
|
|
|
|
2019-10-13 14:36:54 -04:00
|
|
|
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
2019-09-24 19:39:13 -04:00
|
|
|
pub struct Mode;
|
|
|
|
|
|
|
|
|
|
impl Mode {
|
|
|
|
|
pub fn size(&self) -> PhysicalSize {
|
|
|
|
|
unimplemented!();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn bit_depth(&self) -> u16 {
|
|
|
|
|
unimplemented!();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn refresh_rate(&self) -> u16 {
|
|
|
|
|
32
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn monitor(&self) -> MonitorHandle {
|
2019-09-24 19:41:59 -04:00
|
|
|
MonitorHandle { inner: Handle }
|
2019-09-24 19:39:13 -04:00
|
|
|
}
|
|
|
|
|
}
|