restruct: 25e

This commit is contained in:
i do not exist 2026-06-24 16:20:30 +03:00
parent c737c7d839
commit 3bbe52093e
11 changed files with 454 additions and 432 deletions

View file

@ -1,4 +1,4 @@
use crate::{*, clock::*, sequence::*, sample::*};
use crate::{*, clock::*, sequence::*, sampler::*};
def_command!(FileBrowserCommand: |sampler: Sampler|{
//("begin" [] Some(Self::Begin))
@ -261,6 +261,7 @@ impl<'a> PoolView<'a> {
}))))
}
}
impl ClipLength {
fn tui (&self) -> impl Draw<Tui> {
use ClipLengthFocus::*;
@ -311,6 +312,7 @@ impl Browse {
fn _todo_stub_usize (&self) -> usize { todo!() }
fn _todo_stub_arc_str (&self) -> Arc<str> { todo!() }
}
impl Browse {
fn tui (&self) -> impl Draw<Tui> {
let item = |entry, _index|w_full(origin_w(entry));
@ -324,6 +326,7 @@ impl Browse {
iter_south_fixed(1, iterate, item)
}
}
impl<'a> Iterator for EntriesIterator<'a, Tui> {
type Item = impl Draw<Tui>;
fn next (&mut self) -> Option<Self::Item> {
@ -341,6 +344,7 @@ impl<'a> Iterator for EntriesIterator<'a, Tui> {
}
}
}
impl PartialEq for BrowseTarget {
fn eq (&self, other: &Self) -> bool {
match self {