TICKIT_RECTSET_RECTS(3)
π TICKIT_RECTSET_RECTS β bestie edition π
okay so this is part of the tickit library's manual, section 3 (library functions). it's all about pulling the actual rectangular regions back out of a rectangle set. yes queen, we're doing extraction. π
β¨ NAME β¨
tickit_rectset_rects, tickit_rectset_get_rects β obtain the regions from a rectangle set
like, the whole point is getting the rectangles out of the rect set. that's the gig. π
πΈ SYNOPSIS πΈ
#include <tickit.h>
size_t tickit_rectset_rects(const TickitRectSet *trs);
size_t tickit_rectset_get_rect(const TickitRectSet *trs,
size_t i, TickitRect *rect);
size_t tickit_rectset_get_rects(const TickitRectSet *trs,
TickitRect rects[], size_t n);
Link with -ltickit.
β οΈ do NOT forget the Link with -ltickit. bestie, she's not optional β οΈ
π¦ DESCRIPTION π¦
okay so here's the tea, function by function. π
tickit_rectset_rects() literally just hands you back the number of rectangular regions stored by the rectangle set. that's it. that's the whole function. she's a count girlie.
tickit_rectset_get_rect() copies the region representing the rectangle at index i into the variable pointed to by rect, and returns 1. iconic behavior honestly. but β and this is the important part β if i is an invalid index for this set, then 0 is returned instead. no rectangle for you, bestie. π
tickit_rectset_get_rects() copies at most n regions into the array given by rects, and returns the number of regions it actually copied. and yes, that number may be fewer than the total stored, if the array you gave her was of insufficient size. she's doing her best with what you gave her. π«Ά
β RETURN VALUE β
tickit_rectset_rects()returns an integer giving the number of stored regions. πtickit_rectset_get_rect()andtickit_rectset_get_rects()return the number of regions copied. π¦
like yes they're all returning counts, that's the vibe. periodt. π
π SEE ALSO π
go read those too, iykyk. no cap. π§
β¨ that's the whole page bestie, you ate it β¨
this lil manual page came out of the Library Functions Manual (that's the source, and also literally the same title stamped at the top, TICKIT_RECTSET_RECTS(3), twice, like a matching set π
) β love that for her. no version or date was given in the footer, so we're just gonna say: served fresh, undated, and still iconic. mwah. ππ
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms