DOKK / manpages / debian 12 / libtickit-dev / tickit_rectset_subtract.3.en
TICKIT_RECTSET_SUBTRACT(3) Library Functions Manual TICKIT_RECTSET_SUBTRACT(3)

tickit_rectset_subtract - subtract a region from a rectangle set

#include <tickit.h>

void tickit_rectset_subtract(TickitRectSet *trs, const TickitRect *rect);

Link with -ltickit.

tickit_rectset_subtract() ensures that the regions stored by the rectangle set do not include the area given by rect. To do this, it may have to split one or more of the existing regions into smaller fragments, and so may result in more regions being stored.

tickit_rectset_subtract() returns no value.

tickit_rectset_new(3), tickit_rectset(7), tickit_rect(7), tickit(7)