wip: p.54, e=85

This commit is contained in:
🪞👃🪞 2024-11-18 16:51:43 +01:00
parent 76af9d9bac
commit 54fb5b6ece
9 changed files with 629 additions and 571 deletions

View file

@ -72,22 +72,22 @@ impl TransportFocus {
//type Item = TransportFocus;
//}
impl FocusEnter for TransportTui {
type Item = TransportFocus;
fn focus_enter (&mut self) {
self.entered = true;
}
fn focus_exit (&mut self) {
self.entered = false;
}
fn focus_entered (&self) -> Option<Self::Item> {
if self.entered {
Some(self.focused())
} else {
None
}
}
}
//impl FocusEnter for TransportTui {
//type Item = TransportFocus;
//fn focus_enter (&mut self) {
//self.entered = true;
//}
//fn focus_exit (&mut self) {
//self.entered = false;
//}
//fn focus_entered (&self) -> Option<Self::Item> {
//if self.entered {
//Some(self.focused())
//} else {
//None
//}
//}
//}
impl FocusGrid for TransportTui {
type Item = TransportFocus;