mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
wip: p.51, e=7, collecting tui by layer
This commit is contained in:
parent
b3ac9e60e3
commit
7b3c013aa7
26 changed files with 786 additions and 799 deletions
27
crates/tek_tui/src/tui_handle.rs
Normal file
27
crates/tek_tui/src/tui_handle.rs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
use crate::*;
|
||||
|
||||
impl Handle<Tui> for TransportTui {
|
||||
fn handle (&mut self, from: &TuiInput) -> Perhaps<bool> {
|
||||
TransportCommand::execute_with_state(self, from)
|
||||
}
|
||||
}
|
||||
impl Handle<Tui> for SequencerTui {
|
||||
fn handle (&mut self, i: &TuiInput) -> Perhaps<bool> {
|
||||
SequencerCommand::execute_with_state(self, i)
|
||||
}
|
||||
}
|
||||
impl Handle<Tui> for ArrangerTui {
|
||||
fn handle (&mut self, i: &TuiInput) -> Perhaps<bool> {
|
||||
ArrangerCommand::execute_with_state(self, i)
|
||||
}
|
||||
}
|
||||
impl Handle<Tui> for PhrasesTui {
|
||||
fn handle (&mut self, from: &TuiInput) -> Perhaps<bool> {
|
||||
PhrasesCommand::execute_with_state(self, from)
|
||||
}
|
||||
}
|
||||
impl Handle<Tui> for PhraseTui {
|
||||
fn handle (&mut self, from: &TuiInput) -> Perhaps<bool> {
|
||||
PhraseCommand::execute_with_state(self, from)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue