pub struct Scroll {
pub scroll_x: i32,
pub scroll_y: i32,
pub _type: String,
pub x: i32,
pub y: i32,
}Fields§
§scroll_x: i32The horizontal scroll distance.
scroll_y: i32The vertical scroll distance.
_type: StringSpecifies the event type. For a scroll action, this property is always set to scroll.
x: i32The x-coordinate where the scroll occurred.
y: i32The y-coordinate where the scroll occurred.
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
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