tui-pages 0.7.2

Core for TUI apps with multiple pages
Documentation
1
2
3
4
5
6
7
use crate::focus::FocusTarget;

pub trait Focusable<O = ()> {
    fn focus_targets(&self) -> Vec<FocusTarget<O>>;

    fn on_focus_change(&mut self, _target: &FocusTarget<O>) {}
}