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. πβ¨π
π¦ 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