]> git.decadent.org.uk Git - ion3.git/blob - ioncore/xwindow.h
cb37695b646503150e3553ca5378a1dad2c65068
[ion3.git] / ioncore / xwindow.h
1 /*
2  * ion/ioncore/xwindow.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2008. 
5  *
6  * See the included file LICENSE for details.
7  */
8
9 #ifndef ION_IONCORE_XWINDOW_H
10 #define ION_IONCORE_XWINDOW_H
11
12 #include "common.h"
13 #include "rectangle.h"
14
15 #define XWINDOW_REGION_OF_T(WIN, TYPE) (TYPE*)xwindow_region_of_t(WIN, &CLASSDESCR(TYPE))
16 #define XWINDOW_REGION_OF(WIN) xwindow_region_of(WIN)
17
18 extern Window create_xwindow(WRootWin *rw, Window par,
19                              const WRectangle *geom);
20
21 extern WRegion *xwindow_region_of(Window win);
22 extern WRegion *xwindow_region_of_t(Window win, const ClassDescr *descr);
23
24 extern void xwindow_restack(Window win, Window other, int stack_mode);
25
26 extern void xwindow_do_set_focus(Window win);
27
28 extern void xwindow_set_cursor(Window win, int cursor);
29
30 extern void xwindow_get_sizehints(Window win, XSizeHints *hints);
31
32 extern bool xwindow_pointer_pos(Window rel, int *px, int *py);
33
34 #endif /* ION_IONCORE_XWINDOW_H */