pub struct Scroll {
pub target: Target,
pub target_offset: Rect,
pub dx: i32,
pub dy: i32,
}Expand description
Mouse scroll action (Win32 only).
Fields§
§target: TargetScroll target position. Default: recognized position.
target_offset: RectOffset applied to target.
dx: i32Horizontal scroll delta. Default: 0.
dy: i32Vertical scroll delta. Default: 0.
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