Provided by: libtickit-dev_0.2-5_amd64

**NAME**

tickit_rect_subtract - obtain the difference of two rectangles

**SYNOPSIS**

#include<tickit.h>inttickit_rect_subtract(TickitRectdst[4],constTickitRect*orig,constTickitRect*hole);Link with-ltickit.

**DESCRIPTION**

tickit_rect_subtract() initialises the rectangle structures given bydst(which must be an array capable of containing at least four rectangle structures) with a set of non- overlapping rectangles covering the same area as that given byorigwithout coveringhole. Depending on the geometry of the given rectangles it will create from zero to four resultant rectangles. It returns the number of rectangular regions initialised into the result array. Ifholecompletely coversorigthen the result will contain no rectangles. If they do not intersect then justorigwill be returned. Otherwise, the result will contain non- overlapping horizontal stripes oforigwithouthole.

**RETURN** **VALUE**

tickit_rect_subtract() returns the number of rectangles written todst.

**SEE** **ALSO**

tickit_rect_init_sized(3),tickit_rect_init_bounded(3),tickit_rect_intersect(3),tickit_rect_add(3),tickit_rect(7),tickit(7) TICKIT_RECT_SUBTRACT(3)