Expand description
Gradient paint servers; the linearGradient
and radialGradient
elements.
Macrosยง
- impl_gradient ๐
Structsยง
- Contents of a
<stop>
element for gradient color stops - Common ๐Fields shared by all gradient nodes
- Node for the
<linearGradient>
element - Node for the
<radialGradient>
element - Resolved gradient; this is memoizable after the initial resolution.
- Node for the
<stop>
element - Unresolved ๐State used during the gradient resolution process
- UnresolvedGradient ๐Main structure used during gradient resolution. For unresolved gradients, we store all fields as
Option<T>
- ifNone
, it means that the field is not specified; ifSome(T)
, it means that the field was specified. - Gradient normalized to user-space units.
Enumsยง
- Parameters specific to each gradient type, after normalizing to user-space units.
- Parameters specific to each gradient type, after resolving.
- spreadMethod attribute for gradients
- UnresolvedVariant ๐Parameters specific to each gradient type, before being resolved. These will be composed together with UnreseolvedVariant from fallback nodes (referenced with e.g.
<linearGradient xlink:href="#fallback">
) to form a final, resolved Variant.