aboutsummaryrefslogtreecommitdiff
path: root/src/viewport.h
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2019-08-25 17:59:55 +0200
committerHarry Jeffery <harry@exec64.co.uk>2019-08-25 21:28:33 +0100
commitcd67aca62d1c1169bb35e580e3f4d9ddf708235d (patch)
tree2eea85fe2d71ab75bea17adca058d7f8f4eefecd /src/viewport.h
parentecc58e5ee237b6fad308e590317ff3fc5d3475fc (diff)
downloadimv-cd67aca62d1c1169bb35e580e3f4d9ddf708235d.tar.gz
Add initial_pan option to set the starting pan position
Diffstat (limited to 'src/viewport.h')
-rw-r--r--src/viewport.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/viewport.h b/src/viewport.h
index 32fc728..0b9519f 100644
--- a/src/viewport.h
+++ b/src/viewport.h
@@ -34,6 +34,9 @@ void imv_viewport_get_offset(struct imv_viewport *view, int *x, int *y);
/* Fetch viewport scale */
void imv_viewport_get_scale(struct imv_viewport *view, double *scale);
+/* Set the default pan_factor factor for the x and y position */
+void imv_viewport_set_default_pan_factor(struct imv_viewport *view, double pan_factor_x, double pan_factor_y);
+
/* Pan the view by the given amounts without letting the image get too far
* off-screen */
void imv_viewport_move(struct imv_viewport *view, int x, int y,