mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
feat: add Window::is_visible (#2169)
* feat: add `Window::is_visible` * use `Option<bool>` * update doc * move it right after `set_visible`
This commit is contained in:
@@ -984,6 +984,11 @@ impl UnownedWindow {
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_visible(&self) -> Option<bool> {
|
||||
None
|
||||
}
|
||||
|
||||
fn update_cached_frame_extents(&self) {
|
||||
let extents = self
|
||||
.xconn
|
||||
|
||||
Reference in New Issue
Block a user