#[repr(C)]pub struct Shapes {
pub card: Option<Radius>,
pub button: Option<Radius>,
pub fab: Option<Radius>,
pub sheet_top: Option<Radius>,
pub chip: Option<Radius>,
pub badge: Option<Radius>,
pub input: Option<Radius>,
}Expand description
A corner radius per component. sheet_top rounds only the bottom sheet’s top corners (Pill there
is capped at 32 — a dome would clip the sheet’s content). button also shapes the confirm dialog’s
buttons where the shell draws them (web, Android); iOS uses the system alert.
Fields§
§card: Option<Radius>Every card style, including tappable cards.
Every button style, including toned and Density::Large buttons.
fab: Option<Radius>§sheet_top: Option<Radius>§chip: Option<Radius>§badge: Option<Radius>§input: Option<Radius>Text and search fields.
Trait Implementations§
impl Copy for Shapes
Source§impl<'de> Deserialize<'de> for Shapes
impl<'de> Deserialize<'de> for Shapes
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
impl Eq for Shapes
impl StructuralPartialEq for Shapes
Auto Trait Implementations§
impl Freeze for Shapes
impl RefUnwindSafe for Shapes
impl Send for Shapes
impl Sync for Shapes
impl Unpin for Shapes
impl UnsafeUnpin for Shapes
impl UnwindSafe for Shapes
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