From 8b3ae5027e9490bd7edfeea3d3cd2fbc5ec4beaf Mon Sep 17 00:00:00 2001 From: Bert Date: Thu, 18 Aug 2011 16:05:32 +0200 Subject: Added support for gif animation --- image.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'image.h') 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 */ -- cgit v1.2.3-70-g09d2