Enum conrod::event::Motion
[−]
pub enum Motion { MouseCursor(f64, f64), MouseRelative(f64, f64), MouseScroll(f64, f64), ControllerAxis(ControllerAxisArgs), Touch(TouchArgs), }
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.
ControllerAxis(ControllerAxisArgs)
controller axis move event.
Touch(TouchArgs)
touch event.
Trait Implementations
impl Debug for Motion
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl PartialEq<Motion> for Motion
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
impl Decodable for Motion
impl Clone for Motion
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
impl Copy for Motion
impl From<ControllerAxisArgs> for Motion
fn from(args: ControllerAxisArgs) -> Motion
Performs the conversion.