Window getters now return an Option in case where the Window has been closed
This commit is contained in:
parent
66f6b003d0
commit
838cc2b325
3 changed files with 23 additions and 22 deletions
|
|
@ -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!()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue