aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index bb45c8a..7a4c644 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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()
+ }
}