pub type SpecifiedFilter = Filter<Angle, NonNegativeFactor, ZeroToOneFactor, NonNegativeLength, SimpleShadow, Impossible>;
Expand description

A specified value for a single filter.

Aliased Type§

enum SpecifiedFilter {
    Blur(NonNegative<Length>),
    Brightness(NonNegativeFactor),
    Contrast(NonNegativeFactor),
    Grayscale(ZeroToOneFactor),
    HueRotate(Angle),
    Invert(ZeroToOneFactor),
    Opacity(ZeroToOneFactor),
    Saturate(NonNegativeFactor),
    Sepia(ZeroToOneFactor),
    DropShadow(GenericSimpleShadow<Option<Color>, Length, Option<NonNegative<Length>>>),
    Url(Impossible),
}

Variants§

§

Blur(NonNegative<Length>)

blur(<length>)

§

Brightness(NonNegativeFactor)

brightness(<factor>)

§

Contrast(NonNegativeFactor)

contrast(<factor>)

§

Grayscale(ZeroToOneFactor)

grayscale(<factor>)

§

HueRotate(Angle)

hue-rotate(<angle>)

§

Invert(ZeroToOneFactor)

invert(<factor>)

§

Opacity(ZeroToOneFactor)

opacity(<factor>)

§

Saturate(NonNegativeFactor)

saturate(<factor>)

§

Sepia(ZeroToOneFactor)

sepia(<factor>)

§

DropShadow(GenericSimpleShadow<Option<Color>, Length, Option<NonNegative<Length>>>)

drop-shadow(...)

§

Url(Impossible)

<url>

Implementations§

source§

impl Filter

source

pub fn to_computed_value_without_context(&self) -> Result<ComputedFilter, ()>

Generate the ComputedFilter without Context.

Trait Implementations§

source§

impl Parse for Filter

source§

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't> ) -> Result<Self, ParseError<'i>>

Parse a value of this type. Read more