aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomaka17 <pierre.krieger1708@gmail.com>2014-07-27 22:31:00 +0200
committerTomaka17 <pierre.krieger1708@gmail.com>2014-07-27 22:36:28 +0200
commitd4e334aecb1f6d6f85752ddbbf0a2da688036109 (patch)
tree85748b680816891e71bb1cc30943f1fa4f97aaa4
parent0d122cec47799e5c5198d3d4068c9ed43ce9b83c (diff)
downloadglutin-d4e334aecb1f6d6f85752ddbbf0a2da688036109.tar.gz
glutin-d4e334aecb1f6d6f85752ddbbf0a2da688036109.zip
get/set_size() -> get/set_inner/outer_size()
-rw-r--r--src/lib.rs13
-rw-r--r--src/win32/mod.rs8
-rw-r--r--src/x11/mod.rs8
3 files changed, 21 insertions, 8 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ad4c870..77a9b7c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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
diff --git a/src/win32/mod.rs b/src/win32/mod.rs
index 7230ee4..b5e507b 100644
--- a/src/win32/mod.rs
+++ b/src/win32/mod.rs
@@ -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 {
diff --git a/src/x11/mod.rs b/src/x11/mod.rs
index 46334af..a592bce 100644
--- a/src/x11/mod.rs
+++ b/src/x11/mod.rs
@@ -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!()
}