Struct epaint::Shadow[][src]

pub struct Shadow {
    pub extrusion: f32,
    pub color: Color32,
}

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

impl Shadow[src]

pub fn small() -> Self[src]

Tooltips, menus, …

pub fn big_dark() -> Self[src]

Subtle and nice on dark backgrounds

pub fn big_light() -> Self[src]

Subtle and nice on white backgrounds

pub fn tessellate(&self, rect: Rect, corner_radius: f32) -> Mesh[src]

Trait Implementations

impl Clone for Shadow[src]

impl Copy for Shadow[src]

impl Debug for Shadow[src]

impl Default for Shadow[src]

impl PartialEq<Shadow> for Shadow[src]

impl StructuralPartialEq for Shadow[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.