diff options
author | 2021-12-10 20:15:27 +0100 | |
---|---|---|
committer | 2021-12-10 23:33:58 +0100 | |
commit | a7bcd65bb82a2640e10cbe25bf24bc003d059857 (patch) | |
tree | 99e9991ba33d8f808d3bba76fae813182977c814 /graphics | |
parent | 8cbba944581a81931848352ec45646d882d9b3d0 (diff) | |
download | iced-a7bcd65bb82a2640e10cbe25bf24bc003d059857.tar.gz iced-a7bcd65bb82a2640e10cbe25bf24bc003d059857.tar.bz2 iced-a7bcd65bb82a2640e10cbe25bf24bc003d059857.zip |
Decouple the image Handle type from the iced_native implementation
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/src/widget/image.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/graphics/src/widget/image.rs b/graphics/src/widget/image.rs index ad8159de..76152484 100644 --- a/graphics/src/widget/image.rs +++ b/graphics/src/widget/image.rs @@ -13,6 +13,8 @@ impl<B> image::Renderer for Renderer<B> where B: Backend + backend::Image, { + type Handle = image::Handle; + fn dimensions(&self, handle: &image::Handle) -> (u32, u32) { self.backend().dimensions(handle) } |