TICKIT_RECTSET_TRANSLATE(3)

✨ TICKIT_RECTSET_TRANSLATE(3) ✨

okay bestie, welcome to the tickit girlies' corner of the Library Functions Manual πŸ’… this one is all about tickit_rectset_translate β€” yes it's from tickit, and yes we're gonna slay it together 🫢


🌸 NAME 🌸

tickit_rectset_translate β€” move every single rectangle in a rectangle set, all at once, no cap πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

#include <tickit.h>

void tickit_rectset_translate(TickitRectSet *trs, int downward, int rightward);

Link with -ltickit.


πŸ¦‹ DESCRIPTION πŸ¦‹

so like. tickit_rectset_translate() takes every rectangle in the rectangle set and moves it by the offset you give it. that's it, that's the whole vibe ✨

the number of rectangles in the set? not affected by this operation. you had however many, you still have however many. iconic, honestly πŸ‘‘

and here's the lil detail that matters: the set has no concept of boundaries, so no clipping will take place. none. zero. the rectangles just go wherever the offset takes them, boundaries are not a thing this data structure believes in 🧚 no vibe check, no containment, just movement.


πŸ’œ RETURN VALUE πŸ’œ

tickit_rectset_translate() returns no value. it's a void function, bestie β€” it does the thing and it does not report back. lowkey the most drama-free function in the whole library 😭


🌈 SEE ALSO 🌈


and that's the whole page, bestie!! it came to you straight out of the Library Functions Manual, filed under TICKIT_RECTSET_TRANSLATE(3) πŸ“šπŸ’– go translate some rectangles, you main character πŸ«Άβœ¨πŸŽ€