pub struct ChipEdit { /* private fields */ }Expand description
Creates a chip style textbox Press backspace in empty chip deletes it Lost focus from empty chip deletes it
Implementations§
Source§impl ChipEdit
impl ChipEdit
Sourcepub fn default_widget_bg_color(ui: &Ui) -> Color32
pub fn default_widget_bg_color(ui: &Ui) -> Color32
Returns the default background color for the widget
Sourcepub fn default_widget_fg_color(ui: &Ui) -> Color32
pub fn default_widget_fg_color(ui: &Ui) -> Color32
Returns the default foreground color for the widget
Sourcepub fn show(&mut self, ui: &mut Ui) -> ChipEditOutput
pub fn show(&mut self, ui: &mut Ui) -> ChipEditOutput
Sourcepub fn set_text(&mut self, texts: impl IntoIterator<Item = impl ToString>)
pub fn set_text(&mut self, texts: impl IntoIterator<Item = impl ToString>)
Sets the texts for the chips.
§Arguments
texts- An iterator of strings representing the texts for the chips.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChipEdit
impl<'de> Deserialize<'de> for ChipEdit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChipEdit
impl RefUnwindSafe for ChipEdit
impl Send for ChipEdit
impl Sync for ChipEdit
impl Unpin for ChipEdit
impl UnwindSafe for ChipEdit
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