Enum input::Motion
[−]
[src]
pub enum Motion { MouseCursor(f64, f64), MouseRelative(f64, f64), MouseScroll(f64, f64), }
Models different kinds of motion.
Variants
MouseCursor(f64, f64)
x and y in window coordinates.
MouseRelative(f64, f64)
x and y in relative coordinates.
MouseScroll(f64, f64)
x and y in scroll ticks.
Trait Implementations
impl Debug for Motion
[src]
impl PartialEq for Motion
[src]
fn eq(&self, __arg_0: &Motion) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Motion) -> bool
This method tests for !=
.
impl Encodable for Motion
[src]
impl Decodable for Motion
[src]
impl Clone for Motion
[src]
fn clone(&self) -> Motion
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more