Simplify vflist_get_formatted()
[geeqie.git] / src / image-overlay.h
1 /*
2  * Copyright (C) 2006 John Ellis
3  * Copyright (C) 2008 - 2016 The Geeqie Team
4  *
5  * Author: John Ellis
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along
18  * with this program; if not, write to the Free Software Foundation, Inc.,
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20  */
21
22 #ifndef IMAGE_OVERLAY_H
23 #define IMAGE_OVERLAY_H
24
25 typedef enum {
26         IMAGE_OSD_NONE = 0,
27         IMAGE_OSD_ROTATE_USER,
28         IMAGE_OSD_ROTATE_AUTO,
29         IMAGE_OSD_COLOR,
30         IMAGE_OSD_FIRST,
31         IMAGE_OSD_LAST,
32         IMAGE_OSD_ICON,
33         IMAGE_OSD_COUNT
34 } ImageOSDFlag;
35
36 typedef enum {
37         OSD_SHOW_NOTHING        = 0,
38         OSD_SHOW_INFO           = 1 << 0,
39         OSD_SHOW_STATUS         = 1 << 1,
40         OSD_SHOW_HISTOGRAM      = 1 << 2
41 } OsdShowFlags;
42
43 void set_image_overlay_template_string(gchar **template_string, const gchar *value);
44 void set_default_image_overlay_template_string(gchar **template_string);
45 void set_image_overlay_font_string(gchar **font_string, const gchar *value);
46
47 void image_osd_set(ImageWindow *imd, OsdShowFlags show);
48 OsdShowFlags image_osd_get(ImageWindow *imd);
49
50 Histogram *image_osd_get_histogram(ImageWindow *imd);
51
52 void image_osd_copy_status(ImageWindow *src, ImageWindow *dest);
53
54 void image_osd_update(ImageWindow *imd);
55
56 void image_osd_icon(ImageWindow *imd, ImageOSDFlag flag, gint duration);
57
58 void image_osd_histogram_toggle_channel(ImageWindow *imd);
59 void image_osd_histogram_toggle_mode(ImageWindow *imd);
60 void image_osd_histogram_set_channel(ImageWindow *imd, gint chan);
61 void image_osd_histogram_set_mode(ImageWindow *imd, gint mode);
62 gint image_osd_histogram_get_channel(ImageWindow *imd);
63 gint image_osd_histogram_get_mode(ImageWindow *imd);
64
65 void image_osd_toggle(ImageWindow *imd);
66
67
68 #endif
69 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */