TICKIT_RENDERBUFFER_GOTO(3)

πŸ’– TICKIT_RENDERBUFFER_GOTO β€” Library Functions Manual πŸ’–

okay bestie, so this is a page from the Library Functions Manual, and it's about two little functions in the tickit world that handle something called the virtual cursor position. it's giving "where am i pointing right now" energy, and honestly? iconic. πŸŽ€


✨ NAME ✨

tickit_renderbuffer_goto, tickit_renderbuffer_ungoto β€” set or clear the virtual cursor position πŸ¦‹


🌸 SYNOPSIS 🌸

#include <tickit.h>

void tickit_renderbuffer_goto(TickitRenderBuffer *rb, int line, int col);
void tickit_renderbuffer_ungoto(TickitRenderBuffer *rb);

and don't forget, bestie, you gotta link with -ltickit πŸ’…


🫢 DESCRIPTION 🫢

so tickit_renderbuffer_goto() sets the virtual cursor position to the line and col you hand it. and here's the thing β€” that position does NOT have to be inside the bounds of the buffer's extent, and it doesn't have to be inside the clipping region either. it can just. vibe out there. no cap. πŸ’«

but if you move it outside of the clipping region, then no drawing operations will take effect β€” however!! the position will still get updated by those operations anyway, so the renderbuffer can keep checking for the moment it slides back into the area of effect once more. it's literally just waiting for its main character moment to return. πŸ‘‘

also super important: this position is affected by the translation offset that tickit_renderbuffer_translate() gives you. 🧚

then there's tickit_renderbuffer_ungoto(), which clears the virtual cursor position. after you call it, the position is no longer defined, and the cursor-relative output functions will not operate. that's it, that's the vibe β€” the cursor is gone, the cursor-relative output functions are not operating, we simply don't know where we are anymore. πŸ™ˆ


⭐ RETURN VALUE ⭐

these functions return no value. nothing. zero. void-coded fr fr. πŸ’€


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, bestie!! πŸ’– huge shoutout to the Library Functions Manual for hosting this one, and this whole thing is filed under TICKIT_RENDERBUFFER_GOTO(3) β€” go forth and position your virtual cursor wherever your heart desires (even outside the clipping region, we don't judge). slay, stay hydrated, and may all your drawing operations take effect. πŸŽ€βœ¨πŸ¦‹πŸŒΈπŸ’