pub enum ZoomMode {
Auto,
Manual {
x: f32,
y: f32,
},
}Expand description
Where a zoom targets.
Variants§
Auto
Target is chosen automatically (e.g. from cursor/click telemetry, ED.17) or follows the cursor while held.
Manual
Target a fixed point, normalized to [0, 1] in the composed
frame: (0, 0) is top-left, (1, 1) bottom-right.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ZoomMode
impl<'de> Deserialize<'de> for ZoomMode
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 Copy for ZoomMode
impl StructuralPartialEq for ZoomMode
Auto Trait Implementations§
impl Freeze for ZoomMode
impl RefUnwindSafe for ZoomMode
impl Send for ZoomMode
impl Sync for ZoomMode
impl Unpin for ZoomMode
impl UnsafeUnpin for ZoomMode
impl UnwindSafe for ZoomMode
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