itools_tui/components/
mod.rs1pub trait Component {
7 fn render(&self, frame: &mut Frame, area: Rect);
9
10 fn handle_event(&mut self, event: &Event) -> bool;
12}
13
14pub mod button;
16
17pub mod input;
19
20pub mod list;
22
23pub mod table;
25
26pub mod panel;
28
29pub mod progress_bar;
31
32pub mod loading_animation;
34
35pub mod select_menu;
37
38pub use button::Button;
40pub use input::Input;
41pub use list::List;
42pub use loading_animation::LoadingAnimation;
43pub use panel::Panel;
44pub use progress_bar::ProgressBar;
45pub use select_menu::SelectMenu;
46pub use table::Table;
47
48use crate::event::Event;
50use crate::{layout::Rect, render::Frame};