Function arc_util::ui::render::combo

source ·
pub fn combo<T>(
    ui: &Ui<'_>,
    label: impl AsRef<str>,
    all: impl IntoIterator<Item = T>,
    current: &mut T,
    item_label: impl Fn(&T) -> Cow<'_, str>,
    item_color: impl Fn(&T) -> Option<[f32; 4]>
) -> bool
where T: PartialEq,
Expand description

Renders a combo box for items from an iterator.