Add Window::is_maximized method (#1804)
This commit is contained in:
parent
05125029c6
commit
3f1e09ec0e
11 changed files with 49 additions and 7 deletions
|
|
@ -597,6 +597,17 @@ impl Window {
|
|||
self.window.set_maximized(maximized)
|
||||
}
|
||||
|
||||
/// Gets the window's current maximized state.
|
||||
///
|
||||
/// ## Platform-specific
|
||||
///
|
||||
/// - **Wayland / X11:** Not implemented.
|
||||
/// - **iOS / Android / Web:** Unsupported.
|
||||
#[inline]
|
||||
pub fn is_maximized(&self) -> bool {
|
||||
self.window.is_maximized()
|
||||
}
|
||||
|
||||
/// Sets the window to fullscreen or back.
|
||||
///
|
||||
/// ## Platform-specific
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue