pub struct Mouse {
pub x: usize,
pub y: usize,
pub button: MouseButton,
pub mod_keys: KeyMod,
}Expand description
Mouse represents a mouse event. Use the specific message types
(MouseClickMsg, MouseReleaseMsg, etc.) to match individual events.
The X and Y coordinates are zero-based, with (0,0) being the upper left corner of the terminal.
Fields§
§x: usizeZero-based X coordinate (column).
y: usizeZero-based Y coordinate (row).
Button pressed/released.
mod_keys: KeyModKey modifiers active.
Trait Implementations§
impl Eq for Mouse
impl StructuralPartialEq for Mouse
Auto Trait Implementations§
impl Freeze for Mouse
impl RefUnwindSafe for Mouse
impl Send for Mouse
impl Sync for Mouse
impl Unpin for Mouse
impl UnsafeUnpin for Mouse
impl UnwindSafe for Mouse
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