aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Partouche <DavidPartouche@users.noreply.github.com>2014-11-21 00:07:41 +0100
committerDavid Partouche <DavidPartouche@users.noreply.github.com>2014-11-21 00:07:41 +0100
commitc95b778e2c077c0b410f366ad3c85a93c40c6095 (patch)
treead41935bf40cc8c36b617c3c32518ee9ceeb6bb1
parent55bb652c4a71073ed3bf28c4a35907f33e4eb607 (diff)
parentd8a1fe5c97b18832b52a2e33f553ade69baf6c76 (diff)
downloadglutin-c95b778e2c077c0b410f366ad3c85a93c40c6095.tar.gz
glutin-c95b778e2c077c0b410f366ad3c85a93c40c6095.zip
Merge pull request #128 from glennw/inner-size-mac
Implement get_inner_size() for mac.
-rw-r--r--src/osx/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osx/mod.rs b/src/osx/mod.rs
index 64cc529..0b4a508 100644
--- a/src/osx/mod.rs
+++ b/src/osx/mod.rs
@@ -268,7 +268,8 @@ impl Window {
}
pub fn get_inner_size(&self) -> Option<(uint, uint)> {
- unimplemented!()
+ let rect = unsafe { NSView::frame(self.view) };
+ Some((rect.size.width as uint, rect.size.height as uint))
}
pub fn get_outer_size(&self) -> Option<(uint, uint)> {