seq
This commit is contained in:
22
seq/src/page.rs
Normal file
22
seq/src/page.rs
Normal file
@@ -0,0 +1,22 @@
|
||||
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum Page {
|
||||
#[default]
|
||||
Main,
|
||||
Audio,
|
||||
}
|
||||
|
||||
impl Page {
|
||||
pub fn left(&mut self) {
|
||||
*self = match self {
|
||||
Page::Main => Page::Audio,
|
||||
Page::Audio => Page::Audio,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn right(&mut self) {
|
||||
*self = match self {
|
||||
Page::Main => Page::Main,
|
||||
Page::Audio => Page::Main,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user