Decouple the image Handle type from the iced_native implementation
This commit is contained in:
parent
8cbba94458
commit
a7bcd65bb8
4 changed files with 37 additions and 24 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue