From cd67aca62d1c1169bb35e580e3f4d9ddf708235d Mon Sep 17 00:00:00 2001 From: Sebastian Parborg Date: Sun, 25 Aug 2019 17:59:55 +0200 Subject: Add initial_pan option to set the starting pan position --- src/viewport.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/viewport.h') 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, -- cgit v1.2.3