mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
wip: p.54, e=85
This commit is contained in:
parent
76af9d9bac
commit
54fb5b6ece
9 changed files with 629 additions and 571 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue