Introduce first-class svg module in iced_native

This commit is contained in:
Héctor Ramón Jiménez 2021-10-31 16:24:31 +07:00
parent c4186a71b7
commit 9a3c81f336
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
11 changed files with 106 additions and 98 deletions

View file

@ -311,7 +311,7 @@ impl backend::Image for Backend {
impl backend::Svg for Backend {
fn viewport_dimensions(
&self,
handle: &iced_native::widget::svg::Handle,
handle: &iced_native::svg::Handle,
) -> (u32, u32) {
self.image_pipeline.viewport_dimensions(handle)
}

View file

@ -20,7 +20,7 @@ use bytemuck::{Pod, Zeroable};
use iced_native::image;
#[cfg(feature = "svg")]
use iced_native::widget::svg;
use iced_native::svg;
#[derive(Debug)]
pub struct Pipeline {

View file

@ -1,6 +1,6 @@
use crate::image::atlas::{self, Atlas};
use iced_native::widget::svg;
use iced_native::svg;
use std::collections::{HashMap, HashSet};
use std::fs;