wip: big flat pt.2: extract engine crate

This commit is contained in:
🪞👃🪞 2024-12-30 17:54:30 +01:00
parent 4a3de618d0
commit a5628fb663
31 changed files with 1738 additions and 888 deletions

View file

@ -142,9 +142,9 @@ render!(<Tui>|self:Groovebox|{
});
struct EditStatus<'a, T: Render<Tui>>(&'a Sampler, &'a MidiEditor, usize, T);
impl<'a, T: Render<Tui>> Render<Tui> for EditStatus<'a, T> {
impl<'a, T: Render<Tui>> Content<Tui> for EditStatus<'a, T> {
fn content (&self) -> impl Render<Tui> {
Split::n(false, 9, col!([
Some(Split::n(false, 9, col!([
row!(|add|{
if let Some(sample) = &self.0.mapped[self.2] {
add(&format!("Sample {}", sample.read().unwrap().end))?;
@ -162,7 +162,7 @@ impl<'a, T: Render<Tui>> Render<Tui> for EditStatus<'a, T> {
SampleViewer(None)
})),
]),
]), &self.3)
]), &self.3))
}
}