aboutsummaryrefslogtreecommitdiff
path: root/src/viewport.h
diff options
context:
space:
mode:
authorAnton Älgmyr <anton@algmyr.se>2020-03-11 01:01:40 +0100
committerHarry Jeffery <harry@exec64.co.uk>2020-06-12 01:00:10 +0100
commita71709b889743bddc4f48a8f13a34a5075ca8ff7 (patch)
tree0ce957376ebcffeb184eb22edc5ef52383d1d02d /src/viewport.h
parentf968eb420c8d30d45adc1f668c15c29f5b9ee87d (diff)
downloadimv-a71709b889743bddc4f48a8f13a34a5075ca8ff7.tar.gz
Unify rotation commands, reset transformation properly
Diffstat (limited to 'src/viewport.h')
-rw-r--r--src/viewport.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/viewport.h b/src/viewport.h
index 417bf93..a24113c 100644
--- a/src/viewport.h
+++ b/src/viewport.h
@@ -62,7 +62,7 @@ void imv_viewport_zoom(struct imv_viewport *view, const struct imv_image *image,
enum imv_zoom_source, int mouse_x, int mouse_y, int amount);
/* Rotate the view by the given number of degrees */
-void imv_viewport_rotate(struct imv_viewport *view, double degrees);
+void imv_viewport_rotate_by(struct imv_viewport *view, double degrees);
/* Rotate the view to the given number of degrees */
void imv_viewport_rotate_to(struct imv_viewport *view, double degrees);
@@ -73,6 +73,9 @@ void imv_viewport_flip_h(struct imv_viewport *view);
/* Flip vertically (across horizontal axis) */
void imv_viewport_flip_v(struct imv_viewport *view);
+/* Flip vertically (across horizontal axis) */
+void imv_viewport_reset_transform(struct imv_viewport *view);
+
/* Recenter the view to be in the middle of the image */
void imv_viewport_center(struct imv_viewport *view,
const struct imv_image *image);