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
30 IMAGE_OSD_ROTATE_USER,
31 IMAGE_OSD_ROTATE_AUTO,
41 OSD_SHOW_INFO = 1 << 0,
42 OSD_SHOW_STATUS = 1 << 1,
43 OSD_SHOW_HISTOGRAM = 1 << 2
46 void set_image_overlay_template_string(gchar **template_string, const gchar *value);
47 void set_default_image_overlay_template_string(gchar **template_string);
48 void set_image_overlay_font_string(gchar **font_string, const gchar *value);
50 void image_osd_set(ImageWindow *imd, OsdShowFlags show);
51 OsdShowFlags image_osd_get(ImageWindow *imd);
53 Histogram *image_osd_get_histogram(ImageWindow *imd);
55 void image_osd_copy_status(ImageWindow *src, ImageWindow *dest);
57 void image_osd_update(ImageWindow *imd);
59 void image_osd_icon(ImageWindow *imd, ImageOSDFlag flag, gint duration);
61 void image_osd_histogram_toggle_channel(ImageWindow *imd);
62 void image_osd_histogram_toggle_mode(ImageWindow *imd);
63 void image_osd_histogram_set_channel(ImageWindow *imd, gint chan);
64 void image_osd_histogram_set_mode(ImageWindow *imd, gint mode);
65 gint image_osd_histogram_get_channel(ImageWindow *imd);
66 gint image_osd_histogram_get_mode(ImageWindow *imd);
68 void image_osd_toggle(ImageWindow *imd);
72 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */