pub struct Scroll {
pub x: u64,
pub y: u64,
pub scroll_x: u64,
pub scroll_y: u64,
}
Expand description
A scroll action.
Fields§
§x: u64
The x-coordinate where the scroll occurred.
y: u64
The y-coordinate where the scroll occurred.
scroll_x: u64
The horizontal scroll distance.
scroll_y: u64
The vertical scroll distance.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Scroll
impl<'de> Deserialize<'de> for Scroll
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Scroll
impl StructuralPartialEq for Scroll
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