Enum input::Motion [−] [src]

pub enum Motion {
    MouseCursor(f64, f64),
    MouseRelative(f64, f64),
    MouseScroll(f64, f64),
}
[]

Models different kinds of motion.

Variants

MouseCursor

x and y in window coordinates.

MouseRelative

x and y in relative coordinates.

MouseScroll

x and y in scroll ticks.

Trait Implementations

Derived Implementations

impl Debug for Motion

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for Motion

fn eq(&self, __arg_0: &Motion) -> bool

fn ne(&self, __arg_0: &Motion) -> bool

impl Encodable for Motion

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

impl Decodable for Motion

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

impl Clone for Motion

fn clone(&self) -> Motion

fn clone_from(&mut self, source: &Self)

impl Copy for Motion