]> icculus.org git repositories - dana/openbox.git/blob - openbox/screen.h
remove all the startup notification code from screen.c
[dana/openbox.git] / openbox / screen.h
1 #ifndef __screen_h
2 #define __screen_h
3
4 #include "misc.h"
5 #include "geom.h"
6
7 struct _ObClient;
8
9 #define DESKTOP_ALL (0xffffffff)
10
11 /*! The number of available desktops */
12 extern guint screen_num_desktops;
13 /*! The number of virtual "xinerama" screens/heads */
14 extern guint screen_num_monitors;
15 /*! The current desktop */
16 extern guint screen_desktop;
17 /*! The desktop which was last visible */
18 extern guint screen_last_desktop;
19 /*! Are we in showing-desktop mode? */
20 extern gboolean screen_showing_desktop;
21 /*! The support window also used for focus and stacking */
22 extern Window screen_support_win;
23
24 typedef struct DesktopLayout {
25     ObOrientation orientation;
26     ObCorner start_corner;
27     guint rows;
28     guint columns;
29 } DesktopLayout;
30 extern DesktopLayout screen_desktop_layout;
31
32 /*! An array of gchar*'s which are desktop names in UTF-8 format */
33 extern char **screen_desktop_names;
34
35 /*! Take over the screen, set the basic hints on it claming it as ours */
36 gboolean screen_annex();
37
38 /*! Once the screen is ours, set up its initial state */
39 void screen_startup(gboolean reconfig);
40 /*! Free resources */
41 void screen_shutdown(gboolean reconfig);
42
43 /*! Figure out the new size of the screen and adjust stuff for it */
44 void screen_resize();
45
46 /*! Change the number of available desktops */
47 void screen_set_num_desktops(guint num);
48 /*! Change the current desktop */
49 void screen_set_desktop(guint num);
50 /*! Interactively change desktops */
51 guint screen_cycle_desktop(ObDirection dir, gboolean wrap, gboolean linear,
52                            gboolean dialog, gboolean done, gboolean cancel);
53
54 /*! Shows and focuses the desktop and hides all the client windows, or
55   returns to the normal state, showing client windows. */
56 void screen_show_desktop(gboolean show);
57
58 /*! Updates the desktop layout from the root property if available */
59 void screen_update_layout();
60
61 /*! Get desktop names from the root window property */
62 void screen_update_desktop_names();
63
64 /*! Installs or uninstalls a colormap for a client. If client is NULL, then
65   it handles the root colormap. */
66 void screen_install_colormap(struct _ObClient *client, gboolean install);
67
68 void screen_update_areas();
69
70 Rect *screen_physical_area();
71
72 Rect *screen_physical_area_monitor(guint head);
73
74 Rect *screen_area(guint desktop);
75
76 Rect *screen_area_monitor(guint desktop, guint head);
77
78 /*! Sets the root cursor. This function decides which cursor to use, but you
79   gotta call it to let it know it should change. */
80 void screen_set_root_cursor();
81
82 gboolean screen_pointer_pos(int *x, int *y);
83
84 #endif