mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-26 03:36:32 +11:00
Implement get_inner_size() for mac.
This commit is contained in:
parent
55bb652c4a
commit
d8a1fe5c97
1 changed files with 2 additions and 1 deletions
|
@ -268,7 +268,8 @@ impl Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_inner_size(&self) -> Option<(uint, uint)> {
|
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)> {
|
pub fn get_outer_size(&self) -> Option<(uint, uint)> {
|
||||||
|
|
Loading…
Add table
Reference in a new issue