mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 03:36:41 +01:00
update expose! usage with fixed syntax
This commit is contained in:
parent
3d154f1853
commit
02d0a350dd
2 changed files with 10 additions and 10 deletions
|
|
@ -19,8 +19,8 @@ view!(TuiOut: |self: Tek| self.size.of(View(self, self.view)); {
|
|||
});
|
||||
|
||||
expose!([self: Tek] {
|
||||
bool => {}
|
||||
u16 => {
|
||||
[bool] => {}
|
||||
[u16] => {
|
||||
":h-ins" => self.h_inputs(),
|
||||
":h-outs" => self.h_outputs(),
|
||||
":h-sample" => if self.is_editing() { 0 } else { 5 },
|
||||
|
|
@ -30,24 +30,24 @@ expose!([self: Tek] {
|
|||
":y-outs" => (self.size.h() as u16).saturating_sub(self.h_outputs() + 1),
|
||||
":y-samples" => if self.is_editing() { 1 } else { 0 },
|
||||
}
|
||||
usize => {
|
||||
[usize] => {
|
||||
":scene-last" => self.scenes.len(),
|
||||
":track-last" => self.tracks.len(),
|
||||
}
|
||||
isize => {}
|
||||
Option<usize> => {
|
||||
[isize] => {}
|
||||
[Option<usize>] => {
|
||||
":scene" => self.selected.scene(),
|
||||
":track" => self.selected.track(),
|
||||
}
|
||||
Color => {}
|
||||
Arc<RwLock<MidiClip>> => {}
|
||||
Option<Arc<RwLock<MidiClip>>> => {
|
||||
[Color] => {}
|
||||
[Arc<RwLock<MidiClip>>] => {}
|
||||
[Option<Arc<RwLock<MidiClip>>>] => {
|
||||
":clip" => match self.selected {
|
||||
Selection::Clip(t, s) => self.scenes[s].clips[t].clone(),
|
||||
_ => None
|
||||
}
|
||||
}
|
||||
Selection => {
|
||||
[Selection] => {
|
||||
":scene-next" => match self.selected {
|
||||
Selection::Mix => Selection::Scene(0),
|
||||
Selection::Track(t) => Selection::Clip(t, 0),
|
||||
|
|
|
|||
2
tengri
2
tengri
|
|
@ -1 +1 @@
|
|||
Subproject commit 6048d24880324a6b411b6a8723ad95546e2edbe3
|
||||
Subproject commit 9809c4642883b4dba896bdc92709f6d0b1513f8b
|
||||
Loading…
Add table
Add a link
Reference in a new issue