2023-08-26 18:56:44 +02:00
|
|
|
use std::iter::Empty;
|
|
|
|
|
|
2019-06-25 03:15:34 +02:00
|
|
|
use crate::dpi::{PhysicalPosition, PhysicalSize};
|
|
|
|
|
|
|
|
|
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
2022-03-18 14:09:39 +01:00
|
|
|
pub struct MonitorHandle;
|
2019-06-25 03:15:34 +02:00
|
|
|
|
2022-03-18 14:09:39 +01:00
|
|
|
impl MonitorHandle {
|
2020-01-03 14:52:27 -05:00
|
|
|
pub fn scale_factor(&self) -> f64 {
|
2023-08-26 18:56:44 +02:00
|
|
|
unreachable!()
|
2019-06-25 03:15:34 +02:00
|
|
|
}
|
|
|
|
|
|
2020-01-04 01:33:07 -05:00
|
|
|
pub fn position(&self) -> PhysicalPosition<i32> {
|
2023-08-26 18:56:44 +02:00
|
|
|
unreachable!()
|
2019-06-25 03:15:34 +02:00
|
|
|
}
|
|
|
|
|
|
2019-07-11 00:54:54 +02:00
|
|
|
pub fn name(&self) -> Option<String> {
|
2023-08-26 18:56:44 +02:00
|
|
|
unreachable!()
|
2019-06-25 03:15:34 +02:00
|
|
|
}
|
|
|
|
|
|
2022-07-08 13:25:56 +03:00
|
|
|
pub fn refresh_rate_millihertz(&self) -> Option<u32> {
|
2023-08-26 18:56:44 +02:00
|
|
|
unreachable!()
|
2022-07-08 13:25:56 +03:00
|
|
|
}
|
|
|
|
|
|
2020-01-04 01:33:07 -05:00
|
|
|
pub fn size(&self) -> PhysicalSize<u32> {
|
2023-08-26 18:56:44 +02:00
|
|
|
unreachable!()
|
2019-06-25 03:15:34 +02:00
|
|
|
}
|
2019-07-11 00:54:54 +02:00
|
|
|
|
2023-12-26 22:12:33 +01:00
|
|
|
pub fn video_modes(&self) -> Empty<VideoModeHandle> {
|
2023-08-26 18:56:44 +02:00
|
|
|
unreachable!()
|
2019-07-11 00:54:54 +02:00
|
|
|
}
|
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)]
|
2023-12-26 22:12:33 +01:00
|
|
|
pub struct VideoModeHandle;
|
2019-09-24 19:39:13 -04:00
|
|
|
|
2023-12-26 22:12:33 +01:00
|
|
|
impl VideoModeHandle {
|
2020-01-04 01:33:07 -05:00
|
|
|
pub fn size(&self) -> PhysicalSize<u32> {
|
2023-08-26 18:56:44 +02:00
|
|
|
unreachable!();
|
2019-09-24 19:39:13 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn bit_depth(&self) -> u16 {
|
2023-08-26 18:56:44 +02:00
|
|
|
unreachable!();
|
2019-09-24 19:39:13 -04:00
|
|
|
}
|
|
|
|
|
|
2022-07-08 13:25:56 +03:00
|
|
|
pub fn refresh_rate_millihertz(&self) -> u32 {
|
2023-08-26 18:56:44 +02:00
|
|
|
unreachable!();
|
2019-09-24 19:39:13 -04:00
|
|
|
}
|
|
|
|
|
|
2022-09-21 10:04:28 +02:00
|
|
|
pub fn monitor(&self) -> MonitorHandle {
|
2023-08-26 18:56:44 +02:00
|
|
|
unreachable!();
|
2019-09-24 19:39:13 -04:00
|
|
|
}
|
|
|
|
|
}
|