Module rsvg::gradient

source ยท
Expand description

Gradient paint servers; the linearGradient and radialGradient elements.

Macrosยง

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