get/set_size() -> get/set_inner/outer_size()

This commit is contained in:
Tomaka17 2014-07-27 22:31:00 +02:00
parent 0d122cec47
commit d4e334aecb
3 changed files with 21 additions and 8 deletions

View file

@ -62,13 +62,18 @@ impl Window {
}
#[inline]
pub fn get_size(&self) -> (uint, uint) {
self.window.get_size()
pub fn get_inner_size(&self) -> (uint, uint) {
self.window.get_inner_size()
}
#[inline]
pub fn set_size(&self, x: uint, y: uint) {
self.window.set_size(x, y)
pub fn get_outer_size(&self) -> (uint, uint) {
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

View file

@ -221,11 +221,15 @@ impl Window {
}
}
pub fn get_size(&self) -> (uint, uint) {
pub fn get_inner_size(&self) -> (uint, uint) {
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;
unsafe {

View file

@ -125,11 +125,15 @@ impl Window {
unimplemented!()
}
pub fn get_size(&self) -> (uint, uint) {
pub fn get_inner_size(&self) -> (uint, uint) {
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!()
}