Copy purify.fvwm2rc to /tmp - add instructions in README.
[fvwm.git] / libs / Rectangles.h
blob1461b650c8ca8209be48f01934fa9be136c5e7fb
1 /* -*-c-*- */
3 /*
4 * Convinence functions for manipulating rectangles, segments, regions ...etc.
5 */
7 #ifndef FRECTANGLES_H
8 #define FRECTANGLES_H
10 /* ---------------------------- included header files ---------------------- */
12 /* ---------------------------- global definitions ------------------------- */
14 /* ---------------------------- global macros ------------------------------ */
16 /* ---------------------------- type definitions --------------------------- */
18 /* ---------------------------- forward declarations ----------------------- */
20 /* ---------------------------- exported variables (globals) --------------- */
22 /* ---------------------------- interface functions ------------------------ */
24 /* If the two rectangles [x1, y1, w1, h2] and [x2, x2, w2, h2] have a
25 * non emtpy interstection this function return True and the
26 * XRectangle *r is set to the intersection (if not NULL). If the two
27 * rectangles have an emty intersection False is returned and r is not
28 * modified. */
29 Bool frect_get_intersection(
30 int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2,
31 XRectangle *r);
33 /* as above but the input are XRectangles */
34 Bool frect_get_rect_intersection(
35 XRectangle a, XRectangle b, XRectangle *r);
37 /* as above for two segments */
38 Bool frect_get_seg_intersection(
39 int x1, int w1, int x2, int w2, int *x, int *w);
41 #endif