Introduce first-class svg module in iced_native
This commit is contained in:
parent
c4186a71b7
commit
9a3c81f336
11 changed files with 106 additions and 98 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue