aboutsummaryrefslogtreecommitdiff
path: root/image.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-08-17 00:56:18 +0200
committerBert <ber.t@gmx.com>2011-08-19 15:12:30 +0200
commit86a6f00112576f3fc1ca565c2b5ad11d784cab8d (patch)
tree24cf4ef553c20bf2934902d13319cf33f91fc77f /image.h
parenta85707ef63e6c441d91cd06d53af07ee58746681 (diff)
Added support for multi-frame images
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 0dbde1e..37db7c8 100644
--- a/image.h
+++ b/image.h
@@ -25,7 +25,15 @@
#include "window.h"
typedef struct {
+ int cap;
+ int cnt;
+ int cur;
+ Imlib_Image **frames;
+} multi_img_t;
+
+typedef struct {
Imlib_Image *im;
+ multi_img_t multi;
float zoom;
scalemode_t scalemode;
@@ -48,6 +56,8 @@ 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*);