Expand description
Painter trait — replaces the old Widget::render. A component implements
Painter to draw its content onto a Skia canvas. Box decorations
(background, border, shadow) are handled generically by the paint pass.
Layout is computed by taffy from the component’s CssStyle; the resulting
BoxLayout is passed in.
Structs§
- Available
Size - Available space hint passed to
intrinsic_size(proxy for taffy’s enum). - Measure
Ctx - Paint
Ctx - Frame-level info passed into every paint call.
Traits§
- Painter
- Component paint contract.