separate Input and Output impls

This commit is contained in:
🪞👃🪞 2025-01-05 22:01:54 +01:00
parent a6efde40f8
commit 0e821e098f
77 changed files with 465 additions and 454 deletions

View file

@ -96,7 +96,7 @@ pub struct TrackView<'a> {
pub entered: bool,
}
impl<'a> Content<Tui> for TrackView<'a> {
impl<'a> Content<TuiOut> for TrackView<'a> {
fn render (&self, to: &mut TuiOut) {
todo!();
//let mut area = to.area();
@ -127,8 +127,8 @@ impl<'a> Content<Tui> for TrackView<'a> {
}
}
//impl Content<Tui> for Mixer<Tui> {
//fn content (&self) -> impl Content<Tui> {
//impl Content<TuiOut> for Mixer<Tui> {
//fn content (&self) -> impl Content<TuiOut> {
//Stack::right(|add| {
//for channel in self.tracks.iter() {
//add(channel)?;
@ -138,8 +138,8 @@ impl<'a> Content<Tui> for TrackView<'a> {
//}
//}
//impl Content<Tui> for Track<Tui> {
//fn content (&self) -> impl Content<Tui> {
//impl Content<TuiOut> for Track<Tui> {
//fn content (&self) -> impl Content<TuiOut> {
//TrackView {
//chain: Some(&self),
//direction: tek_core::Direction::Right,
@ -162,7 +162,7 @@ impl<'a> Content<Tui> for TrackView<'a> {
//}
//}
handle!(<Tui>|self: Mixer, engine|{
handle!(TuiIn: |self: Mixer, engine|{
if let crossterm::event::Event::Key(event) = engine.event() {
match event.code {
@ -210,7 +210,7 @@ handle!(<Tui>|self: Mixer, engine|{
Ok(None)
});
handle!(<Tui>|self:MixerTrack,from|{
handle!(TuiIn: |self:MixerTrack,from|{
match from.event() {
//, NONE, "chain_cursor_up", "move cursor up", || {
kpat!(KeyCode::Up) => {