comparison src/image-overlay.h @ 614:b2898f04c82e

image_osd_get() and image_osd_set() now uses flags.
author zas_
date Fri, 09 May 2008 09:58:46 +0000
parents 969530d69aac
children 734b6b0a3356
comparison
equal deleted inserted replaced
613:d06f422a6673 614:b2898f04c82e
22 IMAGE_OSD_LAST, 22 IMAGE_OSD_LAST,
23 IMAGE_OSD_ICON, 23 IMAGE_OSD_ICON,
24 IMAGE_OSD_COUNT 24 IMAGE_OSD_COUNT
25 } ImageOSDFlag; 25 } ImageOSDFlag;
26 26
27 typedef enum {
28 OSD_SHOW_NOTHING = 0,
29 OSD_SHOW_INFO = 1 << 0,
30 OSD_SHOW_STATUS = 1 << 1,
31 OSD_SHOW_HISTOGRAM = 1 << 2
32 } OsdShowFlags;
33
27 void set_default_image_overlay_template_string(ConfOptions *options); 34 void set_default_image_overlay_template_string(ConfOptions *options);
28 35
29 void image_osd_set(ImageWindow *imd, gint info, gint status); 36 void image_osd_set(ImageWindow *imd, OsdShowFlags show);
30 gint image_osd_get(ImageWindow *imd, gint *info, gint *status); 37 gint image_osd_get(ImageWindow *imd, OsdShowFlags *show);
31 38
32 void image_osd_update(ImageWindow *imd); 39 void image_osd_update(ImageWindow *imd);
33 40
34 void image_osd_icon(ImageWindow *imd, ImageOSDFlag flag, gint duration); 41 void image_osd_icon(ImageWindow *imd, ImageOSDFlag flag, gint duration);
35 42