Remove/mark some unused functions and parameters
[notion.git] / ioncore / xwindow.h
blob0f1a823faeb1113c4c2d1eb7483325eb0ad055f1
1 /*
2 * ion/ioncore/xwindow.h
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
7 */
9 #ifndef ION_IONCORE_XWINDOW_H
10 #define ION_IONCORE_XWINDOW_H
12 #include "common.h"
13 #include "rectangle.h"
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)
18 extern Window create_xwindow(WRootWin *rw, Window par,
19 const WRectangle *geom, const char *name);
21 extern WRegion *xwindow_region_of(Window win);
22 extern WRegion *xwindow_region_of_t(Window win, const ClassDescr *descr);
24 extern void xwindow_restack(Window win, Window other, int stack_mode);
26 extern void xwindow_do_set_focus(Window win);
28 extern void xwindow_set_cursor(Window win, int cursor);
30 /**
31 * On failure, clears winprops and returns -1.
32 * On success, sets hints according to the window's WM_NORMAL_HINTS and
33 * returns a nonnegative value.
35 extern int xwindow_get_sizehints(Window win, XSizeHints *hints);
37 extern bool xwindow_pointer_pos(Window rel, int *px, int *py);
39 #endif /* ION_IONCORE_XWINDOW_H */