pub enum MouseKind {
Down(MouseButton),
Up(MouseButton),
Drag(MouseButton),
Moved,
ScrollUp,
ScrollDown,
}Expand description
What the mouse did.
Variants§
Down(MouseButton)
A button went down.
Up(MouseButton)
A button came up.
Drag(MouseButton)
The mouse moved with a button held.
Moved
The mouse moved with no button held. Widgets hear it only when they ask with
PaintCx::track_pointer_moves and the
pointer is over them or over a child of theirs: most widgets take any mouse event under
them as theirs, and a move alone is no reason to act. Hover looks need no event: they
are painted from PaintCx::is_hovered.
ScrollUp
Wheel towards the top of the content.
ScrollDown
Wheel towards the bottom of the content.
Trait Implementations§
impl Copy for MouseKind
impl Eq for MouseKind
impl StructuralPartialEq for MouseKind
Auto Trait Implementations§
impl Freeze for MouseKind
impl RefUnwindSafe for MouseKind
impl Send for MouseKind
impl Sync for MouseKind
impl Unpin for MouseKind
impl UnsafeUnpin for MouseKind
impl UnwindSafe for MouseKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more