Expand description
Generic types for the handling of images.
Re-exports§
pub use self::GenericImage as Image;
pub use self::GenericCrossFade as CrossFade;
pub use self::GenericCrossFadeElement as CrossFadeElement;
pub use self::GenericCrossFadeImage as CrossFadeImage;
pub use self::GenericImageSet as ImageSet;
pub use self::GenericImageSetItem as ImageSetItem;
pub use self::GenericGradient as Gradient;
pub use self::GenericEndingShape as EndingShape;
pub use self::GenericCircle as Circle;
pub use self::GenericEllipse as Ellipse;
pub use self::GenericGradientItem as GradientItem;
Structs§
- Color
Stop - A color stop. https://drafts.csswg.org/css-images/#typedef-color-stop-list
- Generic
Cross Fade - https://drafts.csswg.org/css-images-4/#cross-fade-function
- Generic
Cross Fade Element - An optional percent and a cross fade image.
- Generic
Image Set - https://drafts.csswg.org/css-images-4/#image-set-notation
- Generic
Image SetItem - An optional percent and a cross fade image.
- Gradient
Flags - State flags stored on each variant of a Gradient.
- Paint
Worklet - Specified values for a paint worklet. https://drafts.css-houdini.org/css-paint-api/
Enums§
- Generic
Circle - A circle shape.
- Generic
Cross Fade Image - An image or a color.
cross-fade
takes either when blending images together. - Generic
Ellipse - An ellipse shape.
- Generic
Ending Shape - A radial gradient’s ending shape.
- Generic
Gradient - A CSS gradient. https://drafts.csswg.org/css-images/#gradients
- Generic
Gradient Item - A gradient item. https://drafts.csswg.org/css-images-4/#color-stop-syntax
- Generic
Image - An
<image> | none
value. - Gradient
Compat Mode - Whether we used the modern notation or the compatibility
-webkit
,-moz
prefixes. - Shape
Extent - https://drafts.csswg.org/css-images/#typedef-extent-keyword
Traits§
- Line
Direction - The direction of a linear gradient.