[][src]Struct nannou::ui::input::widget::Drags

pub struct Drags<'a> { /* fields omitted */ }

An iterator that yields all event::Drag events yielded by the Events iterator.

Only events that occurred while the widget was capturing the device that did the dragging will be yielded.

Methods

impl<'a> Drags<'a>[src]

pub fn button(self, button: MouseButton) -> ButtonDrags<'a>[src]

Yield only the Drags that occurred from the given button.

pub fn left(self) -> ButtonDrags<'a>[src]

Yield only left mouse button Drags.

pub fn middle(self) -> ButtonDrags<'a>[src]

Yields only middle mouse button Drags.

pub fn right(self) -> ButtonDrags<'a>[src]

Yield only right mouse button Drags.

Trait Implementations

impl<'a> Clone for Drags<'a>[src]

impl<'a> Iterator for Drags<'a>[src]

type Item = Drag

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Drags<'a>

impl<'a> Send for Drags<'a>

impl<'a> Sync for Drags<'a>

impl<'a> Unpin for Drags<'a>

impl<'a> UnwindSafe for Drags<'a>

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> ParallelBridge for T where
    T: Send + Iterator,
    <T as Iterator>::Item: Send
[src]

impl<T> SetParameter for T

impl<T> SetParameter for T

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>,