wip: big flat pt.5: implement transforms with macro

This commit is contained in:
🪞👃🪞 2024-12-30 19:52:56 +01:00
parent 34e731f111
commit 18b2d8c48b
8 changed files with 387 additions and 558 deletions

View file

@ -27,7 +27,7 @@ impl<E: Engine, A: Render<E>, B: Render<E>> Render<E> for Split<E, A, B> {
Ok(Some(to))
}
fn render (&self, to: &mut E::Output) -> Usually<()> {
let (a, b) = self.1.split_fixed(self.2, self.3);
let (a, b) = self.1.split_fixed(to.area(), self.2);
Ok(if self.0 {
to.render_in(a.into(), &self.4)?;
to.render_in(b.into(), &self.3)?;