pub trait Widget: Debug {
Show 21 methods
// Required methods
fn get_common_state_mut(&mut self) -> &mut CommonState;
fn get_common_state(&self) -> &CommonState;
fn get_notification_queue(&mut self) -> &mut VecDeque<Notification>;
fn render(
&mut self,
rect: Rect,
frame: &mut Frame<'_, CrosstermBackend<Stderr>>
);
// Provided methods
fn get_help_text_notif(&self) -> AppResult<Option<Notification>> { ... }
fn can_handle_key_set(&self) -> IndexSet<&KeyCode> { ... }
fn set_active(&mut self) -> AppResult<Option<Notification>> { ... }
fn is_active(&self) -> bool { ... }
fn get_help_texts(&self) -> &IndexSet<HelpText> { ... }
fn get_help_texts_mut(&mut self) -> &mut IndexSet<HelpText> { ... }
fn is_navigable(&self) -> bool { ... }
fn set_inactive(&mut self) { ... }
fn get_widget_name(&self) -> WidgetName { ... }
fn get_task_sender(&self) -> &ChannelRequestSender { ... }
fn show_spinner(&mut self) -> AppResult<()> { ... }
fn hide_spinner(&mut self) -> AppResult<()> { ... }
fn spinner_notif(&mut self, show: bool) -> AppResult<()> { ... }
fn handler(&mut self, _event: KeyEvent) -> AppResult<Option<Notification>> { ... }
fn process_task_response(
&mut self,
_response: TaskResponse
) -> AppResult<()> { ... }
fn setup(&mut self) -> AppResult<()> { ... }
fn process_notification(
&mut self,
_notification: Notification
) -> AppResult<Option<Notification>> { ... }
}