Floyd Wang 2025-03-29 11:02:15 +08:00 committed by GitHub
parent f86977e2a7
commit b4254a33e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 111 additions and 2 deletions

View file

@ -1320,6 +1320,11 @@ impl Window {
self.platform_window.bounds()
}
/// Set the content size of the window.
pub fn resize(&mut self, size: Size<Pixels>) {
self.platform_window.resize(size);
}
/// Returns whether or not the window is currently fullscreen
pub fn is_fullscreen(&self) -> bool {
self.platform_window.is_fullscreen()