pub struct ChipTheme {Show 14 fields
pub shape: Option<ShapeBorder>,
pub color: Option<Color>,
pub selected_color: Option<Color>,
pub label_color: Option<Color>,
pub selected_label_color: Option<Color>,
pub label_style: Option<TextStyle>,
pub border_color: Option<Color>,
pub border_width: Option<f32>,
pub radius: Option<BorderRadius>,
pub padding: Option<f32>,
pub label_padding: Option<f32>,
pub height: Option<f32>,
pub icon_size: Option<f32>,
pub show_checkmark: Option<bool>,
}Expand description
Defaults for Chip.
Fields§
§shape: Option<ShapeBorder>What shape it is (shape_border.dart), over the plain radius below:
a chip’s. Unset, the widget decides.
color: Option<Color>The surface under an unselected chip.
selected_color: Option<Color>The surface under a selected one.
label_color: Option<Color>The label’s colour when unselected.
selected_label_color: Option<Color>The label’s colour when selected.
label_style: Option<TextStyle>The label’s type.
border_color: Option<Color>The outline’s colour.
border_width: Option<f32>Its thickness; 0.0 removes it.
radius: Option<BorderRadius>The corner radii.
padding: Option<f32>The room inside the outline.
label_padding: Option<f32>The room on either side of the label.
height: Option<f32>The chip’s height.
icon_size: Option<f32>The size of a leading icon, a checkmark or a delete cross.
show_checkmark: Option<bool>Whether a selected chip shows a checkmark.
Trait Implementations§
impl Copy for ChipTheme
impl StructuralPartialEq for ChipTheme
Auto Trait Implementations§
impl Freeze for ChipTheme
impl RefUnwindSafe for ChipTheme
impl Send for ChipTheme
impl Sync for ChipTheme
impl Unpin for ChipTheme
impl UnsafeUnpin for ChipTheme
impl UnwindSafe for ChipTheme
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.