pub enum MaterialType {
Canvas,
Card,
Circle,
Button,
Transparency,
}Expand description
The various kinds of material in Material Design. Used to
configure the default behavior of Material widgets.
See also:
Material, in particularMaterial::type.k_material_edges
Variants§
Canvas
Rectangle using default theme canvas color.
Card
Rounded edges, card theme color.
Circle
A circle, no color by default (used for floating action buttons).
Button
Rounded edges, no color by default (used for MaterialButton buttons).
Transparency
A transparent piece of material that draws ink splashes and highlights.
While the material metaphor describes child widgets as printed on the
material itself and do not hide ink effects, in practice the Material
widget draws child widgets on top of the ink effects.
A Material with type transparency can be placed on top of opaque widgets
to show ink effects on top of them.
Prefer using the Ink widget for showing ink effects on top of opaque
widgets.
Trait Implementations§
Source§impl Clone for MaterialType
impl Clone for MaterialType
impl Copy for MaterialType
Source§impl Debug for MaterialType
impl Debug for MaterialType
impl Eq for MaterialType
Source§impl Hash for MaterialType
impl Hash for MaterialType
Source§impl PartialEq for MaterialType
impl PartialEq for MaterialType
impl StructuralPartialEq for MaterialType
Auto Trait Implementations§
impl Forget for MaterialType
impl Freeze for MaterialType
impl Move for MaterialType
impl RefUnwindSafe for MaterialType
impl Send for MaterialType
impl Sync for MaterialType
impl Unpin for MaterialType
impl UnsafeUnpin for MaterialType
impl UnwindSafe for MaterialType
Blanket Implementations§
Source§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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.