summaryrefslogtreecommitdiffstats
path: root/image.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-01-21 13:48:02 +0100
committerBert <ber.t@gmx.com>2011-01-21 13:48:02 +0100
commitb92ebf67ee04134e7c9e006cdef3dace969539aa (patch)
tree9d97654b960d52bdde037cf48544c73b8c4162e8 /image.h
parent72e56e520704522c52abd349566b1523ad96c808 (diff)
downloadnsxiv-b92ebf67ee04134e7c9e006cdef3dace969539aa.tar.zst
Implemented panning
Diffstat (limited to 'image.h')
-rw-r--r--image.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/image.h b/image.h
index 7a20bd8..645b706 100644
--- a/image.h
+++ b/image.h
@@ -27,9 +27,17 @@ enum scalemode {
SCALE_ZOOM
};
+typedef enum pandir_e {
+ PAN_LEFT = 0,
+ PAN_RIGHT,
+ PAN_UP,
+ PAN_DOWN
+} pandir_t;
+
typedef struct img_s {
float zoom;
unsigned char re;
+ unsigned char cp;
int x;
int y;
int w;
@@ -45,4 +53,6 @@ void img_render(img_t*, win_t*);
int img_zoom_in(img_t*);
int img_zoom_out(img_t*);
+int img_pan(img_t*, win_t*, pandir_t);
+
#endif /* IMAGE_H */