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: f64The view’s width, in device pixels.
height: f64The view’s height, in device pixels.
zoom: f64The scale the drawing is shown at.
origin: (f64, f64)Where the drawing’s top-left lands in the view, in device pixels.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for View
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