mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
ohh why did i begin this refactor. e57
This commit is contained in:
parent
83eb9dd2fa
commit
49adf34b02
6 changed files with 46 additions and 41 deletions
|
|
@ -119,7 +119,7 @@ render!(Tui: (self: MidiEditor) => {
|
|||
|
||||
//render!(<Tui>|self: MidiEditor|lay!(|add|{add(&self.size)?;add(self.mode)}));//bollocks
|
||||
|
||||
pub trait PhraseViewMode: Content<Tui> + HasSize<Tui> + MidiRange + MidiPoint + Debug + Send + Sync {
|
||||
pub trait PhraseViewMode: HasSize<Tui> + MidiRange + MidiPoint + Debug + Send + Sync {
|
||||
fn buffer_size (&self, phrase: &MidiClip) -> (usize, usize);
|
||||
fn redraw (&mut self);
|
||||
fn phrase (&self) -> &Option<Arc<RwLock<MidiClip>>>;
|
||||
|
|
@ -131,7 +131,7 @@ pub trait PhraseViewMode: Content<Tui> + HasSize<Tui> + MidiRange + MidiPoint +
|
|||
}
|
||||
|
||||
impl Content<Tui> for Box<dyn PhraseViewMode> {
|
||||
fn content (&self) -> Option<impl Content<Tui>> {
|
||||
fn content (&self) -> impl Content<Tui> {
|
||||
Some(&(*self))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue