annotate src/fullscreen.h @ 1618:f47b8dc207f5

Minor code cleanup and redundancy reduction.
author zas_
date Mon, 01 Jun 2009 16:37:30 +0000
parents 7e180091e0b7
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: 9
diff changeset
2 * Geeqie
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
3 * (C) 2004 John Ellis
1284
8b89e3ff286b Add year 2009 to copyright info everywhere.
zas_
parents: 1055
diff changeset
4 * Copyright (C) 2008 - 2009 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
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
14 #ifndef FULLSCREEN_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
15 #define FULLSCREEN_H
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
16
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
17 #define FULL_SCREEN_HIDE_MOUSE_DELAY 3000
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
18 #define FULL_SCREEN_BUSY_MOUSE_DELAY 200
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
19
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
20
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
21 FullScreenData *fullscreen_start(GtkWidget *window, ImageWindow *imd,
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
22 void (*stop_func)(FullScreenData *, gpointer), gpointer stop_data);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
23 void fullscreen_stop(FullScreenData *fs);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
24
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
25
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
26 /* screen numbers for fullscreen_prefs are as follows:
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
27 * 0 use default display size
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
28 * 101 screen 0, monitor 0
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
29 * 102 screen 0, monitor 1
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
30 * 201 screen 1, monitor 0
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
31 */
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
32
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
33
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
34 typedef struct _ScreenData ScreenData;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
35 struct _ScreenData {
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
36 gint number;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
37 gchar *description;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
38 gint x;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
39 gint y;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
40 gint width;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
41 gint height;
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
42 };
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
43
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
44
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
45 GList *fullscreen_prefs_list(void);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
46 void fullscreen_prefs_list_free(GList *list);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
47
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
48 ScreenData *fullscreen_prefs_list_find(GList *list, gint screen);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
49
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
50 void fullscreen_prefs_get_geometry(gint screen, GtkWidget *widget, gint *x, gint *y, gint *width, gint *height,
1431
7e180091e0b7 More gboolean and tidy up.
zas_
parents: 1284
diff changeset
51 GdkScreen **dest_screen, gboolean *same_region);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
52
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
53 gint fullscreen_prefs_find_screen_for_widget(GtkWidget *widget);
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
54
1431
7e180091e0b7 More gboolean and tidy up.
zas_
parents: 1284
diff changeset
55 GtkWidget *fullscreen_prefs_selection_new(const gchar *text, gint *screen_value, gboolean *above_value);
9
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
56
d907d608745f Sync to GQview 1.5.9 release.
gqview
parents:
diff changeset
57
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: 475
diff changeset
59 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */