pub struct ScreenGeometry {
pub width_px: u32,
pub height_px: u32,
pub scale_factor: f32,
pub safe_area: SafeAreaInsets,
pub color_gamut: ColorGamut,
}Expand description
Geometry, scale factor, and color capabilities of the active display.
Fields§
§width_px: u32§height_px: u32§scale_factor: f32§safe_area: SafeAreaInsets§color_gamut: ColorGamutTrait Implementations§
Source§impl Clone for ScreenGeometry
impl Clone for ScreenGeometry
impl Copy for ScreenGeometry
Source§impl Debug for ScreenGeometry
impl Debug for ScreenGeometry
Source§impl Default for ScreenGeometry
impl Default for ScreenGeometry
Source§impl PartialEq for ScreenGeometry
impl PartialEq for ScreenGeometry
impl StructuralPartialEq for ScreenGeometry
Auto Trait Implementations§
impl Forget for ScreenGeometry
impl Freeze for ScreenGeometry
impl Move for ScreenGeometry
impl RefUnwindSafe for ScreenGeometry
impl Send for ScreenGeometry
impl Sync for ScreenGeometry
impl Unpin for ScreenGeometry
impl UnsafeUnpin for ScreenGeometry
impl UnwindSafe for ScreenGeometry
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