pub struct ComboBox<'ui, Label, Preview = &'static str> {
pub label: Label,
pub preview_value: Option<Preview>,
pub flags: ComboBoxFlags,
pub ui: &'ui Ui,
}Expand description
Builder for a combo box widget
Fields§
§label: Label§preview_value: Option<Preview>§flags: ComboBoxFlags§ui: &'ui UiImplementations§
Source§impl<'ui, Label: AsRef<str>> ComboBox<'ui, Label>
impl<'ui, Label: AsRef<str>> ComboBox<'ui, Label>
Sourcepub fn preview_value<P: AsRef<str>>(self, preview: P) -> ComboBox<'ui, Label, P>
pub fn preview_value<P: AsRef<str>>(self, preview: P) -> ComboBox<'ui, Label, P>
Sets the preview value
Sourcepub fn flags(self, flags: ComboBoxFlags) -> Self
pub fn flags(self, flags: ComboBoxFlags) -> Self
Sets the flags
Sourcepub fn begin(self) -> Option<ComboBoxToken<'ui>>
pub fn begin(self) -> Option<ComboBoxToken<'ui>>
Creates a combo box and starts appending to it.
Returns Some(ComboBoxToken) if the combo box is open. After content has been
rendered, the token must be ended by calling .end().
Returns None if the combo box is not open and no content should be rendered.
Trait Implementations§
Auto Trait Implementations§
impl<'ui, Label, Preview> Freeze for ComboBox<'ui, Label, Preview>
impl<'ui, Label, Preview = &'static str> !RefUnwindSafe for ComboBox<'ui, Label, Preview>
impl<'ui, Label, Preview = &'static str> !Send for ComboBox<'ui, Label, Preview>
impl<'ui, Label, Preview = &'static str> !Sync for ComboBox<'ui, Label, Preview>
impl<'ui, Label, Preview> Unpin for ComboBox<'ui, Label, Preview>
impl<'ui, Label, Preview = &'static str> !UnwindSafe for ComboBox<'ui, Label, Preview>
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