[][src]Struct unsegen::input::ScrollBehavior

pub struct ScrollBehavior<'a, S: Scrollable + 'a> { /* fields omitted */ }

Collection of triggers for functions of something Scrollable implementing Behavior.

Implementations

impl<'a, S: Scrollable> ScrollBehavior<'a, S>[src]

pub fn new(scrollable: &'a mut S) -> Self[src]

Create the behavior to act on the provided ´Scrollable`. Add triggers using other functions!

pub fn to_beginning_on<E: ToEvent>(self, event: E) -> Self[src]

Make the behavior trigger the scroll_to_beginning function on the provided event.

pub fn to_end_on<E: ToEvent>(self, event: E) -> Self[src]

Make the behavior trigger the scroll_to_end function on the provided event.

pub fn backwards_on<E: ToEvent>(self, event: E) -> Self[src]

Make the behavior trigger the scroll_backwards function on the provided event.

pub fn forwards_on<E: ToEvent>(self, event: E) -> Self[src]

Make the behavior trigger the scroll_forwards function on the provided event.

Trait Implementations

impl<'a, S: Scrollable> Behavior for ScrollBehavior<'a, S>[src]

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for ScrollBehavior<'a, S> where
    S: RefUnwindSafe

impl<'a, S> Send for ScrollBehavior<'a, S> where
    S: Send

impl<'a, S> Sync for ScrollBehavior<'a, S> where
    S: Sync

impl<'a, S> Unpin for ScrollBehavior<'a, S>

impl<'a, S> !UnwindSafe for ScrollBehavior<'a, S>

Blanket Implementations

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

impl<F> Behavior for F where
    F: FnOnce(Input) -> Option<Input>, 
[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<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.