TICKIT_WINDOW_CLOSE(3)

πŸ’– TICKIT_WINDOW_CLOSE πŸ’–

okay bestie, gather round, we're talking about tickit_window_close from the Library Functions Manual β€” page 3 of the tickit saga, section 3, and yes this one is a certified banger πŸŽ€


✨ NAME ✨

tickit_window_close β€” remove a window from the tree πŸŒ³βœ‚οΈ


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <tickit.h>

void tickit_window_close(TickitWindow *win);

Link with -ltickit. πŸ’…


🌸 DESCRIPTION 🌸

so like. tickit_window_close() removes a window from its parent, fr fr. after that it literally stops mattering β€” it no longer affects rendering, and it does NOT receive input events in any way. it's giving "you are off the team, we wish you well" 😭

and here's the part where you gotta pay attention, bestie:

After this is done, the only operation that is defined any more is tickit_window_unref(3). The window may not be used for further drawing. 🚫🎨

so like, once you close it, tickit_window_unref(3) is the one (1) move left on the board. do not come for that window with a draw call afterwards, it is not defined behaviour and it will not slay. periodt. πŸ‘‘


⭐ RETURN VALUE ⭐

tickit_window_close() returns no value. that's it. void. nothing to check, nothing to catch, no drama. it's giving main character who doesn't need a receipt 🫢


πŸŽ€ SEE ALSO πŸŽ€


and that's the whole vibe check, babes πŸ’œ this was TICKIT_WINDOW_CLOSE(3) straight outta the Library Functions Manual β€” same page name, same section, no notes. go forth and unref responsibly, iykyk 🌈✨