45
45
typedef struct thumbmode_data {
46
46
/* FIXME: text_area_h not really needed, remove? */
48
Imlib_Image im_main; /* base image which all thumbnails are rendered on */
49
Imlib_Image im_bg; /* background for the thumbnails */
51
Imlib_Font font_main; /* font used for file info */
52
Imlib_Font font_title; /* font used for title */
54
int w, h, bg_w, bg_h; /* dimensions of the window and bg image */
56
int thumb_tot_h; /* total space needed for a thumbnail including description */
57
int text_area_w, text_area_h; /* space needed for thumbnail description */
59
int max_column_w; /* FIXME: description */
60
int vertical; /* FIXME: vertical in what way? */
61
int cache_thumbnails; /* use cached thumbnails from ~/.thumbnails/normal */
48
Imlib_Image im_main; /* base image which all thumbnails are rendered on */
49
Imlib_Image im_bg; /* background for the thumbnails */
51
Imlib_Font font_main; /* font used for file info */
52
Imlib_Font font_title; /* font used for title */
54
int w, h, bg_w, bg_h; /* dimensions of the window and bg image */
56
int thumb_tot_h; /* total space needed for a thumbnail including description */
57
int text_area_w, text_area_h; /* space needed for thumbnail description */
59
int max_column_w; /* FIXME: description */
60
int vertical; /* FIXME: vertical in what way? */
62
int cache_thumbnails; /* use cached thumbnails from ~/.thumbnails */
63
int cache_dim; /* 128 = 128x128 ("normal"), 256 = 256x256 ("large") */
64
char *cache_dir; /* "normal"/"large" (.thumbnails/...) */
64
68
feh_thumbnail *feh_thumbnail_new(feh_file * fil, int x, int y, int w, int h);