]> git.decadent.org.uk Git - ion3.git/blob - ioncore/fullscreen.h
2436a980c5268a9e48869d45dfaacc65464291de
[ion3.git] / ioncore / fullscreen.h
1 /*
2  * ion/ioncore/fullscreen.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
6  * Ion is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or
9  * (at your option) any later version.
10  */
11
12 #ifndef ION_IONCORE_FULLSCREEN_H
13 #define ION_IONCORE_FULLSCREEN_H
14
15 #include <libtu/setparam.h>
16 #include "common.h"
17 #include "screen.h"
18 #include "clientwin.h"
19
20 #define REGION_IS_FULLSCREEN(REG) OBJ_IS(REGION_PARENT(REG), WScreen)
21
22 extern WScreen *clientwin_fullscreen_chkrq(WClientWin *cwin, int w, int h);
23 extern bool clientwin_fullscreen_may_switchto(WClientWin *cwin);
24
25 extern bool region_fullscreen_scr(WRegion *reg, WScreen *vp, bool switchto);
26 extern bool region_enter_fullscreen(WRegion *reg, bool switchto);
27 extern bool region_leave_fullscreen(WRegion *reg, bool switchto);
28
29
30 #endif /* ION_IONCORE_FULLSCREEN_H */