libresman

diff examples/imgthumbs/src/thumbs.h @ 11:bebc065a941f

doesn't work yet
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 07 Feb 2014 07:50:02 +0200
parents 469ce01809bc
children a42888d26839
line diff
     1.1 --- a/examples/imgthumbs/src/thumbs.h	Wed Feb 05 02:01:49 2014 +0200
     1.2 +++ b/examples/imgthumbs/src/thumbs.h	Fri Feb 07 07:50:02 2014 +0200
     1.3 @@ -1,6 +1,7 @@
     1.4  #ifndef THUMBS_H_
     1.5  #define THUMBS_H_
     1.6  
     1.7 +struct img_pixmap;
     1.8  
     1.9  struct thumbnail {
    1.10  	char *fname;
    1.11 @@ -10,12 +11,15 @@
    1.12  	float layout_pos[2];
    1.13  	float layout_size[2];
    1.14  
    1.15 +	struct img_pixmap *img;
    1.16 +
    1.17  	struct thumbnail *next;
    1.18  };
    1.19  
    1.20  struct thumbnail *create_thumbs(const char *dirpath);
    1.21  void free_thumbs(struct thumbnail *thumbs);
    1.22  
    1.23 +void update_thumbs(void);
    1.24  void draw_thumbs(struct thumbnail *thumbs, float thumb_sz, float start_y);
    1.25  
    1.26  #endif	/* THUMBS_H_ */