Enum style::values::generics::effects::Filter
[−]
[src]
pub enum Filter<Angle, Factor, Length, DropShadow> {
Blur(Length),
Brightness(Factor),
Contrast(Factor),
Grayscale(Factor),
HueRotate(Angle),
Invert(Factor),
Opacity(Factor),
Saturate(Factor),
Sepia(Factor),
DropShadow(DropShadow),
}A generic value for a single filter.
Variants
Blur(Length)blur(<length>)
Brightness(Factor)brightness(<factor>)
Contrast(Factor)contrast(<factor>)
Grayscale(Factor)grayscale(<factor>)
HueRotate(Angle)hue-rotate(<angle>)
Invert(Factor)invert(<factor>)
Opacity(Factor)opacity(<factor>)
Saturate(Factor)saturate(<factor>)
Sepia(Factor)sepia(<factor>)
DropShadow(DropShadow)drop-shadow(...)
Trait Implementations
impl<Angle: Clone, Factor: Clone, Length: Clone, DropShadow: Clone> Clone for Filter<Angle, Factor, Length, DropShadow>[src]
fn clone(&self) -> Filter<Angle, Factor, Length, DropShadow>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<Angle: Debug, Factor: Debug, Length: Debug, DropShadow: Debug> Debug for Filter<Angle, Factor, Length, DropShadow>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<Angle, Factor, Length, DropShadow> MallocSizeOf for Filter<Angle, Factor, Length, DropShadow> where
Angle: MallocSizeOf,
Factor: MallocSizeOf,
Length: MallocSizeOf,
DropShadow: MallocSizeOf, [src]
Angle: MallocSizeOf,
Factor: MallocSizeOf,
Length: MallocSizeOf,
DropShadow: MallocSizeOf,
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl<Angle: PartialEq, Factor: PartialEq, Length: PartialEq, DropShadow: PartialEq> PartialEq for Filter<Angle, Factor, Length, DropShadow>[src]
fn eq(&self, __arg_0: &Filter<Angle, Factor, Length, DropShadow>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Filter<Angle, Factor, Length, DropShadow>) -> bool[src]
This method tests for !=.
impl<Angle, Factor, Length, DropShadow> ToAnimatedValue for Filter<Angle, Factor, Length, DropShadow> where
Length: ToAnimatedValue,
Factor: ToAnimatedValue,
Angle: ToAnimatedValue,
DropShadow: ToAnimatedValue, [src]
Length: ToAnimatedValue,
Factor: ToAnimatedValue,
Angle: ToAnimatedValue,
DropShadow: ToAnimatedValue,
type AnimatedValue = Filter<<Angle as ToAnimatedValue>::AnimatedValue, <Factor as ToAnimatedValue>::AnimatedValue, <Length as ToAnimatedValue>::AnimatedValue, <DropShadow as ToAnimatedValue>::AnimatedValue>
The type of the animated value.
fn to_animated_value(self) -> Self::AnimatedValue[src]
Converts this value to an animated value.
fn from_animated_value(animated: Self::AnimatedValue) -> Self[src]
Converts back an animated value into a computed value.
impl<Angle, Factor, Length, DropShadow> ToComputedValue for Filter<Angle, Factor, Length, DropShadow> where
Length: ToComputedValue,
Factor: ToComputedValue,
Angle: ToComputedValue,
DropShadow: ToComputedValue, [src]
Length: ToComputedValue,
Factor: ToComputedValue,
Angle: ToComputedValue,
DropShadow: ToComputedValue,
type ComputedValue = Filter<<Angle as ToComputedValue>::ComputedValue, <Factor as ToComputedValue>::ComputedValue, <Length as ToComputedValue>::ComputedValue, <DropShadow as ToComputedValue>::ComputedValue>
The computed value type we're going to be converted to.
fn to_computed_value(&self, context: &Context) -> Self::ComputedValue[src]
Convert a specified value to a computed value, using itself and the data inside the Context. Read more
fn from_computed_value(computed: &Self::ComputedValue) -> Self[src]
Convert a computed value to specified value form. Read more
impl<Angle, Factor, Length, DropShadow> ToCss for Filter<Angle, Factor, Length, DropShadow> where
Length: ToCss,
Factor: ToCss,
Angle: ToCss,
DropShadow: ToCss, [src]
Length: ToCss,
Factor: ToCss,
Angle: ToCss,
DropShadow: ToCss,