#[repr(u8)]pub enum MouseEventType {
MouseDown = 0,
MouseUp = 1,
MouseMove = 2,
Click = 3,
MouseEnter = 4,
MouseLeave = 5,
}Expand description
Types of mouse events that can occur.
Variants§
MouseDown = 0
Mouse button was pressed.
MouseUp = 1
Mouse button was released.
MouseMove = 2
Mouse moved while over the terminal.
Click = 3
Mouse button was clicked (pressed and released).
MouseEnter = 4
Mouse cursor entered the terminal area.
MouseLeave = 5
Mouse cursor left the terminal area.
Trait Implementations§
Source§impl Clone for MouseEventType
impl Clone for MouseEventType
Source§fn clone(&self) -> MouseEventType
fn clone(&self) -> MouseEventType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MouseEventType
Source§impl Debug for MouseEventType
impl Debug for MouseEventType
Source§impl PartialEq for MouseEventType
impl PartialEq for MouseEventType
Source§fn eq(&self, other: &MouseEventType) -> bool
fn eq(&self, other: &MouseEventType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MouseEventType
Auto Trait Implementations§
impl Freeze for MouseEventType
impl RefUnwindSafe for MouseEventType
impl Send for MouseEventType
impl Sync for MouseEventType
impl Unpin for MouseEventType
impl UnsafeUnpin for MouseEventType
impl UnwindSafe for MouseEventType
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