Enum rinwindow::events::MouseEvent [−][src]
pub enum MouseEvent { Pressed { pos: Pnt2<f64>, button: MouseButton, mods: KeyModifiers, }, Released { pos: Pnt2<f64>, button: MouseButton, mods: KeyModifiers, }, Moved { pos: Pnt2<f64>, }, Scrolled { scroll: Vec2<f64>, }, }
Variants
Pressed
Fields of Pressed
pos: Pnt2<f64> | |
mods: KeyModifiers |
Released
Fields of Released
pos: Pnt2<f64> | |
mods: KeyModifiers |
Moved
Fields of Moved
pos: Pnt2<f64> |
Scrolled
Fields of Scrolled
scroll: Vec2<f64> |
Trait Implementations
impl Clone for MouseEvent
[src]
impl Clone for MouseEvent
fn clone(&self) -> MouseEvent
[src]
fn clone(&self) -> MouseEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for MouseEvent
[src]
impl Debug for MouseEvent
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for MouseEvent
[src]
impl Copy for MouseEvent
impl PartialEq for MouseEvent
[src]
impl PartialEq for MouseEvent
fn eq(&self, other: &MouseEvent) -> bool
[src]
fn eq(&self, other: &MouseEvent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MouseEvent) -> bool
[src]
fn ne(&self, other: &MouseEvent) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for MouseEvent
impl Send for MouseEvent
impl Sync for MouseEvent
impl Sync for MouseEvent