summaryrefslogtreecommitdiffstats
path: root/image.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-08-18 16:05:32 +0200
committerBert <ber.t@gmx.com>2011-08-19 15:22:16 +0200
commit8b3ae5027e9490bd7edfeea3d3cd2fbc5ec4beaf (patch)
tree5193b41e1a661812216c580be943a4cc6a66f698 /image.h
parenta4b90aee2001d0b0f458f3d741fbf5bcad04a7cb (diff)
downloadnsxiv-8b3ae5027e9490bd7edfeea3d3cd2fbc5ec4beaf.tar.zst
Added support for gif animation
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 */