TICKIT_RENDERBUFFER_CLEAR(3)

✨ NAME ✨

  • tickit_renderbuffer_eraserect, tickit_renderbuffer_clear β€” erase large areas

okay so bestie, you know how sometimes you just gotta wipe a whole chunk of your buffer and start fresh? that's literally these two πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <tickit.h>

void tickit_renderbuffer_eraserect(TickitRenderBuffer *rb,
         TickitRect *rect);
void tickit_renderbuffer_clear(TickitRenderBuffer *rb);

Link with -ltickit.


πŸ’– DESCRIPTION πŸ’–

tickit_renderbuffer_eraserect() does the thing where it creates erase regions for every single line in rect within the buffer, and it sets them all to the current pen. so like, the whole rectangle gets the erase-region treatment, line by line, no skips ✨

tickit_renderbuffer_clear() goes full send πŸ”₯ β€” it erases the entire buffer area within the current clipping region and masks, setting the whole thing up to be erase regions with the current pen. whole vibe, gone, replaced with erasure energy.

ok important note bestie πŸ“Œ β€” neither of these functions use or update the virtual cursor. they do not touch it. it stays exactly where it was. periodt.

🌸 RETURN VALUE 🌸

These functions return nothing 🫢 (void behavior, they just do their lil job and dip)


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page, bestie πŸŽ€ this one's living under TICKIT_REN...R_ERASERECT(3) in the Library Functions Manual β€” go erase something iconic πŸ’œπŸ‘‘