Skip to main content

Module background

Module background 

Source
Expand description

CSS properties for backgrounds, including colors, images, and gradients.

Re-exports§

pub use self::parser::*;

Modules§

parser

Structs§

ConicGradient
A CSS conic-gradient() or repeating-conic-gradient() value.
LinearColorStop
Transient struct for parsing linear color stops before normalization.
LinearGradient
A CSS linear-gradient() or repeating-linear-gradient() value.
NormalizedLinearColorStop
NormalizedLinearColorStopVec
NormalizedLinearColorStopVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
NormalizedRadialColorStop
NormalizedRadialColorStopVec
NormalizedRadialColorStopVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
PixelValueSize
Two-dimensional size in PixelValue units (width, height) Used for background-size and similar properties
RadialColorStop
Transient struct for parsing radial/conic color stops before normalization.
RadialGradient
A CSS radial-gradient() or repeating-radial-gradient() value.
StyleBackgroundContentVec
StyleBackgroundContentVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
StyleBackgroundPosition
The background-position property (horizontal + vertical components).
StyleBackgroundPositionVec
StyleBackgroundPositionVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
StyleBackgroundRepeatVec
StyleBackgroundRepeatVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.
StyleBackgroundSizeVec
StyleBackgroundSizeVecSlice
C-compatible slice type for $struct_name. This is a non-owning view into a Vec’s data.

Enums§

BackgroundPositionHorizontal
Horizontal component of background-position: a keyword or exact pixel value.
BackgroundPositionVertical
Vertical component of background-position: a keyword or exact pixel value.
CssBackgroundParseError
CssBackgroundParseErrorOwned
CssBackgroundPositionParseError
CssBackgroundPositionParseErrorOwned
CssConicGradientParseError
CssConicGradientParseErrorOwned
CssGradientStopParseError
CssGradientStopParseErrorOwned
CssShapeParseError
CssShapeParseErrorOwned
ExtendMode
Whether a gradient should be repeated or clamped to the edges.
NormalizedLinearColorStopVecDestructor
NormalizedRadialColorStopVecDestructor
OptionNormalizedLinearColorStop
OptionNormalizedRadialColorStop
OptionStyleBackgroundContent
OptionStyleBackgroundPosition
OptionStyleBackgroundRepeat
OptionStyleBackgroundSize
RadialGradientSize
The sizing keyword for a radial gradient (e.g. closest-side, farthest-corner).
Shape
The shape of a radial gradient: circle or ellipse.
StyleBackgroundContent
A single CSS background layer: a solid color, image URL, or gradient.
StyleBackgroundContentVecDestructor
StyleBackgroundPositionVecDestructor
StyleBackgroundRepeat
The background-repeat property.
StyleBackgroundRepeatVecDestructor
StyleBackgroundSize
The background-size property: contain, cover, or an exact size.
StyleBackgroundSizeVecDestructor

Type Aliases§

NormalizedLinearColorStopVecDestructorType
NormalizedRadialColorStopVecDestructorType
StyleBackgroundContentVecDestructorType
StyleBackgroundPositionVecDestructorType
StyleBackgroundRepeatVecDestructorType
StyleBackgroundSizeVecDestructorType