cosmic::widget::dropdownFunction update
Source pub fn update<'a, S: AsRef<str> + Send + Sync + Clone + 'static, Message: Clone + 'static, AppMessage: Clone + 'static>(
event: &Event,
layout: Layout<'_>,
cursor: Cursor,
shell: &mut Shell<'_, Message>,
on_selected: Arc<dyn Fn(usize) -> Message + Send + Sync + 'static>,
selected: Option<usize>,
selections: &[S],
state: impl FnOnce() -> &'a mut State,
_window_id: Option<Id>,
on_surface_action: Option<Arc<dyn Fn(Action) -> Message + Send + Sync + 'static>>,
action_map: Option<Arc<dyn Fn(Message) -> AppMessage + Send + Sync + 'static>>,
icons: &[Handle],
gap: f32,
padding: Padding,
text_size: Option<f32>,
font: Option<Font>,
selected_option: Option<usize>,
) -> Status
Expand description