mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 13:31:29 +11:00
get/set_size() -> get/set_inner/outer_size()
This commit is contained in:
parent
0d122cec47
commit
d4e334aecb
13
src/lib.rs
13
src/lib.rs
|
@ -62,13 +62,18 @@ impl Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn get_size(&self) -> (uint, uint) {
|
pub fn get_inner_size(&self) -> (uint, uint) {
|
||||||
self.window.get_size()
|
self.window.get_inner_size()
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn set_size(&self, x: uint, y: uint) {
|
pub fn get_outer_size(&self) -> (uint, uint) {
|
||||||
self.window.set_size(x, y)
|
self.window.get_outer_size()
|
||||||
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
pub fn set_inner_size(&self, x: uint, y: uint) {
|
||||||
|
self.window.set_inner_size(x, y)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: return iterator
|
// TODO: return iterator
|
||||||
|
|
|
@ -221,11 +221,15 @@ impl Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_size(&self) -> (uint, uint) {
|
pub fn get_inner_size(&self) -> (uint, uint) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_size(&self, x: uint, y: uint) {
|
pub fn get_outer_size(&self) -> (uint, uint) {
|
||||||
|
unimplemented!()
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn set_inner_size(&self, x: uint, y: uint) {
|
||||||
use libc;
|
use libc;
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
|
@ -125,11 +125,15 @@ impl Window {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_size(&self) -> (uint, uint) {
|
pub fn get_inner_size(&self) -> (uint, uint) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_size(&self, x: uint, y: uint) {
|
pub fn get_outer_size(&self) -> (uint, uint) {
|
||||||
|
unimplemented!()
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn set_inner_size(&self, x: uint, y: uint) {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue