add Arranger::is_first_row/is_last_row for arrow focus

This commit is contained in:
🪞👃🪞 2024-09-01 22:22:49 +03:00
parent a4bd99c117
commit 7bd2a70e85
6 changed files with 81 additions and 27 deletions

View file

@ -15,6 +15,9 @@ pub enum ArrangerFocus {
/// Focus identification methods
impl ArrangerFocus {
pub fn is_mix (&self) -> bool {
match self { Self::Mix => true, _ => false }
}
pub fn is_track (&self) -> bool {
match self { Self::Track(_) => true, _ => false }
}