2 * ion/ioncore/xwindow.h
4 * Copyright (c) Tuomo Valkonen 1999-2005.
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_XWINDOW_H
13 #define ION_IONCORE_XWINDOW_H
16 #include "rectangle.h"
18 #define XWINDOW_REGION_OF_T(WIN, TYPE) (TYPE*)xwindow_region_of_t(WIN, &CLASSDESCR(TYPE))
19 #define XWINDOW_REGION_OF(WIN) xwindow_region_of(WIN)
21 extern Window
create_xwindow(WRootWin
*rw
, Window par
,
22 const WRectangle
*geom
);
24 extern WRegion
*xwindow_region_of(Window win
);
25 extern WRegion
*xwindow_region_of_t(Window win
, const ClassDescr
*descr
);
27 extern void xwindow_restack(Window win
, Window other
, int stack_mode
);
29 extern void xwindow_do_set_focus(Window win
);
31 extern void xwindow_set_cursor(Window win
, int cursor
);
33 extern void xwindow_get_sizehints(Window win
, XSizeHints
*hints
);
35 #endif /* ION_IONCORE_XWINDOW_H */