Skip to main content

Crate displays_types

Crate displays_types 

Source
Expand description

displays_types is the shared base layer for common display types across the workspace.

Domain-specific type crates build on top of it: displays_logical_types for logical display state and displays_physical_types for physical display state.

Most users should start with the top-level displays crate instead of depending on this crate directly.

                 +------------------------+
                 |     displays_types     |
                 +------------------------+
                    ^        ^        ^
                    |        |        |
          +---------------+  |  +---------------------------+
          |   displays    |  |  |  displays_logical_types   |
          +---------------+  |  +---------------------------+
                 +---------------------------+
                 |  displays_phyiscal_types  |
                 +---------------------------+
                       ^                ^
                       |                |
        +-------------------------+  +---------------------------+
        | displays_physical_linux |  | displays_physical_windows |
        +-------------------------+  +---------------------------+

Structs§

Brightness
Brightness percentage in the inclusive range 0..=100.
DisplayIdentifier
A user-facing identifier used to match one or more displays.
DisplayIdentifierInner
Point
A 2D point used for logical display positioning.
Size
A 2D size used for display dimensions.

Enums§

Orientation
Display orientation in degrees clockwise.
PixelFormat
Platform pixel format identifiers used by logical display state.