TICKIT_WINDOW_REF(3)
π TICKIT_WINDOW_REF π
okay so bestie, welcome to page 3 of the Library Functions Manual β yes, TICKIT_WINDOW_REF(3), the one about adjusting the refcount of a window. refcounting, the little number that decides whether your window lives or dies. no pressure or anything π«Ά
β¨ NAME β¨
tickit_window_ref, tickit_window_unref β adjust the refcount of a window
πΈ SYNOPSIS πΈ
#include <tickit.h>
TickitWindow *tickit_window_ref(TickitWindow *win);
void tickit_window_unref(TickitWindow *win);
Link with -ltickit.
not me reminding you to link the library. don't forget -ltickit or nothing works and you'll be sad π
π¦ DESCRIPTION π¦
tickit_window_ref() increments the stored refcount of the given window instance by one. and the cute part? it hands you back the pointer argument itself, so it's perfect for chaining. like, literally gives you back what you gave it. iconic behaviour π
tickit_window_unref() decrements the stored refcount of the given window instance by one. if that refcount drops all the way down to zero, the instance is destroyed. gone. ghosted. π
and when it goes? it will release any resources controlled by it, and unbind all the bound event handlers, which means handlers get invoked with the TICKIT_EV_DESTROY flag if appropriate. so yeah, your handlers get one last text message before the window leaves the group chat π
β RETURN VALUE β
tickit_window_ref()returns a window instance pointer.tickit_window_unref()returns no value.
π SEE ALSO π
and that's the whole page, bestie!! thanks for reading TICKIT_WINDOW_REF(3) from the Library Functions Manual β go forth, ref responsibly, and remember: whoever holds the refcount holds the power πβ¨
π¦ 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