usecrossterm::event::{KeyEvent, MouseEvent};useratatui::{layout::Rect, Frame};/// Trait every widget will implement
pubtraitWidget{/// Render into the given area. `focused` can be used to show focus style.
fnrender(&mutself, f:&mutFrame<'_>, area: Rect);/// Key events delivered to widget when it is focused.
fnon_key(&mutself, key: KeyEvent);/// Mouse events delivered to widget (coords are global Frame coords).
fnon_mouse(&mutself, me: MouseEvent);}