aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs13
1 files changed, 9 insertions, 4 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