GET_GEOMETRY(4)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

Get_Geometry πŸ’…

okay bestie, welcome to Get_Geometry β€” the manual name is Get_Geometry(special file), folded in right near the top like a little name tag instead of copy-pasting that header line. This page is short, iconic, and fully fact-preserved. Periodt. ✨ It's giving special-file request realness, and I'm obsessed.


✨ NAME ✨

Get_Geometry β€” get a tool's on-screen geometry πŸ’–

🌸 SYNOPSIS 🌸

       Get_Geometry(out width w,
               out height h,
               out xOffset x,
               out yOffset y
               [in messageID commission]);

πŸ’– DESCRIPTION πŸ’–

So the Get_Geometry request is your on-screen geometry reporter: it reports the on-screen geometry of the optionally specified window β€” or, if no window is specified, of the window primarily associated with the recipient procid. That's the main character behavior, no cap.

The w, h, x and y arguments are literally integer geometry values, in pixels, representing width, height, x-coordinate and y-coordinate, respectively:

  • w β€” width, in pixels.
  • h β€” height, in pixels.
  • x β€” x-coordinate, in pixels.
  • y β€” y-coordinate, in pixels.
Negative offset values are interpreted according to the X11(7) man page. Like, do not freestyle a negative offset, bestie β€” that's the rule, fr fr. 😭

The commission argument is the ID of the ongoing request, if any, that resulted in the creation of the window in question. That β€œif any” is lowkey important, ngl β€” don't go inventing one. 🫢

πŸŽ€ APPLICATION USAGE πŸŽ€

The ttdt_session_join(3), and ttdt_message_accept(3), functions can be used by Xt applications to register for, and transparently process, the Get_Geometry request. Also, Get_Geometry can be sent by ttdt_sender_imprint_on(3). Slay. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹


okay that's the whole page, bestie β€” source/version footer vibes are Get_Geometry(special file), and date-wise the original had no date line, so I'm not inventing one. Bye, ily, read your man pages. πŸ¦‹πŸ’œπŸŽ€

πŸ“¦ where this page comes from