feat: add Window::is_decorated (#2172)
* feat: add `Window::is_decorated` * move it right after `set_decorations`
This commit is contained in:
parent
cd9ec0afc7
commit
fa14863284
10 changed files with 51 additions and 0 deletions
|
|
@ -750,6 +750,17 @@ impl Window {
|
|||
self.window.set_decorations(decorations)
|
||||
}
|
||||
|
||||
/// Gets the window's current decorations state.
|
||||
///
|
||||
/// ## Platform-specific
|
||||
///
|
||||
/// - **Wayland / X11:** Not implemented.
|
||||
/// - **iOS / Android / Web:** Unsupported.
|
||||
#[inline]
|
||||
pub fn is_decorated(&self) -> bool {
|
||||
self.window.is_decorated()
|
||||
}
|
||||
|
||||
/// Change whether or not the window will always be on top of other windows.
|
||||
///
|
||||
/// ## Platform-specific
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue