pub struct ViewportDoubleClickZoomInput {
pub current: ViewportTransform,
pub anchor_screen: CanvasPoint,
pub zoom_factor: f32,
pub min_zoom: f32,
pub max_zoom: f32,
pub animation: ViewportAnimationOptions,
}Expand description
Normalized double-click zoom input.
Fields§
§current: ViewportTransform§anchor_screen: CanvasPoint§zoom_factor: f32§min_zoom: f32§max_zoom: f32§animation: ViewportAnimationOptionsImplementations§
Source§impl ViewportDoubleClickZoomInput
impl ViewportDoubleClickZoomInput
pub fn new( current: ViewportTransform, anchor_screen: CanvasPoint, zoom_factor: f32, min_zoom: f32, max_zoom: f32, animation: ViewportAnimationOptions, ) -> Self
Trait Implementations§
Source§impl Clone for ViewportDoubleClickZoomInput
impl Clone for ViewportDoubleClickZoomInput
Source§fn clone(&self) -> ViewportDoubleClickZoomInput
fn clone(&self) -> ViewportDoubleClickZoomInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ViewportDoubleClickZoomInput
Source§impl Debug for ViewportDoubleClickZoomInput
impl Debug for ViewportDoubleClickZoomInput
Source§impl<'de> Deserialize<'de> for ViewportDoubleClickZoomInput
impl<'de> Deserialize<'de> for ViewportDoubleClickZoomInput
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
Source§impl PartialEq for ViewportDoubleClickZoomInput
impl PartialEq for ViewportDoubleClickZoomInput
Source§fn eq(&self, other: &ViewportDoubleClickZoomInput) -> bool
fn eq(&self, other: &ViewportDoubleClickZoomInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ViewportDoubleClickZoomInput
Auto Trait Implementations§
impl Freeze for ViewportDoubleClickZoomInput
impl RefUnwindSafe for ViewportDoubleClickZoomInput
impl Send for ViewportDoubleClickZoomInput
impl Sync for ViewportDoubleClickZoomInput
impl Unpin for ViewportDoubleClickZoomInput
impl UnsafeUnpin for ViewportDoubleClickZoomInput
impl UnwindSafe for ViewportDoubleClickZoomInput
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