Function iced_native::widget::scrollable::update
source · pub fn update<Message>(
state: &mut State,
event: Event,
layout: Layout<'_>,
cursor_position: Point,
clipboard: &mut dyn Clipboard,
shell: &mut Shell<'_, Message>,
vertical: &Properties,
horizontal: Option<&Properties>,
on_scroll: &Option<Box<dyn Fn(RelativeOffset) -> Message + '_>>,
update_content: impl FnOnce(Event, Layout<'_>, Point, &mut dyn Clipboard, &mut Shell<'_, Message>) -> Status
) -> Status
Expand description
Processes an Event
and updates the State
of a Scrollable
accordingly.