pub struct MomentumScrolling { /* private fields */ }Expand description
The state of scrolling: where it began, and the velocity of the inertia that follows it.
Implementations§
Source§impl MomentumScrolling
impl MomentumScrolling
Sourcepub fn begin(&mut self, location: Point)
pub fn begin(&mut self, location: Point)
Scrolling began at a location, which the events keep until the inertia stops.
Sourcepub fn cached_scroll_location(&self) -> Option<Point>
pub fn cached_scroll_location(&self) -> Option<Point>
The location scrolling began at.
Sourcepub fn start_inertia(&mut self, velocity: Point)
pub fn start_inertia(&mut self, velocity: Point)
Scrolling ended at a velocity (points per second): inertia starts.
Trait Implementations§
Source§impl Clone for MomentumScrolling
impl Clone for MomentumScrolling
impl Copy for MomentumScrolling
Source§impl Debug for MomentumScrolling
impl Debug for MomentumScrolling
Source§impl Default for MomentumScrolling
impl Default for MomentumScrolling
Source§impl PartialEq for MomentumScrolling
impl PartialEq for MomentumScrolling
impl StructuralPartialEq for MomentumScrolling
Auto Trait Implementations§
impl Freeze for MomentumScrolling
impl RefUnwindSafe for MomentumScrolling
impl Send for MomentumScrolling
impl Sync for MomentumScrolling
impl Unpin for MomentumScrolling
impl UnsafeUnpin for MomentumScrolling
impl UnwindSafe for MomentumScrolling
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more