mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 21:30:03 -04:00
Add get_dimensions() to MonitorID
This commit is contained in:
@@ -300,4 +300,10 @@ impl MonitorID {
|
||||
let &MonitorID(ref id) = self;
|
||||
id.get_name()
|
||||
}
|
||||
|
||||
/// Returns the number of pixels currently displayed on the monitor.
|
||||
pub fn get_dimensions(&self) -> (uint, uint) {
|
||||
let &MonitorID(ref id) = self;
|
||||
id.get_dimensions()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user