#[derive(
Animate,
Clone,
ComputeSquaredDistance,
Debug,
MallocSizeOf,
PartialEq,
SpecifiedValueInfo,
ToAnimatedValue,
ToAnimatedZero,
ToCss,
ToResolvedValue,
ToShmem,
)]
#[repr(C)]
pub struct GenericBoxShadow<Color, SizeLength, BlurShapeLength, ShapeLength> {
pub base: GenericSimpleShadow<Color, SizeLength, BlurShapeLength>,
pub spread: ShapeLength,
#[animation(constant)]
#[css(represents_keyword)]
pub inset: bool,
}
pub use self::GenericBoxShadow as BoxShadow;
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
#[derive(
Clone,
ComputeSquaredDistance,
Debug,
MallocSizeOf,
PartialEq,
SpecifiedValueInfo,
ToAnimatedValue,
ToComputedValue,
ToCss,
ToResolvedValue,
ToShmem,
)]
#[animation(no_bound(U))]
#[repr(C, u8)]
pub enum GenericFilter<Angle, NonNegativeFactor, ZeroToOneFactor, Length, Shadow, U> {
#[css(function)]
Blur(Length),
#[css(function)]
Brightness(NonNegativeFactor),
#[css(function)]
Contrast(NonNegativeFactor),
#[css(function)]
Grayscale(ZeroToOneFactor),
#[css(function)]
HueRotate(Angle),
#[css(function)]
Invert(ZeroToOneFactor),
#[css(function)]
Opacity(ZeroToOneFactor),
#[css(function)]
Saturate(NonNegativeFactor),
#[css(function)]
Sepia(ZeroToOneFactor),
#[css(function)]
DropShadow(Shadow),
#[animation(error)]
Url(U),
}
pub use self::GenericFilter as Filter;
#[derive(
Animate,
Clone,
ComputeSquaredDistance,
Debug,
MallocSizeOf,
PartialEq,
SpecifiedValueInfo,
ToAnimatedValue,
ToAnimatedZero,
ToCss,
ToResolvedValue,
ToShmem,
)]
#[repr(C)]
pub struct GenericSimpleShadow<Color, SizeLength, ShapeLength> {
pub color: Color,
pub horizontal: SizeLength,
pub vertical: SizeLength,
pub blur: ShapeLength,
}
pub use self::GenericSimpleShadow as SimpleShadow;