should_close() renamed to is_closed()

This commit is contained in:
Tomaka17 2014-07-30 13:29:28 +02:00
parent 1249ebed80
commit 6d9c5eb2bd
4 changed files with 19 additions and 12 deletions

View file

@ -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.