mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-03 15:14:35 +00:00
parent
438b9afeaa
commit
29621043f7
2 changed files with 9 additions and 0 deletions
|
@ -78,6 +78,9 @@ export interface Window {
|
||||||
|
|
||||||
/** Issues a request to the windowing system to re-render the contents of the window. */
|
/** Issues a request to the windowing system to re-render the contents of the window. */
|
||||||
requestRedraw(): void;
|
requestRedraw(): void;
|
||||||
|
|
||||||
|
/** Set or unset the window to display fullscreen. */
|
||||||
|
set fullscreen(enable: boolean);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -123,4 +123,10 @@ impl JsWindow {
|
||||||
pub fn request_redraw(&self) {
|
pub fn request_redraw(&self) {
|
||||||
self.inner.request_redraw();
|
self.inner.request_redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Set or unset the window to display fullscreen.
|
||||||
|
#[napi(setter)]
|
||||||
|
pub fn set_fullscreen(&self, enable: bool) {
|
||||||
|
self.inner.window().set_fullscreen(enable)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue