2 * Copyright (C) 2006 John Ellis
3 * Copyright (C) 2008 - 2016 The Geeqie Team
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.
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.
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.
22 #ifndef IMAGE_OVERLAY_H
23 #define IMAGE_OVERLAY_H
32 IMAGE_OSD_ROTATE_USER,
33 IMAGE_OSD_ROTATE_AUTO,
43 OSD_SHOW_INFO = 1 << 0,
44 OSD_SHOW_STATUS = 1 << 1,
45 OSD_SHOW_HISTOGRAM = 1 << 2
48 void set_image_overlay_template_string(gchar **template_string, const gchar *value);
49 void set_default_image_overlay_template_string(gchar **template_string);
50 void set_image_overlay_font_string(gchar **font_string, const gchar *value);
52 void image_osd_set(ImageWindow *imd, OsdShowFlags show);
53 OsdShowFlags image_osd_get(ImageWindow *imd);
55 Histogram *image_osd_get_histogram(ImageWindow *imd);
57 void image_osd_copy_status(ImageWindow *src, ImageWindow *dest);
59 void image_osd_update(ImageWindow *imd);
61 void image_osd_icon(ImageWindow *imd, ImageOSDFlag flag, gint duration);
63 void image_osd_histogram_toggle_channel(ImageWindow *imd);
64 void image_osd_histogram_toggle_mode(ImageWindow *imd);
65 void image_osd_histogram_set_channel(ImageWindow *imd, gint chan);
66 void image_osd_histogram_set_mode(ImageWindow *imd, gint mode);
67 gint image_osd_histogram_get_channel(ImageWindow *imd);
68 gint image_osd_histogram_get_mode(ImageWindow *imd);
70 void image_osd_toggle(ImageWindow *imd);
74 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */