Enum crossterm_winapi::EventFlags
source · pub enum EventFlags {
PressOrRelease,
DoubleClick,
MouseHwheeled,
MouseMoved,
MouseWheeled,
Unknown,
}
Expand description
The type of mouse event. If this value is zero, it indicates a mouse button being pressed or released. Otherwise, this member is one of the following values.
Variants§
PressOrRelease
DoubleClick
The second click (button press) of a double-click occurred. The first click is returned as a regular button-press event.
MouseHwheeled
The horizontal mouse wheel was moved.
MouseMoved
If the high word of the dwButtonState member contains a positive value, the wheel was rotated to the right. Otherwise, the wheel was rotated to the left.
MouseWheeled
A change in mouse position occurred. The vertical mouse wheel was moved, if the high word of the dwButtonState member contains a positive value, the wheel was rotated forward, away from the user. Otherwise, the wheel was rotated backward, toward the user.
Unknown
Trait Implementations§
source§impl Clone for EventFlags
impl Clone for EventFlags
source§fn clone(&self) -> EventFlags
fn clone(&self) -> EventFlags
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 EventFlags
impl Debug for EventFlags
source§impl From<u32> for EventFlags
impl From<u32> for EventFlags
source§impl PartialEq<EventFlags> for EventFlags
impl PartialEq<EventFlags> for EventFlags
source§fn eq(&self, other: &EventFlags) -> bool
fn eq(&self, other: &EventFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.