Enum mortal::terminal::MouseInput
source · [−]pub enum MouseInput {
Motion,
ButtonPressed(MouseButton),
ButtonReleased(MouseButton),
WheelUp,
WheelDown,
}
Expand description
Represents the type of mouse input event
Variants
Motion
The mouse cursor was moved
ButtonPressed(MouseButton)
A mouse button was pressed
ButtonReleased(MouseButton)
A mouse button was released
WheelUp
The mouse wheel was scrolled up
WheelDown
The mouse wheel was scrolled down
Trait Implementations
sourceimpl Clone for MouseInput
impl Clone for MouseInput
sourcefn clone(&self) -> MouseInput
fn clone(&self) -> MouseInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MouseInput
impl Debug for MouseInput
sourceimpl PartialEq<MouseInput> for MouseInput
impl PartialEq<MouseInput> for MouseInput
sourcefn eq(&self, other: &MouseInput) -> bool
fn eq(&self, other: &MouseInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MouseInput) -> bool
fn ne(&self, other: &MouseInput) -> bool
This method tests for !=
.
impl Copy for MouseInput
impl Eq for MouseInput
impl StructuralEq for MouseInput
impl StructuralPartialEq for MouseInput
Auto Trait Implementations
impl RefUnwindSafe for MouseInput
impl Send for MouseInput
impl Sync for MouseInput
impl Unpin for MouseInput
impl UnwindSafe for MouseInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more