mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 12:46:42 +01:00
wip2 (205e): layout
This commit is contained in:
parent
2265d951d1
commit
3de89bf4fd
21 changed files with 130 additions and 129 deletions
|
|
@ -95,8 +95,7 @@ pub struct TrackView<'a, E: Engine> {
|
|||
pub entered: bool,
|
||||
}
|
||||
|
||||
impl<'a> Render for TrackView<'a, Tui> {
|
||||
type Engine = Tui;
|
||||
impl<'a> Render<Tui> for TrackView<'a, Tui> {
|
||||
fn min_size (&self, area: [u16;2]) -> Perhaps<[u16;2]> {
|
||||
todo!()
|
||||
}
|
||||
|
|
@ -130,9 +129,8 @@ impl<'a> Render for TrackView<'a, Tui> {
|
|||
}
|
||||
}
|
||||
|
||||
impl Content for Mixer<Tui> {
|
||||
type Engine = Tui;
|
||||
fn content (&self) -> impl Render<Engine = Tui> {
|
||||
impl Content<Tui> for Mixer<Tui> {
|
||||
fn content (&self) -> impl Render<Tui> {
|
||||
Stack::right(|add| {
|
||||
for channel in self.tracks.iter() {
|
||||
add(channel)?;
|
||||
|
|
@ -142,9 +140,8 @@ impl Content for Mixer<Tui> {
|
|||
}
|
||||
}
|
||||
|
||||
impl Content for Track<Tui> {
|
||||
type Engine = Tui;
|
||||
fn content (&self) -> impl Render<Engine = Tui> {
|
||||
impl Content<Tui> for Track<Tui> {
|
||||
fn content (&self) -> impl Render<Tui> {
|
||||
TrackView {
|
||||
chain: Some(&self),
|
||||
direction: tek_core::Direction::Right,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue