Mercurial > hg > forks > geeqie
annotate src/image-overlay.h @ 2916:ae6cdcd69d9f default tip
Merge with upstream/master.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 14 May 2019 11:46:50 +0300 |
parents | 780a9b685335 |
children |
rev | line source |
---|---|
9 | 1 /* |
2350
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
2 * Copyright (C) 2006 John Ellis |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
3 * Copyright (C) 2008 - 2016 The Geeqie Team |
9 | 4 * |
5 * Author: John Ellis | |
6 * | |
2350
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
7 * This program is free software; you can redistribute it and/or modify |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
8 * it under the terms of the GNU General Public License as published by |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
9 * the Free Software Foundation; either version 2 of the License, or |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
10 * (at your option) any later version. |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
11 * |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
12 * This program is distributed in the hope that it will be useful, |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
15 * GNU General Public License for more details. |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
16 * |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
17 * You should have received a copy of the GNU General Public License along |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
18 * with this program; if not, write to the Free Software Foundation, Inc., |
95507e596256
Update copyright in all files
Klaus Ethgen <Klaus@Ethgen.de>
parents:
2343
diff
changeset
|
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
9 | 20 */ |
21 | |
22 #ifndef IMAGE_OVERLAY_H | |
23 #define IMAGE_OVERLAY_H | |
24 | |
118
7642cc02ee8d
Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
117
diff
changeset
|
25 typedef enum { |
7642cc02ee8d
Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
117
diff
changeset
|
26 IMAGE_OSD_NONE = 0, |
7642cc02ee8d
Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
117
diff
changeset
|
27 IMAGE_OSD_ROTATE_USER, |
7642cc02ee8d
Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
117
diff
changeset
|
28 IMAGE_OSD_ROTATE_AUTO, |
7642cc02ee8d
Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
117
diff
changeset
|
29 IMAGE_OSD_COLOR, |
7642cc02ee8d
Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
117
diff
changeset
|
30 IMAGE_OSD_FIRST, |
7642cc02ee8d
Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
117
diff
changeset
|
31 IMAGE_OSD_LAST, |
122
5ae2f8b7b565
Sat Dec 2 16:44:48 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
118
diff
changeset
|
32 IMAGE_OSD_ICON, |
118
7642cc02ee8d
Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
117
diff
changeset
|
33 IMAGE_OSD_COUNT |
7642cc02ee8d
Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
117
diff
changeset
|
34 } ImageOSDFlag; |
7642cc02ee8d
Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
117
diff
changeset
|
35 |
614
e477b53a6046
image_osd_get() and image_osd_set() now uses flags.
Laurent Monin <geeqie@norz.org>
parents:
504
diff
changeset
|
36 typedef enum { |
e477b53a6046
image_osd_get() and image_osd_set() now uses flags.
Laurent Monin <geeqie@norz.org>
parents:
504
diff
changeset
|
37 OSD_SHOW_NOTHING = 0, |
e477b53a6046
image_osd_get() and image_osd_set() now uses flags.
Laurent Monin <geeqie@norz.org>
parents:
504
diff
changeset
|
38 OSD_SHOW_INFO = 1 << 0, |
e477b53a6046
image_osd_get() and image_osd_set() now uses flags.
Laurent Monin <geeqie@norz.org>
parents:
504
diff
changeset
|
39 OSD_SHOW_STATUS = 1 << 1, |
2794
780a9b685335
Ref #331: Overimposed custom composition rule lines
Colin Clark <colin.clark@cclark.uk>
parents:
2350
diff
changeset
|
40 OSD_SHOW_HISTOGRAM = 1 << 2, |
780a9b685335
Ref #331: Overimposed custom composition rule lines
Colin Clark <colin.clark@cclark.uk>
parents:
2350
diff
changeset
|
41 OSD_SHOW_GUIDELINES = 1 << 3 |
614
e477b53a6046
image_osd_get() and image_osd_set() now uses flags.
Laurent Monin <geeqie@norz.org>
parents:
504
diff
changeset
|
42 } OsdShowFlags; |
e477b53a6046
image_osd_get() and image_osd_set() now uses flags.
Laurent Monin <geeqie@norz.org>
parents:
504
diff
changeset
|
43 |
733
3cf9cdf1ff65
Modify set_default_image_overlay_template_string() to accept the pointer to
Laurent Monin <geeqie@norz.org>
parents:
621
diff
changeset
|
44 void set_image_overlay_template_string(gchar **template_string, const gchar *value); |
3cf9cdf1ff65
Modify set_default_image_overlay_template_string() to accept the pointer to
Laurent Monin <geeqie@norz.org>
parents:
621
diff
changeset
|
45 void set_default_image_overlay_template_string(gchar **template_string); |
2343
ab475bde511b
Image overlay configurable items GTK2
Colin Clark <cclark@mcb.net>
parents:
2021
diff
changeset
|
46 void set_image_overlay_font_string(gchar **font_string, const gchar *value); |
9 | 47 |
614
e477b53a6046
image_osd_get() and image_osd_set() now uses flags.
Laurent Monin <geeqie@norz.org>
parents:
504
diff
changeset
|
48 void image_osd_set(ImageWindow *imd, OsdShowFlags show); |
621
c5ebd4b66d41
image_osd_get() now returns OsdShowFlags.
Laurent Monin <geeqie@norz.org>
parents:
614
diff
changeset
|
49 OsdShowFlags image_osd_get(ImageWindow *imd); |
9 | 50 |
1336
7fe7536f02e1
fixed overlay configuration
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1284
diff
changeset
|
51 Histogram *image_osd_get_histogram(ImageWindow *imd); |
7fe7536f02e1
fixed overlay configuration
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1284
diff
changeset
|
52 |
7fe7536f02e1
fixed overlay configuration
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1284
diff
changeset
|
53 void image_osd_copy_status(ImageWindow *src, ImageWindow *dest); |
7fe7536f02e1
fixed overlay configuration
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1284
diff
changeset
|
54 |
117
f95079062ea0
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
9
diff
changeset
|
55 void image_osd_update(ImageWindow *imd); |
9 | 56 |
118
7642cc02ee8d
Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
117
diff
changeset
|
57 void image_osd_icon(ImageWindow *imd, ImageOSDFlag flag, gint duration); |
7642cc02ee8d
Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
John Ellis <johne@verizon.net>
parents:
117
diff
changeset
|
58 |
1665
455ed93cdbd6
improved overlay menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1336
diff
changeset
|
59 void image_osd_histogram_toggle_channel(ImageWindow *imd); |
455ed93cdbd6
improved overlay menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1336
diff
changeset
|
60 void image_osd_histogram_toggle_mode(ImageWindow *imd); |
455ed93cdbd6
improved overlay menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1336
diff
changeset
|
61 void image_osd_histogram_set_channel(ImageWindow *imd, gint chan); |
455ed93cdbd6
improved overlay menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1336
diff
changeset
|
62 void image_osd_histogram_set_mode(ImageWindow *imd, gint mode); |
455ed93cdbd6
improved overlay menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1336
diff
changeset
|
63 gint image_osd_histogram_get_channel(ImageWindow *imd); |
455ed93cdbd6
improved overlay menu
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
1336
diff
changeset
|
64 gint image_osd_histogram_get_mode(ImageWindow *imd); |
9 | 65 |
481
f55cb8ad0abc
Merge view_overlay_toggle() and layout_image_overlay_toggle() into new image_osd_toggle().
Laurent Monin <geeqie@norz.org>
parents:
475
diff
changeset
|
66 void image_osd_toggle(ImageWindow *imd); |
f55cb8ad0abc
Merge view_overlay_toggle() and layout_image_overlay_toggle() into new image_osd_toggle().
Laurent Monin <geeqie@norz.org>
parents:
475
diff
changeset
|
67 |
f55cb8ad0abc
Merge view_overlay_toggle() and layout_image_overlay_toggle() into new image_osd_toggle().
Laurent Monin <geeqie@norz.org>
parents:
475
diff
changeset
|
68 |
9 | 69 #endif |
1055
4bbdfab3c89a
Adding a vim modeline to all files - patch by Klaus Ethgen
Vladimir Nadvornik <nadvornik@suse.cz>
parents:
733
diff
changeset
|
70 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |