pub struct PixelSize {
pub pixels: u32,
pub scale_factor: u32,
}
Expand description
Size in pixels that is aware of scaling
Fields§
§pixels: u32
§scale_factor: u32
Implementations§
Source§impl PixelSize
impl PixelSize
pub fn as_scaled_floor(&self) -> u32
pub fn as_scaled_ceiling(&self) -> u32
Trait Implementations§
impl Copy for PixelSize
impl StructuralPartialEq for PixelSize
Auto Trait Implementations§
impl Freeze for PixelSize
impl RefUnwindSafe for PixelSize
impl Send for PixelSize
impl Sync for PixelSize
impl Unpin for PixelSize
impl UnwindSafe for PixelSize
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