pub struct ScrollEventData {
pub delta: LogicalPosition,
pub delta_mode: ScrollDeltaMode,
}Expand description
Type-specific event data for scroll events.
Fields§
§delta: LogicalPositionScroll delta (dx, dy)
delta_mode: ScrollDeltaModeHow the delta should be interpreted
Trait Implementations§
Source§impl Clone for ScrollEventData
impl Clone for ScrollEventData
Source§fn clone(&self) -> ScrollEventData
fn clone(&self) -> ScrollEventData
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 moreSource§impl Debug for ScrollEventData
impl Debug for ScrollEventData
Source§impl PartialEq for ScrollEventData
impl PartialEq for ScrollEventData
Source§fn eq(&self, other: &ScrollEventData) -> bool
fn eq(&self, other: &ScrollEventData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScrollEventData
Auto Trait Implementations§
impl Freeze for ScrollEventData
impl RefUnwindSafe for ScrollEventData
impl Send for ScrollEventData
impl Sync for ScrollEventData
impl Unpin for ScrollEventData
impl UnsafeUnpin for ScrollEventData
impl UnwindSafe for ScrollEventData
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