pub struct DisplayInfo {
    pub name: Option<String>,
    pub physical_dimensions: Extent2D,
    pub physical_resolution: Extent2D,
    pub supported_transforms: SurfaceTransformFlags,
    pub plane_reorder_possible: bool,
    pub persistent_content: bool,
}
Expand description

General information about the a display.

Fields

name: Option<String>

Name of the display. Generally, this will be the name provided by the display’s EDID.

physical_dimensions: Extent2D

Physical width and height of the visible portion of the display, in millimeters.

physical_resolution: Extent2D

Physical, native, or preferred resolution of the display.

supported_transforms: SurfaceTransformFlags

Description of the supported transforms by the display.

plane_reorder_possible: bool

Tells whether the planes on the display can have their z order changed. If true, the application can re-arrange the planes on this display in any order relative to each other.

persistent_content: bool

Tells whether the display supports self-refresh/internal buffering. If true, the application can submit persistent present operations on swapchains created against this display.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.