pub struct ZoomAnimation { /* private fields */ }Expand description
Animation for zooming the viewport
Implementations§
Source§impl ZoomAnimation
impl ZoomAnimation
Sourcepub fn new(
start_zoom: f64,
end_zoom: f64,
focal_point: (f64, f64),
duration_ms: f64,
easing: Easing,
) -> Self
pub fn new( start_zoom: f64, end_zoom: f64, focal_point: (f64, f64), duration_ms: f64, easing: Easing, ) -> Self
Create a new zoom animation
Sourcepub fn current_zoom(&self) -> f64
pub fn current_zoom(&self) -> f64
Get current zoom level
Sourcepub fn focal_point(&self) -> (f64, f64)
pub fn focal_point(&self) -> (f64, f64)
Get focal point
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if complete
Trait Implementations§
Source§impl Clone for ZoomAnimation
impl Clone for ZoomAnimation
Source§fn clone(&self) -> ZoomAnimation
fn clone(&self) -> ZoomAnimation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ZoomAnimation
impl RefUnwindSafe for ZoomAnimation
impl Send for ZoomAnimation
impl Sync for ZoomAnimation
impl Unpin for ZoomAnimation
impl UnsafeUnpin for ZoomAnimation
impl UnwindSafe for ZoomAnimation
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