2 * ion/ioncore/xwindow.h
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
9 #ifndef ION_IONCORE_XWINDOW_H
10 #define ION_IONCORE_XWINDOW_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 extern void xwindow_get_sizehints(Window win
, XSizeHints
*hints
);
32 extern bool xwindow_pointer_pos(Window rel
, int *px
, int *py
);
34 #endif /* ION_IONCORE_XWINDOW_H */