Skip to main content

IScreenInfoProvider

Trait IScreenInfoProvider 

Source
pub trait IScreenInfoProvider {
    // Required method
    fn scaled_size(&self) -> Size;

    // Provided method
    fn as_surface_orientation(&self) -> Option<&dyn ISurfaceOrientation> { ... }
}

Required Methods§

Source

fn scaled_size(&self) -> Size

Provided Methods§

Source

fn as_surface_orientation(&self) -> Option<&dyn ISurfaceOrientation>

The screen as one that has an orientation (the reference tests the type).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§