blob: 676da8afb04490141e2e6ecc143eca0cb7c496f4 (
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
27
28
29
30
31
32
33
|
//! tuine helps "tie" together ratatui/tui-rs and some layout/event logic to abstract away a bunch of the logic.
mod constraints;
mod container;
mod element;
mod widget;
pub use container::*;
pub use element::*;
pub use widget::*;
use crate::app::layout_manager::BottomLayout;
/// The overall widget tree.
///
/// TODO: The current implementation is a bit WIP while I transition things over.
pub struct WidgetTree {
root: Element,
}
impl WidgetTree {
/// Create a [`WidgetTree`].
///
/// TODO: The current implementation is a bit WIP while I transition things over.
pub fn new(layout: BottomLayout) -> Self {
Self { root: todo!() }
}
/// Draw the widget tree.
pub fn draw(&mut self) {}
}
|