Move core::Image::clip_bounds to graphics::Image

This commit is contained in:
Héctor Ramón Jiménez 2025-10-28 19:44:46 +01:00
parent 3cc5bd5dbc
commit 7c11ccb046
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
16 changed files with 189 additions and 88 deletions

View file

@ -217,7 +217,13 @@ impl image::Renderer for () {
Size::default()
}
fn draw_image(&mut self, _image: Image, _bounds: Rectangle) {}
fn draw_image(
&mut self,
_image: Image,
_bounds: Rectangle,
_clip_bounds: Rectangle,
) {
}
}
impl svg::Renderer for () {
@ -225,5 +231,11 @@ impl svg::Renderer for () {
Size::default()
}
fn draw_svg(&mut self, _svg: svg::Svg, _bounds: Rectangle) {}
fn draw_svg(
&mut self,
_svg: svg::Svg,
_bounds: Rectangle,
_clip_bounds: Rectangle,
) {
}
}