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


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 πŸ‘‘