diff options
author | Bert <ber.t@gmx.com> | 2011-08-17 00:56:18 +0200 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-08-19 15:12:30 +0200 |
commit | 86a6f00112576f3fc1ca565c2b5ad11d784cab8d (patch) | |
tree | 24cf4ef553c20bf2934902d13319cf33f91fc77f /image.h | |
parent | a85707ef63e6c441d91cd06d53af07ee58746681 (diff) |
Added support for multi-frame images
Diffstat (limited to 'image.h')
-rw-r--r-- | image.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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*); |