Reimplement room interactions for new rooms

This commit is contained in:
Joscha 2022-03-05 16:36:10 +01:00
parent e81900caac
commit c36f35747f
6 changed files with 136 additions and 88 deletions

View file

@ -1,7 +1,25 @@
mod users;
use tui::backend::Backend;
use tui::layout::Rect;
use tui::Frame;
use crate::cove::room::CoveRoom;
pub struct CoveUi {
room: CoveRoom,
}
impl CoveUi {
pub fn new(room: CoveRoom) -> Self {
Self { room }
}
pub async fn render_main<B: Backend>(&mut self, frame: &mut Frame<'_, B>, area: Rect) {
// TODO Implement
}
pub async fn render_users<B: Backend>(&mut self, frame: &mut Frame<'_, B>, area: Rect) {
// TODO Implement
}
}