mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 22:00:04 -04:00
should_close() renamed to is_closed()
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user