diff options
author | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-07-30 13:29:28 +0200 |
---|---|---|
committer | Tomaka17 <pierre.krieger1708@gmail.com> | 2014-07-30 13:29:28 +0200 |
commit | 6d9c5eb2bd61ef811afff959c2d7e7e3a1d21f06 (patch) | |
tree | 018c0ff647b97ebacb416e0949e17e34355c1a52 /src/lib.rs | |
parent | 1249ebed803993078f4c11e5d2565477bdaeccf5 (diff) | |
download | glutin-6d9c5eb2bd61ef811afff959c2d7e7e3a1d21f06.tar.gz glutin-6d9c5eb2bd61ef811afff959c2d7e7e3a1d21f06.zip |
should_close() renamed to is_closed()
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -41,8 +41,15 @@ impl Window { /// Returns true if the window has been closed by the user. #[inline] + pub fn is_closed(&self) -> bool { + self.window.is_closed() + } + + /// Returns true if the window has been closed by the user. + #[inline] + #[deprecated = "Use is_closed instead"] pub fn should_close(&self) -> bool { - self.window.should_close() + self.is_closed() } /// Modifies the title of the window. |