Skip to main content

NativePainter

Trait NativePainter 

Source
pub trait NativePainter:
    Send
    + Sync
    + 'static {
    // Required method
    fn paint(&self, ctx: &mut NativePaintCtx<'_>);
}
Expand description

Paints one ExtractedNative leaf onto a backend draw target.

A single painter serves every leaf carrying its extension_id, so it takes &self and keeps any per-frame state behind interior mutability.

Required Methods§

Source

fn paint(&self, ctx: &mut NativePaintCtx<'_>)

Draws the leaf described by ctx.

Implementors§