pub struct Scroll {
pub type: String,
pub x: i64,
pub y: i64,
pub scroll_x: i64,
pub scroll_y: i64,
}
Expand description
A scroll action.
Fields§
§type: String
Specifies the event type.
x: i64
The x-coordinate where the scroll occurred.
y: i64
The y-coordinate where the scroll occurred.
scroll_x: i64
The horizontal scroll distance.
scroll_y: i64
The vertical scroll distance.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scroll
impl RefUnwindSafe for Scroll
impl Send for Scroll
impl Sync for Scroll
impl Unpin for Scroll
impl UnwindSafe for Scroll
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