mirror of
https://github.com/storytold/winit.git
synced 2026-12-01 18:54:59 +01:00
Implement get_inner_size() for mac.
This commit is contained in:
1 parent
55bb652c4a
commit
d8a1fe5c97
1 file changed
+2
-1
+2
-1
@@ -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)> {
|
||||
|
||||
Reference in new issue
Block a user