mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
wip: big flat pt.2: extract engine crate
This commit is contained in:
parent
4a3de618d0
commit
a5628fb663
31 changed files with 1738 additions and 888 deletions
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue