mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-01-31 16:36:40 +01:00
36 lines
1.3 KiB
Rust
36 lines
1.3 KiB
Rust
use crate::*;
|
|
|
|
impl<'state> Context<'state, ClipCommand> for Arrangement {
|
|
fn get <'source> (&'state self, iter: &mut TokenIter<'source>) -> Option<ClipCommand> {
|
|
Context::get(&self, iter)
|
|
}
|
|
}
|
|
|
|
#[tengri_proc::expose]
|
|
impl MidiClip {
|
|
fn _todo_opt_bool_stub_ (&self) -> Option<bool> { todo!() }
|
|
fn _todo_bool_stub_ (&self) -> bool { todo!() }
|
|
fn _todo_usize_stub_ (&self) -> usize { todo!() }
|
|
fn _todo_arc_str_stub_ (&self) -> Arc<str> { todo!() }
|
|
fn _todo_item_theme_stub (&self) -> ItemTheme { todo!() }
|
|
fn _todo_opt_item_theme_stub (&self) -> Option<ItemTheme> { todo!() }
|
|
}
|
|
|
|
#[tengri_proc::command(MidiClip)]
|
|
impl ClipCommand {
|
|
fn set_color (clip: &mut MidiClip, color: Option<ItemTheme>) -> Perhaps<Self> {
|
|
//(SetColor [t: usize, s: usize, c: ItemTheme]
|
|
//clip.clip_set_color(t, s, c).map(|o|Self::SetColor(t, s, o)))));
|
|
//("color" [a: usize, b: usize] Some(Self::SetColor(a.unwrap(), b.unwrap(), ItemTheme::random())))
|
|
todo!()
|
|
}
|
|
fn set_loop (clip: &mut MidiClip, looping: Option<bool>) -> Perhaps<Self> {
|
|
//(SetLoop [t: usize, s: usize, l: bool] cmd_todo!("\n\rtodo: {self:?}"))
|
|
//("loop" [a: usize, b: usize, c: bool] Some(Self::SetLoop(a.unwrap(), b.unwrap(), c.unwrap())))
|
|
todo!()
|
|
}
|
|
}
|
|
|
|
impl Arrangement {
|
|
|
|
}
|