aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets/widget.rs
blob: ff4a7849665a51a1baab711cb1253416ef12b55f (plain) (blame)
1
2
3
4
5
6
use crate::config::ZellijState;

pub trait Widget {
    fn process(&self, name: &str, state: &ZellijState) -> String;
    fn process_click(&self, state: &ZellijState, pos: usize);
}