Fix broken imports in iced_renderer

This commit is contained in:
Héctor Ramón Jiménez 2024-08-04 03:39:53 +02:00
parent 2ad3cff722
commit 974ae6d1e7
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -441,7 +441,9 @@ where
#[cfg(feature = "geometry")] #[cfg(feature = "geometry")]
mod geometry { mod geometry {
use super::Renderer; use super::Renderer;
use crate::core::{Point, Radians, Rectangle, Size, Vector}; use crate::core::image;
use crate::core::svg;
use crate::core::{Color, Point, Radians, Rectangle, Size, Vector};
use crate::graphics::cache::{self, Cached}; use crate::graphics::cache::{self, Cached};
use crate::graphics::geometry::{self, Fill, Path, Stroke, Text}; use crate::graphics::geometry::{self, Fill, Path, Stroke, Text};
@ -574,9 +576,9 @@ mod geometry {
fn draw_image( fn draw_image(
&mut self, &mut self,
handle: &iced_wgpu::core::image::Handle, handle: &image::Handle,
bounds: Rectangle, bounds: Rectangle,
filter_method: iced_wgpu::core::image::FilterMethod, filter_method: image::FilterMethod,
rotation: Radians, rotation: Radians,
opacity: f32, opacity: f32,
) { ) {
@ -595,9 +597,9 @@ mod geometry {
fn draw_svg( fn draw_svg(
&mut self, &mut self,
handle: &iced_wgpu::core::svg::Handle, handle: &svg::Handle,
bounds: Rectangle, bounds: Rectangle,
color: Option<iced_wgpu::core::Color>, color: Option<Color>,
rotation: Radians, rotation: Radians,
opacity: f32, opacity: f32,
) { ) {