Resize base layer in Stack before drawing
This commit is contained in:
parent
46167c78c7
commit
d2f36a0a58
7 changed files with 14 additions and 13 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue