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:
parent
ac1c9b1218
commit
f9643917d3
10 changed files with 54 additions and 0 deletions
|
|
@ -60,6 +60,11 @@ impl Inner {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn is_visible(&self) -> Option<bool> {
|
||||
warn!("`Window::is_visible` is ignored on iOS");
|
||||
None
|
||||
}
|
||||
|
||||
pub fn request_redraw(&self) {
|
||||
unsafe {
|
||||
if self.gl_or_metal_backed {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue