Box widgets

This way, widgets containing other widgets can be heterogenous. Wenever
a widget is expeted, *any* widget will work.
This commit is contained in:
Joscha 2022-07-12 21:09:38 +02:00
parent dea0384162
commit 8eda1ad97d
5 changed files with 5 additions and 5 deletions

View file

@ -255,7 +255,7 @@ impl EuphRoom {
let mut list = self.nick_list.list();
Self::render_rows(&mut list, joined);
list.render(frame, pos, size).await;
Box::new(list).render(frame, pos, size).await;
}
fn render_hsplit(frame: &mut Frame, hsplit: i32) {