ferroui-linuxframebuffer 0.3.0

The Linux framebuffer platform of FerroUI: one full-screen top-level on a framebuffer device or a KMS output, with input from the kernel's input devices
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! What an input backend asks of the screen (the port of
//! `IScreenInfoProvider.cs`).

use ferroui_base::platform::ISurfaceOrientation;
use ferroui_base::Size;

pub trait IScreenInfoProvider {
    fn scaled_size(&self) -> Size;

    /// The screen as one that has an orientation (the reference tests the
    /// type).
    fn as_surface_orientation(&self) -> Option<&dyn ISurfaceOrientation> {
        None
    }
}