tui-lipan 0.2.0

Opinionated, component-based TUI framework for Rust - declarative components, reconciliation, layout engine, focus, overlays, and rich widgets on top of ratatui.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::app::focus_service;
use crate::core::component::Component;

use super::AppRunner;

impl<C: Component> AppRunner<C> {
    pub(super) fn notify_focus_change(&mut self) {
        focus_service::notify_focus_change(
            &self.core.tree,
            self.focus.focused,
            &mut self.focus.last_notified,
            self.on_focus_changed.as_ref(),
        );
    }
}