TICKIT_RECTSET_SUBTRACT(3)

πŸ’– TICKIT_RECTSET_SUBTRACT(3) πŸ’–

okay bestie, welcome to the Library Functions Manual section for tickit_rectset_subtract, a whole little function that lives in the tickit library and is here to help you carve a hole out of your rectangles πŸŽ€


✨ NAME ✨

tickit_rectset_subtract β€” subtract a region from a rectangle set πŸ¦‹


🌸 SYNOPSIS 🌸

#include <tickit.h>

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

Link with -ltickit.


πŸ’… DESCRIPTION πŸ’…

so basically, tickit_rectset_subtract() does the thing where it makes absolutely sure that the regions stored inside your rectangle set do not include the area given by rect. like, that area? gone. not in the set anymore. periodt πŸ’€

and the way it pulls this off? it might have to split one or more of the existing regions into smaller fragments βœ‚οΈ which means β€” heads up β€” it may result in more regions being stored than you started with. that's not a bug bestie, that's just the geometry of the situation. the vibes had to fragment. it's giving mitosis 🧚


πŸ”₯ RETURN VALUE πŸ”₯

tickit_rectset_subtract() returns no value. it's a void girlie. she does the work, she doesn't hand you a receipt πŸ’…


πŸ‘‘ SEE ALSO πŸ‘‘


ok that's the whole page bestie, no cap, every single detail accounted for 🫢

and that's a wrap on TICKIT_RECTSET_SUBTRACT(3) from the <b>Library Functions Manual</b> β€” same title top and bottom, iconic symmetry, we love to see it βœ¨πŸ’–