Consume widget during rendering

This commit is contained in:
Joscha 2022-07-12 10:09:45 +02:00
parent 53a0f8d4af
commit d3229370f3
2 changed files with 2 additions and 2 deletions

View file

@ -7,5 +7,5 @@ use toss::frame::{Frame, Pos, Size};
pub trait Widget {
fn size(&self, frame: &mut Frame, max_width: Option<u16>, max_height: Option<u16>) -> Size;
async fn render(&self, frame: &mut Frame, pos: Pos, size: Size);
async fn render(self, frame: &mut Frame, pos: Pos, size: Size);
}