pub struct ChipColors {Show 16 fields
pub container_color: Color,
pub label_color: Color,
pub leading_icon_color: Color,
pub trailing_icon_color: Color,
pub disabled_container_color: Color,
pub disabled_label_color: Color,
pub disabled_leading_icon_color: Color,
pub disabled_trailing_icon_color: Color,
pub selected_container_color: Color,
pub selected_label_color: Color,
pub selected_leading_icon_color: Color,
pub selected_trailing_icon_color: Color,
pub disabled_selected_container_color: Color,
pub disabled_selected_label_color: Color,
pub disabled_selected_leading_icon_color: Color,
pub disabled_selected_trailing_icon_color: Color,
}Expand description
Represents the container and content colors used in a chip in different states.
Fields§
§container_color: ColorContainer color when enabled and not selected.
label_color: ColorLabel color when enabled and not selected.
leading_icon_color: ColorLeading icon color when enabled and not selected.
trailing_icon_color: ColorTrailing icon color when enabled and not selected.
disabled_container_color: ColorContainer color when disabled and not selected.
disabled_label_color: ColorLabel color when disabled and not selected.
disabled_leading_icon_color: ColorLeading icon color when disabled and not selected.
disabled_trailing_icon_color: ColorTrailing icon color when disabled and not selected.
selected_container_color: ColorContainer color when enabled and selected.
selected_label_color: ColorLabel color when enabled and selected.
selected_leading_icon_color: ColorLeading icon color when enabled and selected.
selected_trailing_icon_color: ColorTrailing icon color when enabled and selected.
disabled_selected_container_color: ColorContainer color when disabled and selected.
disabled_selected_label_color: ColorLabel color when disabled and selected.
disabled_selected_leading_icon_color: ColorLeading icon color when disabled and selected.
disabled_selected_trailing_icon_color: ColorTrailing icon color when disabled and selected.
Trait Implementations§
Source§impl Clone for ChipColors
impl Clone for ChipColors
Source§fn clone(&self) -> ChipColors
fn clone(&self) -> ChipColors
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ChipColors
Source§impl Debug for ChipColors
impl Debug for ChipColors
Source§impl PartialEq for ChipColors
impl PartialEq for ChipColors
impl StructuralPartialEq for ChipColors
Auto Trait Implementations§
impl Freeze for ChipColors
impl RefUnwindSafe for ChipColors
impl Send for ChipColors
impl Sync for ChipColors
impl Unpin for ChipColors
impl UnsafeUnpin for ChipColors
impl UnwindSafe for ChipColors
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.