Trait kas_resvg::CanvasDrawable[][src]

pub trait CanvasDrawable: Debug + 'static {
    fn draw(&self, pixmap: &mut Pixmap);
}
Expand description

Draws to a Canvas’s Pixmap

Required methods

Draw

This is called whenever the Pixmap is resized. One should check the pixmap’s dimensions and scale the contents appropriately.

Implementors