libresman

view 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
line source
1 #ifndef THUMBS_H_
2 #define THUMBS_H_
4 struct img_pixmap;
6 struct thumbnail {
7 char *fname;
8 unsigned int tex;
9 float aspect;
11 float layout_pos[2];
12 float layout_size[2];
14 struct img_pixmap *img;
16 struct thumbnail *next, *prev;
17 struct thumbnail *list; /* pointer to the list this thumbnail belongs to */
18 };
20 struct thumbnail *create_thumbs(const char *dirpath);
21 void free_thumbs(struct thumbnail *thumbs);
23 void update_thumbs(void);
24 void draw_thumbs(struct thumbnail *thumbs, float thumb_sz, float start_y);
26 #endif /* THUMBS_H_ */