pub struct CursorEvent {
pub delta: (i32, i32),
pub injected: bool,
}
Expand description
Indicates mouse cursor event.
Fields§
§delta: (i32, i32)
Mouse cursor movement (x, y)
injected: bool
Whether this event was generated by this program.
Trait Implementations§
Source§impl Clone for CursorEvent
impl Clone for CursorEvent
Source§fn clone(&self) -> CursorEvent
fn clone(&self) -> CursorEvent
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 CursorEvent
impl Debug for CursorEvent
Source§impl Hash for CursorEvent
impl Hash for CursorEvent
Source§impl PartialEq for CursorEvent
impl PartialEq for CursorEvent
impl Copy for CursorEvent
impl Eq for CursorEvent
impl StructuralPartialEq for CursorEvent
Auto Trait Implementations§
impl Freeze for CursorEvent
impl RefUnwindSafe for CursorEvent
impl Send for CursorEvent
impl Sync for CursorEvent
impl Unpin for CursorEvent
impl UnwindSafe for CursorEvent
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