diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 6 |
1 files changed, 6 insertions, 0 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() + } } |