Expand description
CSS properties for backgrounds, including colors, images, and gradients.
Re-exports§
pub use self::parser::*;
Modules§
Structs§
- Conic
Gradient - A CSS
conic-gradient()orrepeating-conic-gradient()value. - Linear
Color Stop - Transient struct for parsing linear color stops before normalization.
- Linear
Gradient - A CSS
linear-gradient()orrepeating-linear-gradient()value. - Normalized
Linear Color Stop - Normalized
Linear Color Stop Vec - Normalized
Linear Color Stop VecSlice - C-compatible slice type for
$struct_name. This is a non-owning view into a Vec’s data. - Normalized
Radial Color Stop - Normalized
Radial Color Stop Vec - Normalized
Radial Color Stop VecSlice - C-compatible slice type for
$struct_name. This is a non-owning view into a Vec’s data. - Pixel
Value Size - Two-dimensional size in
PixelValueunits (width, height) Used for background-size and similar properties - Radial
Color Stop - Transient struct for parsing radial/conic color stops before normalization.
- Radial
Gradient - A CSS
radial-gradient()orrepeating-radial-gradient()value. - Style
Background Content Vec - Style
Background Content VecSlice - C-compatible slice type for
$struct_name. This is a non-owning view into a Vec’s data. - Style
Background Position - The
background-positionproperty (horizontal + vertical components). - Style
Background Position Vec - Style
Background Position VecSlice - C-compatible slice type for
$struct_name. This is a non-owning view into a Vec’s data. - Style
Background Repeat Vec - Style
Background Repeat VecSlice - C-compatible slice type for
$struct_name. This is a non-owning view into a Vec’s data. - Style
Background Size Vec - Style
Background Size VecSlice - C-compatible slice type for
$struct_name. This is a non-owning view into a Vec’s data.
Enums§
- Background
Position Horizontal - Horizontal component of
background-position: a keyword or exact pixel value. - Background
Position Vertical - Vertical component of
background-position: a keyword or exact pixel value. - CssBackground
Parse Error - CssBackground
Parse Error Owned - CssBackground
Position Parse Error - CssBackground
Position Parse Error Owned - CssConic
Gradient Parse Error - CssConic
Gradient Parse Error Owned - CssGradient
Stop Parse Error - CssGradient
Stop Parse Error Owned - CssShape
Parse Error - CssShape
Parse Error Owned - Extend
Mode - Whether a
gradientshould be repeated or clamped to the edges. - Normalized
Linear Color Stop VecDestructor - Normalized
Radial Color Stop VecDestructor - Option
Normalized Linear Color Stop - Option
Normalized Radial Color Stop - Option
Style Background Content - Option
Style Background Position - Option
Style Background Repeat - Option
Style Background Size - Radial
Gradient Size - The sizing keyword for a radial gradient (e.g.
closest-side,farthest-corner). - Shape
- The shape of a radial gradient:
circleorellipse. - Style
Background Content - A single CSS background layer: a solid color, image URL, or gradient.
- Style
Background Content VecDestructor - Style
Background Position VecDestructor - Style
Background Repeat - The
background-repeatproperty. - Style
Background Repeat VecDestructor - Style
Background Size - The
background-sizeproperty:contain,cover, or an exact size. - Style
Background Size VecDestructor