summaryrefslogblamecommitdiffstats
path: root/graphics/src/widget/svg.rs
blob: b74a0abb35500acae9a2d7539ca1521367217aee (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                                
                                    

                     
 
                                        
 



                                     
                                                              
                                                  
     
 
//! Display vector graphics in your application.
use crate::backend::{self, Backend};
use crate::Renderer;
use iced_native::svg;

pub use iced_native::svg::{Handle, Svg};

impl<B> svg::Renderer for Renderer<B>
where
    B: Backend + backend::Svg,
{
    fn dimensions(&self, handle: &svg::Handle) -> (u32, u32) {
        self.backend().viewport_dimensions(handle)
    }
}