]> icculus.org git repositories - dana/openbox.git/blob - openbox/screen.h
prefixing and capitalizing the StackLayer -> ObStackingLayer enum.
[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 /*! Are we in showing-desktop mode? */
18 extern gboolean screen_showing_desktop;
19
20 typedef struct DesktopLayout {
21     ObOrientation orientation;
22     ObCorner start_corner;
23     guint rows;
24     guint columns;
25 } DesktopLayout;
26 extern DesktopLayout screen_desktop_layout;
27
28 /*! An array of gchar*'s which are desktop names in UTF-8 format */
29 extern char **screen_desktop_names;
30
31 /*! Take over the screen, set the basic hints on it claming it as ours */
32 gboolean screen_annex();
33
34 /*! Once the screen is ours, set up its initial state */
35 void screen_startup();
36 /*! Free resources */
37 void screen_shutdown();
38
39 /*! Figure out the new size of the screen and adjust stuff for it */
40 void screen_resize();
41
42 /*! Change the number of available desktops */
43 void screen_set_num_desktops(guint num);
44 /*! Change the current desktop */
45 void screen_set_desktop(guint num);
46
47 /*! Shows and focuses the desktop and hides all the client windows, or
48   returns to the normal state, showing client windows. */
49 void screen_show_desktop(gboolean show);
50
51 /*! Updates the desktop layout from the root property if available */
52 void screen_update_layout();
53
54 /*! Get desktop names from the root window property */
55 void screen_update_desktop_names();
56
57 /*! Installs or uninstalls a colormap for a client. If client is NULL, then
58   it handles the root colormap. */
59 void screen_install_colormap(struct _ObClient *client, gboolean install);
60
61 void screen_update_areas();
62
63 Rect *screen_physical_area();
64
65 Rect *screen_physical_area_monitor(guint head);
66
67 Rect *screen_area(guint desktop);
68
69 Rect *screen_area_monitor(guint desktop, guint head);
70
71 #endif