]> git.decadent.org.uk Git - ion3.git/blob - ioncore/rootwin.h
41aab4eff36019bdf0c5b9a15298602732d4ed21
[ion3.git] / ioncore / rootwin.h
1 /*
2  * ion/ioncore/rootwin.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2008. 
5  *
6  * See the included file LICENSE for details.
7  */
8
9 #ifndef ION_IONCORE_ROOTWIN_H
10 #define ION_IONCORE_ROOTWIN_H
11
12 #include "common.h"
13 #include "window.h"
14 #include "screen.h"
15 #include "gr.h"
16 #include "rectangle.h"
17 #include "screen.h"
18
19
20 #define WROOTWIN_ROOT(X) (((WWindow*)(X))->win)
21 #define FOR_ALL_ROOTWINS(RW)         \
22     for(RW=ioncore_g.rootwins;         \
23         RW!=NULL;                    \
24         RW=OBJ_CAST(((WRegion*)RW)->p_next, WRootWin))
25
26
27 DECLCLASS(WRootWin){
28     WScreen scr;
29     int xscr;
30     
31     Colormap default_cmap;
32     
33     Window *tmpwins;
34     int tmpnwins;
35     
36     Window dummy_win;
37     
38     GC xor_gc;
39 };
40
41
42 extern void rootwin_deinit(WRootWin *rootwin);
43 extern WScreen *rootwin_current_scr(WRootWin *rootwin);
44
45 extern void rootwin_manage_initial_windows(WRootWin *rootwin);
46 extern WRootWin *create_rootwin(int xscr);
47
48 #endif /* ION_IONCORE_ROOTWIN_H */
49