pub trait Tab {
type AppState;
Show 18 methods
// Required methods
fn widgets(&mut self) -> Vec<&mut dyn Widget<AppData = Self::AppState>>;
fn title(&self) -> &str;
fn set_selection(&mut self, area: Rect);
fn tabdata(&mut self) -> &mut TabData<Self::AppState>;
// Provided methods
fn set_popup(&mut self, pop: Box<dyn Tab<AppState = Self::AppState>>) { ... }
fn pop_up(&mut self) -> Option<&mut Box<dyn Tab<AppState = Self::AppState>>> { ... }
fn get_popup_value(&mut self) -> Option<&mut PopUpState> { ... }
fn check_popup_value(&mut self, app_data: &mut Self::AppState) { ... }
fn handle_popup_value(
&mut self,
_app_data: &mut Self::AppState,
_return_value: Box<dyn Any>
) { ... }
fn entry_keyhandler(
&mut self,
key: Event,
app_data: &mut Self::AppState
) -> ControlFlow<()> { ... }
fn tab_keyhandler(
&mut self,
_app_data: &mut Self::AppState,
_key: KeyEvent
) -> bool { ... }
fn widget_keyhandler(
&mut self,
app_data: &mut Self::AppState,
key: KeyEvent
) { ... }
fn entry_render(
&mut self,
f: &mut Frame<'_>,
app_data: &mut Self::AppState,
area: Rect
) { ... }
fn render(&mut self, f: &mut Frame<'_>, app_data: &mut Self::AppState) { ... }
fn after_keyhandler(&mut self, _app_data: &mut Self::AppState) { ... }
fn cursor(&mut self) -> Pos { ... }
fn selected(&mut self) -> bool { ... }
fn navigate(&mut self, dir: Retning) { ... }
}