cmdsys: delegate handling

This commit is contained in:
🪞👃🪞 2024-11-09 01:49:21 +01:00
parent 9b770c468f
commit c551f83d5c
6 changed files with 72 additions and 57 deletions

View file

@ -164,7 +164,8 @@ pub struct PhraseLength<E: Engine> {
Tick,
}
/// Focus layout of sequencer app
impl<E: Engine> FocusGrid<SequencerFocus> for Sequencer<E> {
impl<E: Engine> FocusGrid for Sequencer<E> {
type Item = SequencerFocus;
fn cursor (&self) -> (usize, usize) { self.focus_cursor }
fn cursor_mut (&mut self) -> &mut (usize, usize) { &mut self.focus_cursor }
fn layout (&self) -> &[&[SequencerFocus]] { &[