Expand description
The color and fuzziness of a fuzzy shape. Can be used for a rectangular shadow with a soft penumbra.
Fields§
§extrusion: f32
The shadow extends this much outside the rect. The size of the fuzzy penumbra.
color: Color32
Color of the opaque center of the shadow.
Implementations§
source§impl Shadow
impl Shadow
pub const NONE: Self = _
sourcepub fn small_dark() -> Self
pub fn small_dark() -> Self
Tooltips, menus, …, for dark mode.
sourcepub fn small_light() -> Self
pub fn small_light() -> Self
Tooltips, menus, …, for light mode.
pub fn tessellate(&self, rect: Rect, rounding: impl Into<Rounding>) -> Mesh
Trait Implementations§
source§impl<'de> Deserialize<'de> for Shadow
impl<'de> Deserialize<'de> for Shadow
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