mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-07-17 15:56:57 +02:00
gotta replace that Measure thing with RwLock<[u16;2]>
This commit is contained in:
parent
60dbd89fc9
commit
9ef63324af
6 changed files with 26 additions and 21 deletions
11
src/tek.rs
11
src/tek.rs
|
|
@ -57,6 +57,10 @@ pub mod view;
|
|||
|
||||
use clap::{self, Parser, Subcommand};
|
||||
use builder_pattern::Builder;
|
||||
use self::{
|
||||
arrange::*, clock::*, dialog::*, browse::*, select::*, sequence::*, device::*,
|
||||
config::*, mode::*, view::*, bind::*
|
||||
};
|
||||
|
||||
extern crate xdg;
|
||||
pub(crate) use ::xdg::BaseDirectories;
|
||||
|
|
@ -961,14 +965,9 @@ impl Draw<Tui> for App {
|
|||
}
|
||||
}
|
||||
}
|
||||
impl <T: AsRef<Clock>+AsMut<Clock>> HasClock for T {}
|
||||
impl <T: AsRef<Sequencer>+AsMut<Sequencer>> HasSequencer for T {}
|
||||
impl <T: AsRefOpt<MidiEditor>+AsMutOpt<MidiEditor>> HasEditor for T {}
|
||||
impl <T: NotePoint+TimePoint> MidiPoint for T {}
|
||||
impl <T: TimeRange+NoteRange> MidiRange for T {}
|
||||
impl HasClipsSize for App { fn clips_size (&self) -> &Measure<Tui> { &self.project.size_inner } }
|
||||
impl HasJack<'static> for App { fn jack (&self) -> &Jack<'static> { &self.jack } }
|
||||
impl_default!(AppCommand: Self::Nop);
|
||||
impl_default!(AppCommand: Self::Nop);
|
||||
primitive!(u8: try_to_u8);
|
||||
primitive!(u16: try_to_u16);
|
||||
primitive!(usize: try_to_usize);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue