aboutsummaryrefslogtreecommitdiffstats
path: root/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'image.h')
-rw-r--r--image.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/image.h b/image.h
index 408992e..cf50718 100644
--- a/image.h
+++ b/image.h
@@ -25,10 +25,16 @@
#include "window.h"
typedef struct {
+ Imlib_Image *im;
+ unsigned int delay;
+} img_frame_t;
+
+typedef struct {
+ img_frame_t *frames;
int cap;
int cnt;
int sel;
- Imlib_Image **frames;
+ unsigned char animate;
} multi_img_t;
typedef struct {
@@ -56,8 +62,6 @@ void img_close(img_t*, int);
void img_render(img_t*, win_t*);
-int img_change_frame(img_t*, int);
-
int img_fit_win(img_t*, win_t*);
int img_center(img_t*, win_t*);
@@ -74,4 +78,7 @@ void img_rotate_right(img_t*, win_t*);
void img_toggle_antialias(img_t*);
+int img_frame_navigate(img_t*, int);
+int img_frame_animate(img_t*, int);
+
#endif /* IMAGE_H */