Struct crossterm_winapi::MouseEvent
source · 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: Coord
The position of the mouse when the event occurred in cell coordinates.
The state of the mouse’s buttons.
control_key_state: ControlKeyState
The state of the control keys.
event_flags: EventFlags
What 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 copy 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<MouseEvent> for MouseEvent
impl PartialEq<MouseEvent> for MouseEvent
source§fn eq(&self, other: &MouseEvent) -> bool
fn eq(&self, other: &MouseEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.