libresman

annotate examples/imgthumbs/src/thumbs.h @ 20:c6073bf9fd38

finally! async loading works. Now on to inotify...
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 12 Feb 2014 16:02:12 +0200
parents a42888d26839
children fe0dbdfbe403
rev   line source
nuclear@1 1 #ifndef THUMBS_H_
nuclear@1 2 #define THUMBS_H_
nuclear@1 3
nuclear@11 4 struct img_pixmap;
nuclear@1 5
nuclear@1 6 struct thumbnail {
nuclear@1 7 char *fname;
nuclear@1 8 unsigned int tex;
nuclear@1 9 float aspect;
nuclear@1 10
nuclear@1 11 float layout_pos[2];
nuclear@1 12 float layout_size[2];
nuclear@1 13
nuclear@11 14 struct img_pixmap *img;
nuclear@11 15
nuclear@13 16 struct thumbnail *next, *prev;
nuclear@20 17 struct thumbnail *list; /* pointer to the list this thumbnail belongs to */
nuclear@1 18 };
nuclear@1 19
nuclear@1 20 struct thumbnail *create_thumbs(const char *dirpath);
nuclear@1 21 void free_thumbs(struct thumbnail *thumbs);
nuclear@1 22
nuclear@11 23 void update_thumbs(void);
nuclear@1 24 void draw_thumbs(struct thumbnail *thumbs, float thumb_sz, float start_y);
nuclear@1 25
nuclear@1 26 #endif /* THUMBS_H_ */