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
impl Filter
sourcepub fn to_computed_value_without_context(&self) -> Result<ComputedFilter, ()>
pub fn to_computed_value_without_context(&self) -> Result<ComputedFilter, ()>
Generate the ComputedFilter without Context.