pub struct PanMomentum {
pub velocity: Option<ScreenPoint>,
pub decay: MomentumDecay,
}Expand description
How a gesture’s pan keeps moving the map’s content after release.
See mln_pan_momentum in the
C API reference.
Fields§
§velocity: Option<ScreenPoint>How fast the map’s content moved on the screen at release, in logical pixels per second. The pan moves only when this is set.
decay: MomentumDecayTrait Implementations§
Source§impl Clone for PanMomentum
impl Clone for PanMomentum
Source§fn clone(&self) -> PanMomentum
fn clone(&self) -> PanMomentum
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 PanMomentum
Source§impl Debug for PanMomentum
impl Debug for PanMomentum
Source§impl Default for PanMomentum
impl Default for PanMomentum
Source§fn default() -> PanMomentum
fn default() -> PanMomentum
Returns the “default value” for a type. Read more
Source§impl PartialEq for PanMomentum
impl PartialEq for PanMomentum
impl StructuralPartialEq for PanMomentum
Auto Trait Implementations§
impl Freeze for PanMomentum
impl RefUnwindSafe for PanMomentum
impl Send for PanMomentum
impl Sync for PanMomentum
impl Unpin for PanMomentum
impl UnsafeUnpin for PanMomentum
impl UnwindSafe for PanMomentum
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more