aboutsummaryrefslogtreecommitdiff
path: root/image.h
diff options
context:
space:
mode:
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 */