Struct vulkano::display::DisplayProperties
source · #[non_exhaustive]pub struct DisplayProperties {
pub name: Option<String>,
pub physical_dimensions: [u32; 2],
pub physical_resolution: [u32; 2],
pub supported_transforms: SurfaceTransforms,
pub plane_reorder_possible: bool,
pub persistent_content: bool,
}
Expand description
The properties of a display.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The name of the display.
physical_dimensions: [u32; 2]
The physical dimensions of the display, in millimeters.
physical_resolution: [u32; 2]
The physical, or preferred, resolution of the display.
supported_transforms: SurfaceTransforms
The transforms that are supported by the display.
plane_reorder_possible: bool
Whether planes on this display can have their z-order changed.
persistent_content: bool
Whether the content of the display is buffered internally, and therefore persistent.
Trait Implementations§
source§impl Clone for DisplayProperties
impl Clone for DisplayProperties
source§fn clone(&self) -> DisplayProperties
fn clone(&self) -> DisplayProperties
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for DisplayProperties
impl Send for DisplayProperties
impl Sync for DisplayProperties
impl Unpin for DisplayProperties
impl UnwindSafe for DisplayProperties
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