[][src]Module rsvg_internals::gradient

Gradient paint servers; the linearGradient and radialGradient elements.

Structs

ColorStop

Contents of a element for gradient color stops

Common

Fields shared by all gradient nodes

Gradient

Resolved gradient; this is memoizable after the initial resolution.

GradientUnits
LinearGradient

Node for the element

RadialGradient

Node for the element

Stop

Node for the 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 - if None, it means that the field is not specified; if Some(T), it means that the field was specified.

Enums

GradientVariant

Parameters specific to each gradient type, after resolving.

SpreadMethod

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. ) to form a final, resolved Variant.

Functions

validate_offset