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:
parent
dea0384162
commit
8eda1ad97d
5 changed files with 5 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue