[][src]Struct nannou::ui::event::DoubleClick

pub struct DoubleClick {
    pub button: MouseButton,
    pub xy: [f64; 2],
    pub modifiers: ModifierKey,
}

Contains all the relevant information for a double click.

When handling this event, be sure to check that you are handling the intended button too.

Fields

button: MouseButton

Which mouse button was clicked

xy: [f64; 2]

The position at which the mouse was released.

modifiers: ModifierKey

Which modifier keys, if any, that were being held down when the user clicked

Implementations

impl DoubleClick[src]

pub fn relative_to(&self, xy: [f64; 2]) -> DoubleClick[src]

Returns a copy of the DoubleClick relative to the given xy

Trait Implementations

impl Clone for DoubleClick[src]

impl Copy for DoubleClick[src]

impl Debug for DoubleClick[src]

impl From<DoubleClick> for Widget[src]

impl PartialEq<DoubleClick> for DoubleClick[src]

impl StructuralPartialEq for DoubleClick[src]

Auto Trait Implementations

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> Style for T where
    T: Any + Debug + PartialEq<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,