pub mod action;
pub mod command;
pub mod config;
pub mod dispatch;
pub mod message;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum View {
Library,
Selection,
Playlists,
Sampler,
}
impl View {
pub fn next(self) -> Self {
match self {
View::Library => View::Selection,
View::Selection => View::Playlists,
View::Playlists => View::Sampler,
View::Sampler => View::Library,
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub enum Display {
#[default]
Envelope,
Decibels,
Braille,
}
impl Display {
pub fn name(self) -> &'static str {
match self {
Display::Envelope => "envelope",
Display::Decibels => "db",
Display::Braille => "braille",
}
}
pub fn next(self) -> Display {
match self {
Display::Envelope => Display::Decibels,
Display::Decibels => Display::Braille,
Display::Braille => Display::Envelope,
}
}
}