TICKIT_RENDERBUFFER_TRANSLATE(3)
π NAME
tickit_renderbuffer_translate β move the base of output functions β¨
β¨ SYNOPSIS
#include <tickit.h>
void tickit_renderbuffer_translate(TickitRenderBuffer *rb, int downward, int rightward);
Link with -ltickit.
π¦ DESCRIPTION
Okay bestie, so tickit_renderbuffer_translate() slides a whole translation onto the co-ordinate system, and literally everything downstream feels it. Specifically it shifts the co-ords used by tickit_renderbuffer_goto(3), by all the _at-suffixed absolute-position drawing functions, and by whatever tickit_renderbuffer_get_cursorpos(3) hands back to you. Same vibe, new origin π
You pass it rb, plus how far downward and how far rightward to nudge things.
Now the important part, no cap: if you ever wanna undo any of this, you do it by wrapping the call inside nested pairs of tickit_renderbuffer_save(3) and tickit_renderbuffer_restore(3). That's the whole trick. Nest them, translate inside, restore your way back out π«Ά
Heads up though β this only touches the drawing operations that come after it. It does not retroactively mess with content that's already stored, and it does not change how tickit_renderbuffer_flush_to_term(3) behaves. Existing stuff stays exactly where it is, periodt.
πΈ RETURN VALUE
These functions return no value. Like, none. Zero. Void. It's giving void π
π SEE ALSO
tickit_renderbuffer_new(3)tickit_renderbuffer_clip(3)tickit_renderbuffer_mask(3)tickit_renderbuffer(7)tickit(7)
And that's the whole page, bestie π§ β straight outta the tickit Library Functions Manual, and yeah the footer is just the title again (TICKIT_REN...R_TRANSLATE(3)), no date in sight, so we're keeping it mysterious π Slay, go translate some co-ordinates π
π¦ 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