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§
Auto Trait Implementations§
impl Freeze for DisplayInfo
impl RefUnwindSafe for DisplayInfo
impl Send for DisplayInfo
impl Sync for DisplayInfo
impl Unpin for DisplayInfo
impl UnwindSafe for DisplayInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more