Struct unsegen::input::ScrollBehavior [−][src]
pub struct ScrollBehavior<'a, S: Scrollable + 'a> { /* fields omitted */ }
Expand description
Collection of triggers for functions of something Scrollable
implementing Behavior
.
Implementations
impl<'a, S: Scrollable> ScrollBehavior<'a, S>
[src]
impl<'a, S: Scrollable> ScrollBehavior<'a, S>
[src]pub fn new(scrollable: &'a mut S) -> Self
[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]
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]
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]
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]
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]
impl<'a, S: Scrollable> Behavior for ScrollBehavior<'a, S>
[src]Auto Trait Implementations
impl<'a, S> RefUnwindSafe for ScrollBehavior<'a, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, S> Send for ScrollBehavior<'a, S> where
S: Send,
S: Send,
impl<'a, S> Sync for ScrollBehavior<'a, S> where
S: Sync,
S: Sync,