pub struct Scroll {
pub scroll_x: i32,
pub scroll_y: i32,
pub x: i32,
pub y: i32,
}
Expand description
A scroll action.
Fields§
§scroll_x: i32
Horizontal scroll distance.
scroll_y: i32
Vertical scroll distance.
x: i32
X‐coordinate where the scroll began.
y: i32
Y‐coordinate where the scroll began.
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 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