Trait fj_viewer::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§