pub struct MouseEvent {
pub mouse_position: Coord,
pub button_state: ButtonState,
pub control_key_state: ControlKeyState,
pub event_flags: EventFlags,
}Expand description
Fields§
§mouse_position: CoordThe position of the mouse when the event occurred in cell coordinates.
The state of the mouse’s buttons.
control_key_state: ControlKeyStateThe state of the control keys.
event_flags: EventFlagsWhat type of mouse event it is.
Trait Implementations§
Source§impl Clone for MouseEvent
impl Clone for MouseEvent
Source§fn clone(&self) -> MouseEvent
fn clone(&self) -> MouseEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MouseEvent
impl Debug for MouseEvent
Source§impl From<MOUSE_EVENT_RECORD> for MouseEvent
impl From<MOUSE_EVENT_RECORD> for MouseEvent
Source§fn from(event: MOUSE_EVENT_RECORD) -> Self
fn from(event: MOUSE_EVENT_RECORD) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MouseEvent
impl PartialEq for MouseEvent
impl Copy for MouseEvent
impl Eq for MouseEvent
impl StructuralPartialEq for MouseEvent
Auto Trait Implementations§
impl Freeze for MouseEvent
impl RefUnwindSafe for MouseEvent
impl Send for MouseEvent
impl Sync for MouseEvent
impl Unpin for MouseEvent
impl UnwindSafe for MouseEvent
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