pub struct WheelEvent {
pub delta: i32,
pub injected: bool,
}
Expand description
Indicates mouse wheel event.
Fields§
§delta: i32
Amout of mouse wheel rotation Upward rotation takes a positive value, downward rotation a negative value.
injected: bool
Whether this event was generated by this program.
Trait Implementations§
Source§impl Clone for WheelEvent
impl Clone for WheelEvent
Source§fn clone(&self) -> WheelEvent
fn clone(&self) -> WheelEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WheelEvent
impl Debug for WheelEvent
Source§impl Hash for WheelEvent
impl Hash for WheelEvent
Source§impl PartialEq for WheelEvent
impl PartialEq for WheelEvent
impl Copy for WheelEvent
impl Eq for WheelEvent
impl StructuralPartialEq for WheelEvent
Auto Trait Implementations§
impl Freeze for WheelEvent
impl RefUnwindSafe for WheelEvent
impl Send for WheelEvent
impl Sync for WheelEvent
impl Unpin for WheelEvent
impl UnwindSafe for WheelEvent
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