Enum conrod::event::Motion
[−]
[src]
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 From<ControllerAxisArgs> for Motion[src]
fn from(args: ControllerAxisArgs) -> Motion[src]
Performs the conversion.
impl From<Motion> for Input[src]
impl Copy for Motion[src]
impl PartialEq<Motion> for Motion[src]
fn eq(&self, __arg_0: &Motion) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Motion) -> bool[src]
This method tests for !=.
impl Debug for Motion[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter. Read more
impl Clone for Motion[src]
fn clone(&self) -> Motion[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Encodable for Motion[src]
fn encode<__S>(&self, __arg_0: &mut __S) -> Result<(), <__S as Encoder>::Error> where
__S: Encoder, [src]
__S: Encoder,
Serialize a value using an Encoder.