menus: Add rotate left and right buttons

This commit is contained in:
Sophie Herold 2022-11-05 00:57:18 +01:00
parent 57f573f98a
commit c2e3bb2f83
5 changed files with 153 additions and 85 deletions

View file

@ -385,9 +385,9 @@ impl LpImageView {
}
}
pub fn rotate_image(&self) {
pub fn rotate_image(&self, angle: f64) {
if let Some(current_page) = self.current_page() {
current_page.image().rotate();
current_page.image().rotate(angle);
}
}