121400ad22a566d39fcb6705219eab6add349627
[geeqie.git] / src / fullscreen.h
1 /*
2  * Geeqie
3  * (C) 2004 John Ellis
4  *
5  * Author: John Ellis
6  *
7  * This software is released under the GNU General Public License (GNU GPL).
8  * Please read the included file COPYING for more information.
9  * This software comes with no warranty of any kind, use at your own risk!
10  */
11
12
13 #ifndef FULLSCREEN_H
14 #define FULLSCREEN_H
15
16 #define FULL_SCREEN_HIDE_MOUSE_DELAY 3000
17 #define FULL_SCREEN_BUSY_MOUSE_DELAY 200
18
19
20 FullScreenData *fullscreen_start(GtkWidget *window, ImageWindow *imd,
21                                  void (*stop_func)(FullScreenData *, gpointer), gpointer stop_data);
22 void fullscreen_stop(FullScreenData *fs);
23
24
25 /* screen numbers for fullscreen_prefs are as follows:
26  *   0  use default display size
27  * 101  screen 0, monitor 0
28  * 102  screen 0, monitor 1
29  * 201  screen 1, monitor 0
30  */
31
32
33 typedef struct _ScreenData ScreenData;
34 struct _ScreenData {
35         gint number;
36         gchar *description;
37         gint x;
38         gint y;
39         gint width;
40         gint height;
41 };
42
43
44 GList *fullscreen_prefs_list(void);
45 void fullscreen_prefs_list_free(GList *list);
46
47 ScreenData *fullscreen_prefs_list_find(GList *list, gint screen);
48
49 void fullscreen_prefs_get_geometry(gint screen, GtkWidget *widget, gint *x, gint *y, gint *width, gint *height,
50                                    GdkScreen **dest_screen, gint *same_region);
51
52 gint fullscreen_prefs_find_screen_for_widget(GtkWidget *widget);
53
54 GtkWidget *fullscreen_prefs_selection_new(const gchar *text, gint *screen_value, gint *above_value);
55
56
57 #endif