pub struct PointerScroll {
pub x: f32,
pub y: f32,
pub delta_x: f32,
pub delta_y: f32,
pub pointer: PointerKind,
pub modifiers: KeyModifiers,
pub captured: bool,
}Expand description
Data from a raw scroll input event (mouse wheel, trackpad).
Distinct from ScrollPosition which reports where a scrollable
widget’s viewport ended up. This reports the raw pointer input.
Fields§
§x: f32X coordinate.
y: f32Y coordinate.
delta_x: f32Scroll delta on the X axis.
delta_y: f32Scroll delta on the Y axis.
pointer: PointerKindPointer kind (Mouse, Touch, Pen).
modifiers: KeyModifiersActive modifier keys.
captured: boolWhether the event was consumed by a widget before reaching the global subscription layer.
Trait Implementations§
Source§impl Clone for PointerScroll
impl Clone for PointerScroll
Source§fn clone(&self) -> PointerScroll
fn clone(&self) -> PointerScroll
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 moreAuto Trait Implementations§
impl Freeze for PointerScroll
impl RefUnwindSafe for PointerScroll
impl Send for PointerScroll
impl Sync for PointerScroll
impl Unpin for PointerScroll
impl UnsafeUnpin for PointerScroll
impl UnwindSafe for PointerScroll
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