Files
sus-manager/src/widgets/views/mod.rs
2025-10-15 18:06:45 +08:00

10 lines
290 B
Rust

mod main_view;
use crossterm::event::{Event, KeyEvent};
pub use main_view::MainView;
pub trait View {
fn handle_input(&mut self, event: &Event) -> color_eyre::Result<()>;
fn handle_key_input(&mut self, key: &KeyEvent) -> color_eyre::Result<()>;
fn is_running(&self) -> bool;
}