use crate::config::ZellijState; pub trait Widget { fn process(&self, name: &str, state: &ZellijState) -> String; /// `is_double_click` is true when this is the second click of a /// double-click at the same position. Detected centrally in /// ModuleConfig::handle_mouse_action, because widgets are held behind &self /// and cannot keep click state of their own. fn process_click(&self, name: &str, state: &ZellijState, pos: usize, is_double_click: bool); }