winit/src/platform_impl/web/monitor.rs

54 lines
1 KiB
Rust
Raw Normal View History

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)]
pub struct MonitorHandle;
2019-06-25 03:15:34 +02:00
impl MonitorHandle {
pub fn scale_factor(&self) -> f64 {
unreachable!()
2019-06-25 03:15:34 +02:00
}
pub fn position(&self) -> PhysicalPosition<i32> {
unreachable!()
2019-06-25 03:15:34 +02:00
}
pub fn name(&self) -> Option<String> {
unreachable!()
2019-06-25 03:15:34 +02:00
}
pub fn refresh_rate_millihertz(&self) -> Option<u32> {
unreachable!()
}
pub fn size(&self) -> PhysicalSize<u32> {
unreachable!()
2019-06-25 03:15:34 +02:00
}
pub fn video_modes(&self) -> Empty<VideoModeHandle> {
unreachable!()
}
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)]
pub struct VideoModeHandle;
2019-09-24 19:39:13 -04:00
impl VideoModeHandle {
pub fn size(&self) -> PhysicalSize<u32> {
unreachable!();
2019-09-24 19:39:13 -04:00
}
pub fn bit_depth(&self) -> u16 {
unreachable!();
2019-09-24 19:39:13 -04:00
}
pub fn refresh_rate_millihertz(&self) -> u32 {
unreachable!();
2019-09-24 19:39:13 -04:00
}
2022-09-21 10:04:28 +02:00
pub fn monitor(&self) -> MonitorHandle {
unreachable!();
2019-09-24 19:39:13 -04:00
}
}