blob: 81512b5dfe99f3b7d95a9a457c4df8618cceeb30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
use tui::buffer::Buffer;
use tui::layout::Rect;
use tui::widgets::Widget;
use super::TuiFolderView;
use crate::context::JoshutoContext;
pub struct TuiView<'a> {
pub context: &'a JoshutoContext,
pub show_bottom_status: bool,
}
impl<'a> TuiView<'a> {
pub fn new(context: &'a JoshutoContext) -> Self {
Self {
context,
show_bottom_status: true,
}
}
}
impl<'a> Widget for TuiView<'a> {
fn render(self, area: Rect, buf: &mut Buffer) {
TuiFolderView::new(self.context).render(area, buf);
}
}
|