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
sourceimpl Shadow
impl Shadow
sourcepub fn small_dark() -> Self
pub fn small_dark() -> Self
Tooltips, menus, …
sourcepub fn small_light() -> Self
pub fn small_light() -> Self
Tooltips, menus, …
pub fn tessellate(&self, rect: Rect, rounding: impl Into<Rounding>) -> Mesh
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Shadow
impl<'de> Deserialize<'de> for Shadow
sourcefn 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
sourceimpl PartialEq<Shadow> for Shadow
impl PartialEq<Shadow> for Shadow
impl Copy for Shadow
impl StructuralPartialEq for Shadow
Auto Trait Implementations
impl RefUnwindSafe for Shadow
impl Send for Shadow
impl Sync for Shadow
impl Unpin for Shadow
impl UnwindSafe for Shadow
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more