1 2 3 4 5 6 7 8 9 10 11 12
use crate::prelude::*; impl Render for Svg { #[inline] fn perform_layout(&self, _: BoxClamp, _: &mut LayoutCtx) -> Size { self.size } #[inline] fn paint(&self, ctx: &mut PaintingCtx) { let painter = ctx.painter(); painter.draw_svg(self); } }