TICKIT_WINDOW_PARENT(3)

πŸ’– TICKIT_WINDOW_PARENT(3) πŸ’–

okay bestie, welcome to the Library Functions Manual β€” section 3 ofc, this is a C library situation, not a shell command situation. we're talking about tickit_window_parent and tickit_window_root from the Tickit windowing library. it's giving ✨family tree energy✨ but for terminal windows. let's get into it πŸŽ€


🌸 NAME 🌸

tickit_window_parent, tickit_window_root β€” query the ancestry of a window

like… who's your mom, and who's your ultimate ancestor. window genealogy fr fr πŸ¦‹


✨ SYNOPSIS ✨

#include <tickit.h>

TickitWindow *tickit_window_parent(const TickitWindow *win);
TickitWindow *tickit_window_root(const TickitWindow *win);

Link with -ltickit.

no cap, you have to actually link with -ltickit or none of this works. periodt πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

tickit_window_parent() returns a pointer to the given window's immediate parent instance β€” meaning the exact window it was created from. if you call it on a root window instance, it hands you back NULL, because a root window literally has no parent. it's an orphan by design, main character energy πŸ‘‘

tickit_window_root() returns a pointer to the given window's ultimate root window instance β€” the top of the whole family tree. and lowkey cute detail: if you call it on a root window instance, it may just return the window itself. self-love, honestly 🌈


🫢 RETURN VALUE 🫢

tickit_window_parent() and tickit_window_root() return pointers to window instances.

that's it. that's the return value. pointers. to windows. slay ✨


πŸ¦‹ SEE ALSO πŸ¦‹


that's the whole page bestie, you ate it πŸ’– go query some ancestry and stay iconic. this was TICKIT_WINDOW_PARENT(3) from the Library Functions Manual β€” mwah, no notes, bye πŸŽ€πŸ’…πŸŒΈ