Skip to main content

ferroui_linuxframebuffer/input/
i_screen_info_provider.rs

1//! What an input backend asks of the screen (the port of
2//! `IScreenInfoProvider.cs`).
3
4use ferroui_base::platform::ISurfaceOrientation;
5use ferroui_base::Size;
6
7pub trait IScreenInfoProvider {
8    fn scaled_size(&self) -> Size;
9
10    /// The screen as one that has an orientation (the reference tests the
11    /// type).
12    fn as_surface_orientation(&self) -> Option<&dyn ISurfaceOrientation> {
13        None
14    }
15}