aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 44f3d9b..1b90ad2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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.