Struct nannou::ui::event::Motion [−][src]
pub struct Motion { pub motion: Motion, pub modifiers: ModifierKey, }
Contains all relevant information for a Motion event.
Fields
motion: Motion
The type of Motion
that occurred.
modifiers: ModifierKey
The modifier keys that were down at the time.
Methods
impl Motion
[src]
impl Motion
pub fn relative_to(&self, xy: [f64; 2]) -> Motion
[src]
pub fn relative_to(&self, xy: [f64; 2]) -> Motion
Returns a copy of the Motion
relative to the given xy
Trait Implementations
impl Clone for Motion
[src]
impl Clone for Motion
fn clone(&self) -> Motion
[src]
fn clone(&self) -> Motion
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Motion
[src]
impl Debug for Motion
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl From<Motion> for Widget
[src]
impl From<Motion> for Widget
impl Copy for Motion
[src]
impl Copy for Motion
impl PartialEq<Motion> for Motion
[src]
impl PartialEq<Motion> for Motion