mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 13:20:06 -04:00
feat: add Window::is_decorated (#2172)
* feat: add `Window::is_decorated` * move it right after `set_decorations`
This commit is contained in:
@@ -1003,6 +1003,11 @@ impl UnownedWindow {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_decorated(&self) -> bool {
|
||||
self.decorations.load(Ordering::Acquire)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn set_always_on_top(&self, always_on_top: bool) {
|
||||
let level = if always_on_top {
|
||||
|
||||
Reference in New Issue
Block a user