more doc string and reexport fixes

This commit is contained in:
🪞👃🪞 2024-07-12 20:32:11 +03:00
parent 107e38278e
commit dc1f5f4a17
13 changed files with 37 additions and 48 deletions

View file

@ -1,6 +1,7 @@
use crate::core::*;
#[derive(PartialEq)]
/// Which section of the transport is focused
pub enum TransportFocus { BPM, Quant, Sync }
impl TransportFocus {
@ -20,9 +21,10 @@ impl TransportFocus {
}
}
/// Stored and displays time-related state.
pub struct TransportToolbar {
/// Enable metronome?
pub metronome: bool,
pub mode: bool,
pub focused: bool,
pub entered: bool,
pub selected: TransportFocus,
@ -48,7 +50,6 @@ impl TransportToolbar {
Self {
selected: TransportFocus::BPM,
metronome: false,
mode: false,
focused: false,
entered: false,
playhead: 0,