Add Window::is_maximized method (#1804)
This commit is contained in:
parent
05125029c6
commit
3f1e09ec0e
11 changed files with 49 additions and 7 deletions
|
|
@ -232,6 +232,12 @@ impl Window {
|
|||
// Intentionally a no-op, as canvases cannot be 'maximized'
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn is_maximized(&self) -> bool {
|
||||
// Canvas cannot be 'maximized'
|
||||
false
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn fullscreen(&self) -> Option<Fullscreen> {
|
||||
if self.canvas.borrow().is_fullscreen() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue