From 838cc2b325d85735c7db40fba389bf120b282814 Mon Sep 17 00:00:00 2001 From: Tomaka17 Date: Wed, 30 Jul 2014 13:10:17 +0200 Subject: Window getters now return an Option in case where the Window has been closed --- src/x11/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/x11') diff --git a/src/x11/mod.rs b/src/x11/mod.rs index cbb40d5..68a061b 100644 --- a/src/x11/mod.rs +++ b/src/x11/mod.rs @@ -120,7 +120,7 @@ impl Window { } } - pub fn get_position(&self) -> (int, int) { + pub fn get_position(&self) -> Option<(int, int)> { unimplemented!() } @@ -128,11 +128,11 @@ impl Window { unimplemented!() } - pub fn get_inner_size(&self) -> (uint, uint) { + pub fn get_inner_size(&self) -> Option<(uint, uint)> { unimplemented!() } - pub fn get_outer_size(&self) -> (uint, uint) { + pub fn get_outer_size(&self) -> Option<(uint, uint)> { unimplemented!() } -- cgit v1.2.3