tui-pages 0.7.0

Coordination runtime for keyboard-driven, page-based TUI applications: input sequences, command resolution, focus, navigation, buffers, and panes.
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>) {}
}