Add get_dimensions() to MonitorID
This commit is contained in:
parent
dbaef704ad
commit
abceca1121
3 changed files with 27 additions and 2 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue