Add Window::is_minimized
Co-authored-by: Kirill Chibisov <contact@kchibisov.com> Co-authored-by: Markus Siglreithmaier <m.siglreith@gmail.com>
This commit is contained in:
parent
de782504ab
commit
809162fbd0
12 changed files with 83 additions and 11 deletions
|
|
@ -842,6 +842,23 @@ impl Window {
|
|||
self.window.set_minimized(minimized);
|
||||
}
|
||||
|
||||
/// Gets the window's current minimized state.
|
||||
///
|
||||
/// `None` will be returned, if the minimized state couldn't be determined.
|
||||
///
|
||||
/// ## Note
|
||||
///
|
||||
/// - You shouldn't stop rendering for minimized windows, however you could lower the fps.
|
||||
///
|
||||
/// ## Platform-specific
|
||||
///
|
||||
/// - **Wayland**: always `None`.
|
||||
/// - **iOS / Android / Web / Orbital:** Unsupported.
|
||||
#[inline]
|
||||
pub fn is_minimized(&self) -> Option<bool> {
|
||||
self.window.is_minimized()
|
||||
}
|
||||
|
||||
/// Sets the window to maximized or back.
|
||||
///
|
||||
/// ## Platform-specific
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue