Enum cursive::event::MouseButton
source · [−]pub enum MouseButton {
Left,
Middle,
Right,
Button4,
Button5,
// some variants omitted
}
Expand description
One of the buttons present on the mouse
Variants
Left
The left button, used for main actions.
Middle
Middle button, probably the wheel. Often pastes text in X11 on linux.
Right
The right button, for special actions.
Button4
Fourth button if the mouse supports it.
Button5
Fifth button if the mouse supports it.
Trait Implementations
sourceimpl Clone for MouseButton
impl Clone for MouseButton
sourcefn clone(&self) -> MouseButton
fn clone(&self) -> MouseButton
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 MouseButton
impl Debug for MouseButton
sourceimpl Hash for MouseButton
impl Hash for MouseButton
sourceimpl PartialEq<MouseButton> for MouseButton
impl PartialEq<MouseButton> for MouseButton
sourcefn eq(&self, other: &MouseButton) -> bool
fn eq(&self, other: &MouseButton) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for MouseButton
impl Eq for MouseButton
impl StructuralEq for MouseButton
impl StructuralPartialEq for MouseButton
Auto Trait Implementations
impl RefUnwindSafe for MouseButton
impl Send for MouseButton
impl Sync for MouseButton
impl Unpin for MouseButton
impl UnwindSafe for MouseButton
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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