pub struct MouseMsg {
pub x: u16,
pub y: u16,
pub button: MouseEventKind,
pub modifiers: KeyModifiers,
}Expand description
A message indicating a mouse input event.
Fields§
§x: u16The column coordinate of the mouse event.
y: u16The row coordinate of the mouse event.
The crossterm::event::MouseEventKind representing the type of mouse event.
modifiers: KeyModifiersThe crossterm::event::KeyModifiers active during the mouse event.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MouseMsg
impl RefUnwindSafe for MouseMsg
impl Send for MouseMsg
impl Sync for MouseMsg
impl Unpin for MouseMsg
impl UnwindSafe for MouseMsg
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