[−][src]Function cursive::view::scroll::on_event
pub fn on_event<T, OnEvent, ImportantArea>(
scroller: &mut T,
event: Event,
on_event: OnEvent,
important_area: ImportantArea
) -> EventResult where
T: Scroller,
OnEvent: FnMut(&mut T, Event) -> EventResult,
ImportantArea: FnMut(&T, Vec2) -> Rect,
Performs View::on_event
on a scroll::Scroller
.
Example:
ⓘThis example is not tested
fn on_event(&mut self, event: Event) -> EventResult { scroll::on_event(self, event, Self::inner_on_event, Self::inner_important_area) }