annotate src/image-overlay.h @ 1811:f405ec9b696b default tip

Some small logic mistakes Use boolean operators for booleans and bitwise otherwise only.
author mow
date Mon, 10 May 2010 11:33:13 +0000
parents 956aab097ea7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
1 /*
196
f6e307c7bad6 rename GQview -> Geeqie over the code
nadvornik
parents: 122
diff changeset
2 * Geeqie
117
0c2e1f0a001b Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
gqview
parents: 9
diff changeset
3 * (C) 2006 John Ellis
1802
956aab097ea7 added 2010 to copyright text
nadvornik
parents: 1665
diff changeset
4 * Copyright (C) 2008 - 2010 The Geeqie Team
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
5 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
6 * Author: John Ellis
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
7 *
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
8 * This software is released under the GNU General Public License (GNU GPL).
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
9 * Please read the included file COPYING for more information.
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
10 * This software comes with no warranty of any kind, use at your own risk!
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
11 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
12
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
13 #ifndef IMAGE_OVERLAY_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
14 #define IMAGE_OVERLAY_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
15
118
ac0f7f942c4d Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
gqview
parents: 117
diff changeset
16 typedef enum {
ac0f7f942c4d Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
gqview
parents: 117
diff changeset
17 IMAGE_OSD_NONE = 0,
ac0f7f942c4d Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
gqview
parents: 117
diff changeset
18 IMAGE_OSD_ROTATE_USER,
ac0f7f942c4d Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
gqview
parents: 117
diff changeset
19 IMAGE_OSD_ROTATE_AUTO,
ac0f7f942c4d Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
gqview
parents: 117
diff changeset
20 IMAGE_OSD_COLOR,
ac0f7f942c4d Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
gqview
parents: 117
diff changeset
21 IMAGE_OSD_FIRST,
ac0f7f942c4d Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
gqview
parents: 117
diff changeset
22 IMAGE_OSD_LAST,
122
e2a8b7f2165b Sat Dec 2 16:44:48 2006 John Ellis <johne@verizon.net>
gqview
parents: 118
diff changeset
23 IMAGE_OSD_ICON,
118
ac0f7f942c4d Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
gqview
parents: 117
diff changeset
24 IMAGE_OSD_COUNT
ac0f7f942c4d Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
gqview
parents: 117
diff changeset
25 } ImageOSDFlag;
ac0f7f942c4d Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
gqview
parents: 117
diff changeset
26
614
b2898f04c82e image_osd_get() and image_osd_set() now uses flags.
zas_
parents: 504
diff changeset
27 typedef enum {
b2898f04c82e image_osd_get() and image_osd_set() now uses flags.
zas_
parents: 504
diff changeset
28 OSD_SHOW_NOTHING = 0,
b2898f04c82e image_osd_get() and image_osd_set() now uses flags.
zas_
parents: 504
diff changeset
29 OSD_SHOW_INFO = 1 << 0,
b2898f04c82e image_osd_get() and image_osd_set() now uses flags.
zas_
parents: 504
diff changeset
30 OSD_SHOW_STATUS = 1 << 1,
b2898f04c82e image_osd_get() and image_osd_set() now uses flags.
zas_
parents: 504
diff changeset
31 OSD_SHOW_HISTOGRAM = 1 << 2
b2898f04c82e image_osd_get() and image_osd_set() now uses flags.
zas_
parents: 504
diff changeset
32 } OsdShowFlags;
b2898f04c82e image_osd_get() and image_osd_set() now uses flags.
zas_
parents: 504
diff changeset
33
733
57f759d012c7 Modify set_default_image_overlay_template_string() to accept the pointer to
zas_
parents: 621
diff changeset
34 void set_image_overlay_template_string(gchar **template_string, const gchar *value);
57f759d012c7 Modify set_default_image_overlay_template_string() to accept the pointer to
zas_
parents: 621
diff changeset
35 void set_default_image_overlay_template_string(gchar **template_string);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
36
614
b2898f04c82e image_osd_get() and image_osd_set() now uses flags.
zas_
parents: 504
diff changeset
37 void image_osd_set(ImageWindow *imd, OsdShowFlags show);
621
734b6b0a3356 image_osd_get() now returns OsdShowFlags.
zas_
parents: 614
diff changeset
38 OsdShowFlags image_osd_get(ImageWindow *imd);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
39
1336
4179d41d1149 fixed overlay configuration
nadvornik
parents: 1284
diff changeset
40 Histogram *image_osd_get_histogram(ImageWindow *imd);
4179d41d1149 fixed overlay configuration
nadvornik
parents: 1284
diff changeset
41
4179d41d1149 fixed overlay configuration
nadvornik
parents: 1284
diff changeset
42 void image_osd_copy_status(ImageWindow *src, ImageWindow *dest);
4179d41d1149 fixed overlay configuration
nadvornik
parents: 1284
diff changeset
43
117
0c2e1f0a001b Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
gqview
parents: 9
diff changeset
44 void image_osd_update(ImageWindow *imd);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
45
118
ac0f7f942c4d Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
gqview
parents: 117
diff changeset
46 void image_osd_icon(ImageWindow *imd, ImageOSDFlag flag, gint duration);
ac0f7f942c4d Wed Nov 29 22:53:03 2006 John Ellis <johne@verizon.net>
gqview
parents: 117
diff changeset
47
1665
9a081164e6e3 improved overlay menu
nadvornik
parents: 1336
diff changeset
48 void image_osd_histogram_toggle_channel(ImageWindow *imd);
9a081164e6e3 improved overlay menu
nadvornik
parents: 1336
diff changeset
49 void image_osd_histogram_toggle_mode(ImageWindow *imd);
9a081164e6e3 improved overlay menu
nadvornik
parents: 1336
diff changeset
50 void image_osd_histogram_set_channel(ImageWindow *imd, gint chan);
9a081164e6e3 improved overlay menu
nadvornik
parents: 1336
diff changeset
51 void image_osd_histogram_set_mode(ImageWindow *imd, gint mode);
9a081164e6e3 improved overlay menu
nadvornik
parents: 1336
diff changeset
52 gint image_osd_histogram_get_channel(ImageWindow *imd);
9a081164e6e3 improved overlay menu
nadvornik
parents: 1336
diff changeset
53 gint image_osd_histogram_get_mode(ImageWindow *imd);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
54
481
67a612985686 Merge view_overlay_toggle() and layout_image_overlay_toggle() into new image_osd_toggle().
zas_
parents: 475
diff changeset
55 void image_osd_toggle(ImageWindow *imd);
67a612985686 Merge view_overlay_toggle() and layout_image_overlay_toggle() into new image_osd_toggle().
zas_
parents: 475
diff changeset
56
67a612985686 Merge view_overlay_toggle() and layout_image_overlay_toggle() into new image_osd_toggle().
zas_
parents: 475
diff changeset
57
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
58 #endif
1055
1646720364cf Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents: 733
diff changeset
59 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */