Resize base layer in Stack before drawing

This commit is contained in:
Héctor Ramón Jiménez 2025-08-17 00:58:37 +02:00
parent 46167c78c7
commit d2f36a0a58
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 14 additions and 13 deletions

View file

@ -60,8 +60,8 @@ pub trait Renderer {
/// Fills a [`Quad`] with the provided [`Background`].
fn fill_quad(&mut self, quad: Quad, background: impl Into<Background>);
/// Clears all of the recorded primitives in the [`Renderer`].
fn clear(&mut self);
/// Resets the [`Renderer`] to start drawing in the `new_bounds` from scratch.
fn reset(&mut self, new_bounds: Rectangle);
}
/// A polygon with four sides.

View file

@ -16,7 +16,7 @@ impl Renderer for () {
fn end_transformation(&mut self) {}
fn clear(&mut self) {}
fn reset(&mut self, _new_bounds: Rectangle) {}
fn fill_quad(
&mut self,