pub struct CardDefaults;Expand description
Default values for card components.
Implementations§
Source§impl CardDefaults
impl CardDefaults
Sourcepub const DISABLED_CONTAINER_OPACITY: f32 = 0.38
pub const DISABLED_CONTAINER_OPACITY: f32 = 0.38
Opacity applied to disabled container overlays.
Sourcepub const DISABLED_CONTENT_ALPHA: f32 = MaterialAlpha::DISABLED_CONTENT
pub const DISABLED_CONTENT_ALPHA: f32 = MaterialAlpha::DISABLED_CONTENT
Opacity applied to disabled content.
Sourcepub const DISABLED_OUTLINE_ALPHA: f32 = 0.12
pub const DISABLED_OUTLINE_ALPHA: f32 = 0.12
Border opacity for disabled outlined cards.
Sourcepub fn shape(theme: &MaterialTheme) -> Shape
pub fn shape(theme: &MaterialTheme) -> Shape
Default filled card shape.
Sourcepub fn elevated_shape(theme: &MaterialTheme) -> Shape
pub fn elevated_shape(theme: &MaterialTheme) -> Shape
Default elevated card shape.
Sourcepub fn outlined_shape(theme: &MaterialTheme) -> Shape
pub fn outlined_shape(theme: &MaterialTheme) -> Shape
Default outlined card shape.
Sourcepub fn card_elevation() -> CardElevation
pub fn card_elevation() -> CardElevation
Default elevation values for filled cards.
Sourcepub fn elevated_card_elevation() -> CardElevation
pub fn elevated_card_elevation() -> CardElevation
Default elevation values for elevated cards.
Sourcepub fn outlined_card_elevation() -> CardElevation
pub fn outlined_card_elevation() -> CardElevation
Default elevation values for outlined cards.
Sourcepub fn card_colors(theme: &MaterialTheme, content_color: Color) -> CardColors
pub fn card_colors(theme: &MaterialTheme, content_color: Color) -> CardColors
Default colors for filled cards.
Sourcepub fn elevated_card_colors(
theme: &MaterialTheme,
content_color: Color,
) -> CardColors
pub fn elevated_card_colors( theme: &MaterialTheme, content_color: Color, ) -> CardColors
Default colors for elevated cards.
Sourcepub fn outlined_card_colors(
theme: &MaterialTheme,
content_color: Color,
) -> CardColors
pub fn outlined_card_colors( theme: &MaterialTheme, content_color: Color, ) -> CardColors
Default colors for outlined cards.
Sourcepub fn outlined_card_border(theme: &MaterialTheme, enabled: bool) -> CardBorder
pub fn outlined_card_border(theme: &MaterialTheme, enabled: bool) -> CardBorder
Default border stroke for outlined cards.
Auto Trait Implementations§
impl Freeze for CardDefaults
impl RefUnwindSafe for CardDefaults
impl Send for CardDefaults
impl Sync for CardDefaults
impl Unpin for CardDefaults
impl UnsafeUnpin for CardDefaults
impl UnwindSafe for CardDefaults
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
§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>
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.§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.§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.§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.§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>
Converts
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>
Converts
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)
Converts
&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)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.