pub struct ZoomView {
pub scale: f64,
pub x: f64,
pub y: f64,
}Expand description
scale = displayed px per image px (1 = 100%); x/y = the picture’s top-left in the viewport.
Fields§
§scale: f64§x: f64§y: f64Trait Implementations§
impl Copy for ZoomView
Source§impl<'de> Deserialize<'de> for ZoomView
impl<'de> Deserialize<'de> for ZoomView
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ZoomView
Auto Trait Implementations§
impl Freeze for ZoomView
impl RefUnwindSafe for ZoomView
impl Send for ZoomView
impl Sync for ZoomView
impl Unpin for ZoomView
impl UnsafeUnpin for ZoomView
impl UnwindSafe for ZoomView
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