Skip to main content

Module painter

Module painter 

Source
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§

AvailableSize
Available space hint passed to intrinsic_size (proxy for taffy’s enum).
MeasureCtx
PaintCtx
Frame-level info passed into every paint call.

Traits§

Painter
Component paint contract.