TICKIT_WINDOW_SHOW(3)

πŸ’– TICKIT_WINDOW_SHOW πŸ’–

okay bestie, so this is a page from the Library Functions Manual β€” the tickit_window_show(3) one β€” and it's literally all about making windows ✨appear✨ and ✨disappear✨. no cap.


🌸 NAME 🌸

tickit_window_show, tickit_window_hide β€” controlling whether a window is visible or not πŸ‘€


✨ SYNOPSIS ✨

void tickit_window_show(TickitWindow *win);
void tickit_window_hide(TickitWindow *win);

bool tickit_window_is_visible(TickitWindow *win);

and like, don't forget to link with -ltickit 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

tickit_window_show() β€” bestie, this one makes the window you pass in visible. the way that works is it can now receive events and it can obscure its lower sibling windows. and yes, this may cause it to receive TICKIT_EV_EXPOSE events the next time tickit_window_flush(3) gets called. iconic behavior honestly πŸ’…

tickit_window_hide() β€” this one does the opposite, it makes the window non-visible. so no more events for it, and it becomes transparent to its lower sibling windows, which means their content is now the visible one. this may cause those lower siblings to receive TICKIT_EV_EXPOSE events when tickit_window_flush(3) is next called. slay 🌈

tickit_window_is_visible() β€” this tests whether the window is visible within its immediate parent. but hear me out: that does not mean it's actually visible to the terminal, because it might still have a hidden parent. so like, it's visible in its own little world, but its world might be hidden 😭


πŸ‘‘ RETURN VALUE πŸ‘‘

tickit_window_show() and tickit_window_hide() return no value. periodt, they give you nothing back.

tickit_window_is_visible() returns a boolean β€” so true or false, that's the vibe check πŸŽ€


πŸŽ€ SEE ALSO πŸŽ€


and that's the whole page fr fr πŸ’œ this one came from the TICKIT_WINDOW_SHOW(3) manual, footer said TICKIT_WINDOW_SHOW(3) down at the bottom too β€” same name, same date-vibe energy, we love a matching set πŸ’…βœ¨ go make some windows appear and disappear, you got this bestie πŸ¦‹πŸŒΈ