Type Alias style::values::computed::effects::Filter

source ·
pub type Filter = Filter<Angle, NonNegativeNumber, ZeroToOneNumber, NonNegativeLength, SimpleShadow, Impossible>;
Expand description

A computed value for a single filter.

Aliased Type§

enum Filter {
    Blur(NonNegative<CSSPixelLength>),
    Brightness(NonNegative<f32>),
    Contrast(NonNegative<f32>),
    Grayscale(ZeroToOne<f32>),
    HueRotate(Angle),
    Invert(ZeroToOne<f32>),
    Opacity(ZeroToOne<f32>),
    Saturate(NonNegative<f32>),
    Sepia(ZeroToOne<f32>),
    DropShadow(GenericSimpleShadow<GenericColor<Percentage>, CSSPixelLength, NonNegative<CSSPixelLength>>),
    Url(Impossible),
}

Variants§

§

Blur(NonNegative<CSSPixelLength>)

blur(<length>)

§

Brightness(NonNegative<f32>)

brightness(<factor>)

§

Contrast(NonNegative<f32>)

contrast(<factor>)

§

Grayscale(ZeroToOne<f32>)

grayscale(<factor>)

§

HueRotate(Angle)

hue-rotate(<angle>)

§

Invert(ZeroToOne<f32>)

invert(<factor>)

§

Opacity(ZeroToOne<f32>)

opacity(<factor>)

§

Saturate(NonNegative<f32>)

saturate(<factor>)

§

Sepia(ZeroToOne<f32>)

sepia(<factor>)

§

DropShadow(GenericSimpleShadow<GenericColor<Percentage>, CSSPixelLength, NonNegative<CSSPixelLength>>)

drop-shadow(...)

§

Url(Impossible)

<url>