Enum conrod::event::Motion []

pub enum Motion {
    MouseCursor(f64f64),
    MouseRelative(f64f64),
    MouseScroll(f64f64),
    ControllerAxis(ControllerAxisArgs),
    Touch(TouchArgs),
}

Models different kinds of motion.

Variants

MouseCursor(f64f64)

x and y in window coordinates.

MouseRelative(f64f64)

x and y in relative coordinates.

MouseScroll(f64f64)

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

fn encode<__S>(&self, __arg_0: &mut __S) -> Result<(), __S::Error> where __S: Encoder

impl Decodable for Motion

fn decode<__D>(__arg_0: &mut __D) -> Result<Motion, __D::Error> where __D: Decoder

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.