TICKIT_RENDERBUFFER_NEW(3)
β¨ TICKIT_RENDERBUFFER_NEW(3) β¨
okay bestie, so this one lives in the Library Functions Manual, section 3, and it's literally the origin story of every render buffer π
πΈ NAME πΈ
tickit_renderbuffer_new β create a new render buffer instance π
π¦ SYNOPSIS π¦
#include <tickit.h>
TickitRenderBuffer *tickit_renderbuffer_new(int lines, int cols);
Link with -ltickit.
π DESCRIPTION π
so tickit_renderbuffer_new() does exactly what it says on the tin: it creates a brand new TickitRenderBuffer instance, sized however you asked. the way you hand it lines and cols? that's the whole vibe. β¨
heads up bestie β once it's constructed, the size is fixed. locked in. no take-backs, no glow-ups, no resizing era. π«Ά
when it's fresh out of the box it starts out super minimal, like a clean girl aesthetic render buffer:
- a clipping region that covers the entire area π
- a zero translation offset
- no applied masks
- no stored pen
- no virtual cursor position π
and the best part? you can yeet it all the way back to this exact starting state whenever you want by calling tickit_renderbuffer_reset(3). it's giving "factory reset but make it iconic". π
also, the reference count of a newly-constructed render buffer instance is one. you can bump it up or down with tickit_renderbuffer_ref(3) and tickit_renderbuffer_unref(3). and when that reference count hits zero? it gets destroyed. no cap. π
π RETURN VALUE π
if everything goes right, tickit_renderbuffer_new() returns a pointer to the new instance. slay. π
π₯ SEE ALSO π₯
tickit_renderbuffer_text(3)tickit_renderbuffer_blit(3)tickit_renderbuffer_flush_to_term(3)tickit_renderbuffer(7)tickit(7)
okay that's the whole page, bestie π that was tickit_renderbuffer_new(3) from the Library Functions Manual β go build something gorgeous with it, mwah ππ¦β¨
π¦ 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