Screen

Trait Screen 

Source
pub trait Screen {
    type Window: HasDisplayHandle + HasWindowHandle + Send + Sync + 'static;

    // Required methods
    fn size(&self) -> ScreenSize;
    fn window(&self) -> Arc<Self::Window>;
}
Expand description

Needs to be implemented by types that can serve as a screen to render to

Required Associated Types§

Source

type Window: HasDisplayHandle + HasWindowHandle + Send + Sync + 'static

The window

Required Methods§

Source

fn size(&self) -> ScreenSize

Access the size of the screen

Source

fn window(&self) -> Arc<Self::Window>

Access the window

Implementors§