TICKIT_RECTSET_ADD(3)
π TICKIT_RECTSET_ADD π
okay so bestie, welcome to tickit_rectset_add β it's in the Library Functions Manual and it's literally the moment your rectangle set gets a brand new area dropped into it. slay.
β¨ NAME β¨
tickit_rectset_add β add an area to a rectangle set π
πΈ SYNOPSIS πΈ
#include <tickit.h>
void tickit_rectset_add(TickitRectSet *trs, const TickitRect *rect);
Link with -ltickit.
π¦ DESCRIPTION π¦
so tickit_rectset_add() makes sure the regions your rectangle set is holding on to include the area you passed in as rect. periodt, that's the whole job.
but here's the tea π« β a rectangle set stores a set of non-overlapping regions. so if your new area would be all up in the existing regions' business, it may have to split the newly-added area into smaller pieces so nothing overlaps. it's giving responsible. it's giving boundaries. we love that for it.
and because it also merges neighbours where possible, the vibe check can go the other way too β you might end up with fewer regions being stored than before. iconic behaviour honestly.
π RETURN VALUE π
tickit_rectset_add() returns no value. it just does the thing and leaves. no notes. π
π SEE ALSO π
that's it bestie, go forth and add your rectangles π«Ά from the Library Functions Manual, TICKIT_RECTSET_ADD(3) β stay hydrated, link with -ltickit, and remember: no overlap, only vibes β¨π
π¦ 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