diff options
author | Bert <ber.t@gmx.com> | 2011-01-21 13:48:02 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-01-21 13:48:02 +0100 |
commit | b92ebf67ee04134e7c9e006cdef3dace969539aa (patch) | |
tree | 9d97654b960d52bdde037cf48544c73b8c4162e8 /image.h | |
parent | 72e56e520704522c52abd349566b1523ad96c808 (diff) | |
download | nsxiv-b92ebf67ee04134e7c9e006cdef3dace969539aa.tar.zst |
Implemented panning
Diffstat (limited to 'image.h')
-rw-r--r-- | image.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 */ |