wip: refactored core

This commit is contained in:
🪞👃🪞 2024-09-04 23:51:35 +03:00
parent 461c60d6b3
commit c033a5618b
9 changed files with 75 additions and 67 deletions

View file

@ -20,7 +20,7 @@ impl<'a, T, U> Collect<'a, T, U> for Layered<'a, T, U> {
}
impl<'a> Render<TuiContext, Rect> for Layered<'a, TuiContext, Rect> {
fn render (&self, to: &mut impl TuiTarget) -> Perhaps<Rect> {
fn render (&self, to: &mut TuiContext) -> Perhaps<Rect> {
let area = to.area();
for layer in self.0.0.iter() {
layer.render(to)?;