pub struct SequencerView {
pub band: SeqBand,
pub knob: usize,
pub locked: bool,
pub copy_from: Option<u8>,
pub digits: String,
}Expand description
The step grid’s cursor: which band, which control inside it, and whether that control has been locked with Enter.
Nothing here is part of a pattern. It is the same separation the piano
roll keeps — PianoRollState holds a column and a focus level, the clip
holds the notes.
Fields§
§band: SeqBand§knob: usizeWhich control inside SequencerView::band the cursor is on.
locked: boolEnter was pressed on a control: h/l now adjust it and nothing else
gets a look at the key. The fader’s contract, applied to a knob.
copy_from: Option<u8>The slot y picked up, for p to paste.
digits: StringDigits typed towards a step or slot number.
Implementations§
Source§impl SequencerView
impl SequencerView
pub fn new() -> Self
Sourcepub fn move_band(&mut self, delta: i32)
pub fn move_band(&mut self, delta: i32)
Move to another band, giving up the lock and the digit buffer with it.
Sourcepub fn focus_band(&mut self, band: SeqBand)
pub fn focus_band(&mut self, band: SeqBand)
Put the cursor on a band directly, as opening the view does.
Trait Implementations§
Source§impl Clone for SequencerView
impl Clone for SequencerView
Source§fn clone(&self) -> SequencerView
fn clone(&self) -> SequencerView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SequencerView
impl Debug for SequencerView
Source§impl Default for SequencerView
impl Default for SequencerView
Source§fn default() -> SequencerView
fn default() -> SequencerView
Returns the “default value” for a type. Read more
impl Eq for SequencerView
Source§impl PartialEq for SequencerView
impl PartialEq for SequencerView
impl StructuralPartialEq for SequencerView
Auto Trait Implementations§
impl Freeze for SequencerView
impl RefUnwindSafe for SequencerView
impl Send for SequencerView
impl Sync for SequencerView
impl Unpin for SequencerView
impl UnsafeUnpin for SequencerView
impl UnwindSafe for SequencerView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more