Struct i_slint_core::items::PointerScrollEvent
source · #[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: CoordThe amount of pixel in the horizontal direction
delta_y: CoordThe amount of pixel in the vertical direction
modifiers: KeyboardModifiersThe 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
source§fn eq(&self, other: &PointerScrollEvent) -> bool
fn eq(&self, other: &PointerScrollEvent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PointerScrollEvent
Auto Trait Implementations§
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