summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Olivier Pinon <op@impero.com>2021-12-10 20:15:27 +0100
committerLibravatar Olivier Pinon <op@impero.com>2021-12-10 23:33:58 +0100
commita7bcd65bb82a2640e10cbe25bf24bc003d059857 (patch)
tree99e9991ba33d8f808d3bba76fae813182977c814 /graphics
parent8cbba944581a81931848352ec45646d882d9b3d0 (diff)
downloadiced-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.rs2
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)
}