Struct egui_dropdown::DropDownBox
source · pub struct DropDownBox<'a, F: FnMut(&mut Ui, &str) -> Response, V: AsRef<str>, I: Iterator<Item = V>> { /* private fields */ }Expand description
Dropdown widget
Implementations§
source§impl<'a, F: FnMut(&mut Ui, &str) -> Response, V: AsRef<str>, I: Iterator<Item = V>> DropDownBox<'a, F, V, I>
impl<'a, F: FnMut(&mut Ui, &str) -> Response, V: AsRef<str>, I: Iterator<Item = V>> DropDownBox<'a, F, V, I>
sourcepub fn from_iter(
it: impl IntoIterator<IntoIter = I>,
id_source: impl Hash,
buf: &'a mut String,
display: F
) -> Self
pub fn from_iter( it: impl IntoIterator<IntoIter = I>, id_source: impl Hash, buf: &'a mut String, display: F ) -> Self
Creates new dropdown box.
sourcepub fn hint_text(self, hint_text: impl Into<WidgetText>) -> Self
pub fn hint_text(self, hint_text: impl Into<WidgetText>) -> Self
Add a hint text to the Text Edit
Trait Implementations§
Auto Trait Implementations§
impl<'a, F, V, I> RefUnwindSafe for DropDownBox<'a, F, V, I>where
F: RefUnwindSafe,
I: RefUnwindSafe,
impl<'a, F, V, I> Send for DropDownBox<'a, F, V, I>
impl<'a, F, V, I> Sync for DropDownBox<'a, F, V, I>
impl<'a, F, V, I> Unpin for DropDownBox<'a, F, V, I>
impl<'a, F, V, I> !UnwindSafe for DropDownBox<'a, F, V, I>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more