4 * Convinence functions for manipulating rectangles, segments, regions ...etc.
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
29 Bool
frect_get_intersection(
30 int x1
, int y1
, int w1
, int h1
, int x2
, int y2
, int w2
, int h2
,
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
);