TICKIT_WINDOW_CHILDREN(3)

πŸ’– TICKIT_WINDOW_CHILDREN πŸ’–

okay bestie, welcome to TICKIT_WINDOW_CHILDREN(3) β€” straight out of the Library Functions Manual, and yes she's here to help you find out who a window's kids are. no cap. 🫢


✨ NAME ✨

tickit_window_children, tickit_window_get_children β€” obtain child windows from a window 🌸


✨ SYNOPSIS ✨

#include <tickit.h>

size_t tickit_window_children(const TickitWindow *win);
size_t tickit_window_get_children(const TickitWindow *win,
    TickitWindow *children[], size_t n);

and bestie, don't forget:

Link with -ltickit.


✨ DESCRIPTION ✨

so tickit_window_children() is the how many kids do you have function πŸ’… β€” it returns the number of immediate child windows the given window has. immediate only, we're not doing the whole family tree here, that's giving genealogy energy and nobody asked.

then tickit_window_get_children() is the one that actually collects them. it copies at most n child window pointers into the array you handed it, the one called children, and it returns the number of pointers it copied. and lowkey important: that number may be fewer than the total stored, if your array was too small. so like, bring a big enough bag or you're leaving some of the children behind 😭


✨ RETURN VALUE ✨

both tickit_window_children() and tickit_window_get_children() return integers giving the number of entries operated on. that's it, that's the tea β˜•


✨ SEE ALSO ✨


and that's the whole page, bestie! πŸŽ€ this iconic little number lives in the TICKIT_WINDOW_CHILDREN(3) slot of the Library Functions Manual β€” she's serving library-functions-manual realness and honestly? obsessed. go read her siblings, go build something cute, and remember: count your children, don't lose your children. periodt. πŸ‘‘πŸ’œ