Skip to main content

FullScreenProvider

Trait FullScreenProvider 

Source
pub trait FullScreenProvider {
    // Required methods
    fn is_on(&self) -> bool;
    fn set(&self, on: bool);

    // Provided method
    fn available(&self) -> bool { ... }
}
Expand description

Puts the app in full screen and takes it out. Platform layers install one with crate::Ui::set_full_screen: the browser asks for the page’s full screen, the desktop turns the window into a borderless full screen.

Required Methods§

Source

fn is_on(&self) -> bool

Whether the app fills the screen now.

Source

fn set(&self, on: bool)

Asks for full screen, or to leave it. The answer may come later, as a resize.

Provided Methods§

Source

fn available(&self) -> bool

Whether this place can show the app in full screen at all; a page inside a frame that does not allow it cannot.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§