TICKIT_WIN...S_GEOMETRY(3)

πŸ’– TICKIT_WIN...S_GEOMETRY(3) πŸ’–

Library Functions Manual Β· the tickit girlies' window geometry saga


✨ NAME ✨

tickit_window_get_abs_geometry β€” query the absolute position of a window


🌸 SYNOPSIS 🌸

#include <tickit.h>

TickitRect tickit_window_get_abs_geometry(const TickitWindow *win);

Link with -ltickit.


πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so bestie, listen. tickit_window_get_abs_geometry() hands you back a TickitRect structure, and inside that lil guy is the absolute position of the window you passed in β€” absolute meaning within the underlying terminal, like the real actual coordinates, not the fake ones. πŸ’…

Now here's the tea. If your window is a root window, or an immediate child of one, then this absolute geometry is literally the same as its position given by tickit_window_get_geometry(3). Same numbers, no cap. ✨

But for windows that are nested further down? That's where it gets spicy. The function takes account of the position of its parents β€” so it walks up the whole family tree and gives you the true terminal-relative spot. It's giving ancestry.com but for rectangles. 🌈


πŸ’œ RETURN VALUE πŸ’œ

(this section is just… vibes. nothing here. silence. πŸ™ˆ)</purl>


πŸŽ€ SEE ALSO πŸŽ€


and that's the whole page, bestie β€” it lives in the Library Functions Manual under the name TICKIT_WIN...S_GEOMETRY(3), no date on this one so don't come for me 😭, go forth and query those absolute coordinates, periodt πŸ’–βœ¨πŸŽ€