Add get_dimensions() to MonitorID

This commit is contained in:
Tomaka17 2014-08-02 11:17:49 +02:00
parent dbaef704ad
commit abceca1121
3 changed files with 27 additions and 2 deletions

View file

@ -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()
}
}