pub struct LayerSurfaceSize {
pub logical_width: f32,
pub logical_height: f32,
pub surface_width: u32,
pub surface_height: u32,
pub dpr: [f32; 2],
}Expand description
Logical and backing-pixel dimensions for one physical surface.
Fields§
§logical_width: f32§logical_height: f32§surface_width: u32§surface_height: u32§dpr: [f32; 2]Auto Trait Implementations§
impl Freeze for LayerSurfaceSize
impl RefUnwindSafe for LayerSurfaceSize
impl Send for LayerSurfaceSize
impl Sync for LayerSurfaceSize
impl Unpin for LayerSurfaceSize
impl UnsafeUnpin for LayerSurfaceSize
impl UnwindSafe for LayerSurfaceSize
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.