pub struct View {
pub width: f64,
pub height: f64,
pub zoom: f64,
pub origin: (f64, f64),
}Expand description
A view of a drawing: width × height device pixels showing the
drawing scaled by zoom, its top-left at origin, a whole device pixel.
Fields§
§width: f64§height: f64§zoom: f64§origin: (f64, f64)Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for View
impl RefUnwindSafe for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnsafeUnpin for View
impl UnwindSafe for View
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