[][src]Struct conrod_core::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.

Implementations

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

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

Notable traits for ButtonDrags<'a>

impl<'a> Iterator for ButtonDrags<'a> type Item = Drag;
[src]

Yield only the Drags that occurred from the given button.

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

Notable traits for ButtonDrags<'a>

impl<'a> Iterator for ButtonDrags<'a> type Item = Drag;
[src]

Yield only left mouse button Drags.

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

Notable traits for ButtonDrags<'a>

impl<'a> Iterator for ButtonDrags<'a> type Item = Drag;
[src]

Yields only middle mouse button Drags.

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

Notable traits for ButtonDrags<'a>

impl<'a> Iterator for ButtonDrags<'a> type Item = Drag;
[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<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> 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<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.