intelli_shell/widgets/
mod.rs

1mod command;
2mod dynamic;
3mod error;
4mod list;
5mod new_version;
6mod tag;
7mod textarea;
8mod variable;
9
10pub use command::*;
11pub use dynamic::*;
12pub use error::*;
13pub use list::*;
14pub use new_version::*;
15pub use tag::*;
16pub use textarea::*;
17pub use variable::*;
18
19/// A trait for types that can be converted into a Ratatui widget for display
20pub trait AsWidget {
21    /// Sets the highlighted status
22    fn set_highlighted(&mut self, is_highlighted: bool) {
23        let _ = is_highlighted;
24    }
25
26    /// Converts the object into a Ratatui widget and its size
27    fn as_widget<'a>(&'a self, is_highlighted: bool) -> (impl ratatui::widgets::Widget + 'a, ratatui::layout::Size);
28}