added enum for change-slide handling
This commit is contained in:
parent
2a2c862df8
commit
3decc966c9
1 changed files with 15 additions and 0 deletions
|
@ -45,3 +45,18 @@ impl Scenes {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Debug, Clone, Copy)]
|
||||
pub enum SlideChange {
|
||||
Next,
|
||||
Previous,
|
||||
}
|
||||
|
||||
impl SlideChange {
|
||||
pub fn to_string(&self) -> String {
|
||||
match self {
|
||||
SlideChange::Next => {String::from_str("Next_Slide").unwrap()},
|
||||
SlideChange::Previous => {String::from_str("Prev_Slide").unwrap()},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue