Trait winit_fullscreen::WindowFullScreen
source · pub trait WindowFullScreen {
// Required method
fn toggle_fullscreen(&self);
}
Expand description
Extension trait for Window to add the toggle_fullscreen
method.
Required Methods§
sourcefn toggle_fullscreen(&self)
fn toggle_fullscreen(&self)
This method toggles the fullscreen state of a window.
For platforms that support it well, it will use exclusive mode. For other platforms, it will use borderless.
Panics
This function will not panic. If any error occurs internally, it will be a no-op.