Fix compilation errors

This commit is contained in:
Ryan Goldstein 2019-09-24 19:39:13 -04:00
parent 3e8669ea7f
commit 6732fa731d
5 changed files with 54 additions and 8 deletions

View file

@ -1,5 +1,5 @@
use crate::dpi::{PhysicalPosition, PhysicalSize};
use crate::monitor::VideoMode;
use crate::monitor::{MonitorHandle, VideoMode};
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Handle;
@ -26,3 +26,28 @@ impl Handle {
std::iter::empty()
}
}
#[derive(Derivative)]
#[derivative(Clone, Debug, PartialEq, Eq, Hash)]
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 {
MonitorHandle {
inner: Handle
}
}
}