TICKIT_RECTSET_CONTAINS(3)

πŸ’– TICKIT_RECTSET_CONTAINS β€” bestie, is this area fully covered?? πŸ’–

okay so. picture this: you've got a rectangle set (a TickitRectSet, the little collection of rectangular regions, iconic) and you've got one rectangle in your hand. you wanna know: does the whole thing fit inside what the set already covers? that's it. that's the function. no notes. ✨

this page lives in the Tickit library functions manual, section 3, and it's all about one lil boolean-returning baddie.


✨ SYNOPSIS ✨

#include <tickit.h>

bool tickit_rectset_contains(const TickitRectSet *trs, const TickitRect *rect);

and don't forget, bestie, you gotta Link with -ltickit or nothing works. fr fr. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

tickit_rectset_contains() tests whether the area given by rect is entirely contained by one or more regions in the rectangle set.

that's the whole vibe check: hand it a rectangle set (trs) and a rectangle (rect), and it looks at whether every last bit of that area is sitting inside one region or spread across several of them. one or more. she's flexible like that. 🌸


πŸŽ€ RETURN VALUE πŸŽ€

  • true β€” the given area is entirely covered by one or more regions. slay. βœ…
  • false β€” at least some portion of it remains uncovered. not the full serve. 😭

no in-between, no maybe, just pure boolean main character energy. πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€


ngl the details here are load-bearing, so keep them exact: the function returns bool, takes a const TickitRectSet *trs and a const TickitRect *rect, and lives behind #include <tickit.h>. periodt. πŸ’œ

anyway, that's the whole page, bestie β€” straight from the Tickit library functions manual, section 3, on the TICKIT_RECTSET_CONTAINS(3) page. go forth and check your containment. 🫢