Expand description
DrawCtx — the unified drawing interface shared by the software (GfxCtx)
and hardware (GlGfxCtx) rendering paths.
Every Widget::paint implementation receives a &mut dyn DrawCtx. The
concrete type is either:
GfxCtx— software AGG rasteriser (used when a widget opts into a back-buffer or when GL is unavailable).GlGfxCtx— hardware GL path: shapes are tessellated viatess2and submitted as GPU draw calls.
The two implementations expose identical method signatures so that widget
paint bodies are unchanged regardless of the render target.
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.