pub struct CanvasView {
pub scale: f64,
pub ox: f64,
pub oy: f64,
}Expand description
the view of a canvas: the content point (u, v) shows at the window pixel position (ox + u * scale, oy + v * scale)
Fields§
§scale: f64§ox: f64§oy: f64Trait Implementations§
Source§impl Clone for CanvasView
impl Clone for CanvasView
impl Copy for CanvasView
Source§impl Debug for CanvasView
impl Debug for CanvasView
Source§impl Default for CanvasView
impl Default for CanvasView
Source§impl PartialEq for CanvasView
impl PartialEq for CanvasView
impl StructuralPartialEq for CanvasView
Auto Trait Implementations§
impl Forget for CanvasView
impl Freeze for CanvasView
impl RefUnwindSafe for CanvasView
impl Send for CanvasView
impl Sync for CanvasView
impl Unpin for CanvasView
impl UnsafeUnpin for CanvasView
impl UnwindSafe for CanvasView
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