TICKIT_RENDERBUFFER_RESET(3)

πŸ’– NAME πŸ’–

tickit_renderbuffer_reset β€” bestie, this is the "undo everything, we're starting fresh" button for a render buffer πŸ’…


✨ SYNOPSIS ✨

#include <tickit.h>

void tickit_renderbuffer_reset(TickitRenderBuffer *rb);

Link with -ltickit.


🌸 DESCRIPTION 🌸

okay so tickit_renderbuffer_reset() takes your render buffer and hits the factory reset. Not a soft little nudge β€” a full glow-down back to its initial state. Here's the whole tea β˜•:

  • the pending content? erased. gone. never happened πŸ’€
  • every cell? set back to the skipped state
  • the virtual cursor position? unset β€” no cursor, no opinions
  • the translation offset? set back to zero
  • the clipping region? set to the entire buffer
  • the pen? removed, if it was set at all
  • the saved state stack? cleared, bestie, all of it

and that's not even the end of it 🫢 β€” any memory that got allocated for storing strings by the tickit_renderbuffer_text family of functions is also released by this function. so yeah, she's thorough. she does not leave crumbs. icon behaviour, honestly πŸ‘‘


πŸŽ€ RETURN VALUE πŸŽ€

This function returns no value. Nope. Nothing. It's void, she gives you zero data back, only vibes ✨


πŸ¦‹ SEE ALSO πŸ¦‹


k that's the whole page, no notes πŸ’œ this was TICKIT_REN...UFFER_RESET(3) from the Library Functions Manual β€” the footer said the same thing as the header (she's mysterious, the title's truncated, we love her anyway), so consider yourself signed off on, mwah πŸŽ€πŸ¦‹πŸŒΈ