pub struct Scroll {
pub pos: Vec2,
pub delta: Vec2,
pub lines: Option<i64>,
pub mods: Option<KeyMods>,
}Expand description
A {kind:"scroll"} event: the wheel over an onScroll node.
Fields§
§pos: Vec2§delta: Vec2§lines: Option<i64>On a cells grid: whole rows the wheel moved, the remainder
carried to the next event; later history is negative.
mods: Option<KeyMods>On a node that names scroll_mods: the modifiers held when the
gesture began.
Trait Implementations§
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 UnsafeUnpin 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