model: document all fields

This commit is contained in:
🪞👃🪞 2025-04-14 00:14:01 +03:00
parent e1a5910db3
commit 5120930919

View file

@ -15,35 +15,51 @@ mod model_select; pub use self::model_select::*;
pub editor: Option<MidiEditor>, pub editor: Option<MidiEditor>,
/// Contains a render of the project arrangement, redrawn on update. /// Contains a render of the project arrangement, redrawn on update.
pub arranger: Arc<RwLock<Buffer>>, pub arranger: Arc<RwLock<Buffer>>,
/// List of global midi inputs
pub midi_ins: Vec<JackMidiIn>, pub midi_ins: Vec<JackMidiIn>,
/// List of global midi outputs
pub midi_outs: Vec<JackMidiOut>, pub midi_outs: Vec<JackMidiOut>,
/// List of global audio inputs
pub audio_ins: Vec<JackAudioIn>, pub audio_ins: Vec<JackAudioIn>,
/// List of global audio outputs
pub audio_outs: Vec<JackAudioOut>, pub audio_outs: Vec<JackAudioOut>,
/// Buffer for writing a midi event
pub note_buf: Vec<u8>, pub note_buf: Vec<u8>,
/// Buffer for writing a chunk of midi events
pub midi_buf: Vec<Vec<Vec<u8>>>, pub midi_buf: Vec<Vec<Vec<u8>>>,
/// List of tracks
pub tracks: Vec<Track>, pub tracks: Vec<Track>,
/// Scroll offset of tracks
pub track_scroll: usize, pub track_scroll: usize,
/// List of scenes
pub scenes: Vec<Scene>, pub scenes: Vec<Scene>,
/// Scroll offset of scenes
pub scene_scroll: usize, pub scene_scroll: usize,
/// Selected UI element
pub selected: Selection, pub selected: Selection,
/// Display size
pub size: Measure<TuiOut>, pub size: Measure<TuiOut>,
/// Performance counter
pub perf: PerfModel, pub perf: PerfModel,
/// Whether in edit mode
pub editing: AtomicBool, pub editing: AtomicBool,
/// Undo history
pub history: Vec<TekCommand>, pub history: Vec<TekCommand>,
/// Port handles
pub ports: std::collections::BTreeMap<u32, Port<Unowned>>, pub ports: std::collections::BTreeMap<u32, Port<Unowned>>,
/// View definition /// View definition
pub view: SourceIter<'static>, pub view: SourceIter<'static>,
// Input definitions // Input definitions
pub keys: SourceIter<'static>, pub keys: SourceIter<'static>,
// Input definitions when a clip is focused
pub keys_clip: SourceIter<'static>, pub keys_clip: SourceIter<'static>,
// Input definitions when a track is focused
pub keys_track: SourceIter<'static>, pub keys_track: SourceIter<'static>,
// Input definitions when a scene is focused
pub keys_scene: SourceIter<'static>, pub keys_scene: SourceIter<'static>,
// Input definitions when the mix is focused
pub keys_mix: SourceIter<'static>, pub keys_mix: SourceIter<'static>,
// Cache of formatted strings
pub fmtd: Arc<RwLock<ViewCache>>, pub fmtd: Arc<RwLock<ViewCache>>,
} }
has_size!(<TuiOut>|self: Tek|&self.size); has_size!(<TuiOut>|self: Tek|&self.size);