2 * ion/ioncore/fullscreen.h
4 * Copyright (c) Tuomo Valkonen 1999-2007.
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.
12 #ifndef ION_IONCORE_FULLSCREEN_H
13 #define ION_IONCORE_FULLSCREEN_H
15 #include <libtu/setparam.h>
18 #include "clientwin.h"
20 #define REGION_IS_FULLSCREEN(REG) OBJ_IS(REGION_PARENT(REG), WScreen)
22 extern WScreen *clientwin_fullscreen_chkrq(WClientWin *cwin, int w, int h);
23 extern bool clientwin_fullscreen_may_switchto(WClientWin *cwin);
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);
30 #endif /* ION_IONCORE_FULLSCREEN_H */