#[repr(C)]pub struct PointerScrollEvent {
pub delta_x: Coord,
pub delta_y: Coord,
pub modifiers: KeyboardModifiers,
}
Expand description
Represents a Pointer scroll (or wheel) event sent by the windowing system.
This structure is passed to the scroll-event
callback of the TouchArea
element.
Fields§
§delta_x: Coord
The amount of pixel in the horizontal direction
delta_y: Coord
The amount of pixel in the vertical direction
modifiers: KeyboardModifiers
The keyboard modifiers pressed during the event
Trait Implementations§
Source§impl Clone for PointerScrollEvent
impl Clone for PointerScrollEvent
Source§fn clone(&self) -> PointerScrollEvent
fn clone(&self) -> PointerScrollEvent
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PointerScrollEvent
impl Debug for PointerScrollEvent
Source§impl Default for PointerScrollEvent
impl Default for PointerScrollEvent
Source§fn default() -> PointerScrollEvent
fn default() -> PointerScrollEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for PointerScrollEvent
impl PartialEq for PointerScrollEvent
impl StructuralPartialEq for PointerScrollEvent
Auto Trait Implementations§
impl Freeze for PointerScrollEvent
impl RefUnwindSafe for PointerScrollEvent
impl Send for PointerScrollEvent
impl Sync for PointerScrollEvent
impl Unpin for PointerScrollEvent
impl UnwindSafe for PointerScrollEvent
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