pub trait WindowFullScreen {
    // Required method
    fn toggle_fullscreen(&self);
}
Expand description

Extension trait for Window to add the toggle_fullscreen method.

Required Methods§

source

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.

Implementations on Foreign Types§

source§

impl WindowFullScreen for Window

Implementors§