#[non_exhaustive]pub struct WheelEvent {
pub position: Point<Points>,
pub page_position: Point<Points>,
pub delta: WheelDelta,
pub modifiers: Modifiers,
}Expand description
A wheel over a view (EventKind::Wheel), in points, as GPUI’s
ScrollWheelEvent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.position: Point<Points>Position in the view, its transforms undone.
page_position: Point<Points>Position in the root view the view is in (the surface, or its
modal), as touches’ page.
delta: WheelDeltaHow far it scrolled, in lines or points.
modifiers: ModifiersThe modifier keys held (Control + wheel zooms by convention).
Implementations§
Trait Implementations§
Source§impl Clone for WheelEvent
impl Clone for WheelEvent
impl Copy for WheelEvent
Source§impl Debug for WheelEvent
impl Debug for WheelEvent
Source§impl Default for WheelEvent
impl Default for WheelEvent
Source§impl PartialEq for WheelEvent
impl PartialEq for WheelEvent
impl StructuralPartialEq for WheelEvent
Auto Trait Implementations§
impl Forget for WheelEvent
impl Freeze for WheelEvent
impl Move for WheelEvent
impl RefUnwindSafe for WheelEvent
impl Send for WheelEvent
impl Sync for WheelEvent
impl Unpin for WheelEvent
impl UnsafeUnpin for WheelEvent
impl UnwindSafe for WheelEvent
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