TICKIT_PEN_REF(3)
okay bestie, you're reading TICKIT_PEN_REF(3) from the Library Functions Manual, and it's literally just about adjusting the refcount of a pen ποΈβ¨ Buckle up, it's short but iconic.
π NAME π
tickit_pen_ref, tickit_pen_unref - adjust the refcount of a pen π
β¨ SYNOPSIS β¨
#include <tickit.h>
TickitPen *tickit_pen_ref(TickitPen *pen);
void tickit_pen_unref(TickitPen *pen);
Link with -ltickit.
π¦ DESCRIPTION π¦
tickit_pen_ref() increments the stored refcount of the given pen instance by one. It returns the pointer argument itself, so it is useful for chaining β yes bestie, chain it like your favorite playlist π§π₯
tickit_pen_unref() decrements the stored refcount of the given pen instance by one. If the refcount drops to zero, the instance is destroyed. That means it will release any resources controlled by it and unbind all the bound event handlers, causing handlers to be invoked with the TICKIT_EV_DESTROY flag if appropriate. So it's giving cleanup, but make it dramatic πβ¨
π RETURN VALUE π
tickit_pen_ref() returns a pen instance pointer. tickit_pen_unref() returns no value. That's the whole vibe, no cap, periodt.
π SEE ALSO π
bye bestie! That was the TICKIT_PEN_REF(3) page from the Library Functions Manual. The footer only says TICKIT_PEN_REF(3) β no version or date listed, so that's the tea π«Άπ
β¨
π¦ 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