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]Trait Implementations§
Source§impl Clone for LayerSurfaceSize
impl Clone for LayerSurfaceSize
Source§impl Debug for LayerSurfaceSize
impl Debug for LayerSurfaceSize
Source§impl PartialEq for LayerSurfaceSize
impl PartialEq for LayerSurfaceSize
impl StructuralPartialEq for LayerSurfaceSize
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.