TICKIT_REN...R_COPYRECT(3)

🌸 NAME 🌸

tickit_renderbuffer_copyrect, tickit_renderbuffer_moverect β€” copy or move a rectangular region of a buffer

okay so bestie, you're in the Library Functions Manual section of the tickit docs, and today we're learning how to yeet a whole rectangle of cells around inside a render buffer. it's giving ✨interior design✨ but for terminals.


✨ SYNOPSIS ✨

#include <tickit.h>

void tickit_renderbuffer_copyrect(TickitRenderBuffer *rb,
        const TickitRect *dest, const TickitRect *src);
void tickit_renderbuffer_moverect(TickitRenderBuffer *rb,
        const TickitRect *dest, const TickitRect *src);

and like, obviously, you gotta link with -ltickit πŸ’…


🫢 DESCRIPTION 🫢

tickit_renderbuffer_copyrect() copies the rectangular region in the buffer from the rectangle given by src into the location given by dest. literally copy-paste but make it pixels. iconic.

tickit_renderbuffer_moverect() moves content in the rectangular region in the buffer given by src into the location given by dest, resetting the region migrated out from back to the skip state. so like, it picks up the rectangle and walks it over, and the hole it left behind goes back to being all skip-y. main character move honestly. πŸ’…

in each case, the two regions may overlap. no cap. and these functions will also copy cells in skip state β€” that is, cells set to skip in the source region are set to skip in the destination. skip energy travels, fr fr. πŸ™ˆ


πŸ’€ RETURN VALUE πŸ’€

these functions return no value. like, nothing. void. they simply do the thing and dip. πŸŽ€


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page bestie!! πŸ¦‹ this was TICKIT_REN...R_COPYRECT(3) from the Library Functions Manual β€” your girl came, she copied, she moved, she reset the skip state, and she left. slay. πŸ’–βœ¨πŸ‘‘