pub struct ScrollSample { /* private fields */ }Expand description
One scroll transition retained in the frame input snapshot.
Implementations§
Source§impl ScrollSample
impl ScrollSample
Sourcepub const fn delta(self) -> ScrollDelta
pub const fn delta(self) -> ScrollDelta
Returns the precise or coarse scroll delta supplied by the platform.
Sourcepub const fn position(self) -> LogicalPosition
pub const fn position(self) -> LogicalPosition
Returns the pointer position associated with the scroll transition.
Trait Implementations§
Source§impl Clone for ScrollSample
impl Clone for ScrollSample
Source§fn clone(&self) -> ScrollSample
fn clone(&self) -> ScrollSample
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 ScrollSample
Source§impl Debug for ScrollSample
impl Debug for ScrollSample
Source§impl PartialEq for ScrollSample
impl PartialEq for ScrollSample
impl StructuralPartialEq for ScrollSample
Auto Trait Implementations§
impl Freeze for ScrollSample
impl RefUnwindSafe for ScrollSample
impl Send for ScrollSample
impl Sync for ScrollSample
impl Unpin for ScrollSample
impl UnsafeUnpin for ScrollSample
impl UnwindSafe for ScrollSample
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