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 π
tickit_window_new(3)tickit_window_get_geometry(3)tickit_window_reposition(3)tickit_window(7)tickit(7)
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 πβ¨π
π¦ where this page comes from
- alpine 3.24: libtickit-doc 0.4.6-r0 Β· MIT
- debian bookworm: libtickit-dev 0.4.3-1 Β· MIT
- debian trixie: libtickit-dev 0.4.3-2 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 43: libtickit-devel 0.4.5-2.fc43 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- fedora 44: libtickit-devel 0.4.5-3.fc44 Β· MIT
- nixos 26.05: libtickit 0.4.5
- nixpkgs unstable: libtickit 0.4.6
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- ubuntu noble: libtickit-dev 0.4.3-1.1build1 Β· MIT
- ubuntu questing: libtickit-dev 0.4.3-2
- ubuntu resolute: libtickit-dev 0.4.3-2build1 Β· MIT
- ubuntu stonking: libtickit-dev 0.4.3-2build1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms