Introduce first-class image module in iced_native

This commit is contained in:
Héctor Ramón Jiménez 2021-10-31 16:20:50 +07:00
parent b3a01973c6
commit c4186a71b7
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
12 changed files with 139 additions and 143 deletions

View file

@ -237,10 +237,7 @@ impl backend::Text for Backend {
#[cfg(feature = "image")]
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) {
(50, 50)
}
}