Introduce first-class image module in iced_native
This commit is contained in:
parent
b3a01973c6
commit
c4186a71b7
12 changed files with 139 additions and 143 deletions
|
|
@ -302,10 +302,7 @@ impl backend::Text for Backend {
|
|||
|
||||
#[cfg(feature = "image_rs")]
|
||||
impl backend::Image for Backend {
|
||||
fn dimensions(
|
||||
&self,
|
||||
handle: &iced_native::widget::image::Handle,
|
||||
) -> (u32, u32) {
|
||||
fn dimensions(&self, handle: &iced_native::image::Handle) -> (u32, u32) {
|
||||
self.image_pipeline.dimensions(handle)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ use std::mem;
|
|||
use bytemuck::{Pod, Zeroable};
|
||||
|
||||
#[cfg(feature = "image_rs")]
|
||||
use iced_native::widget::image;
|
||||
use iced_native::image;
|
||||
|
||||
#[cfg(feature = "svg")]
|
||||
use iced_native::widget::svg;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use crate::image::atlas::{self, Atlas};
|
||||
use iced_native::widget::image;
|
||||
use iced_native::image;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
|
||||
use bitflags::bitflags;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue