Expand description
Paint definitions consumed by DrawCtx.
Solid color fills are expressed directly via Color; this module hosts
the richer paint kinds that need their own data: LinearGradientPaint,
RadialGradientPaint, and PatternPaint, plus the supporting
GradientStop / GradientSpread / FillRule types and the CPU-side
sample implementations the software backend uses.
draw_ctx re-exports every public name here, so existing call sites that
reach for agg_gui::draw_ctx::RadialGradientPaint (etc.) continue to
resolve unchanged.
Structs§
- Gradient
Stop - One color stop in a bridge-level gradient paint.
- Linear
Gradient Paint - Linear gradient fill paint expressed in local drawing coordinates.
- Pattern
Paint - Repeating raster pattern paint expressed in SVG/user drawing coordinates.
- Radial
Gradient Paint - Radial/focal gradient fill paint expressed in local drawing coordinates.
Enums§
- Fill
Rule - Fill rule used when rasterizing closed paths.
- Gradient
Spread - How a gradient behaves outside the normalized
0..=1range.