GET_XINFO(4)
Hiii bestie π welcome to Get_XInfo from the special file manual β the whole vibe is get a tool's X11 attributes. Yes, X11. Buckle up, itβs cute but specific.
πΈ NAME πΈ
Get_XInfo β get a tool's X11 attributes.
β¨ SYNOPSIS β¨
Get_XInfo(out string display,
out string visual,
out integer depth
[in messageID commission]);
π DESCRIPTION π
Okay so the Get_XInfo request reports the X11 attributes of the window you optionally specify, or of the window primarily associated with the recipient procid if no window is specified. Slay, very window-aware.
Hereβs the arg tea:
displayβ an X11 display.visualβ an X11 visual class. This is what determines how a pixel will be displayed as a color. Valid values are:DirectColorPseudoColorStaticGrayGrayScaleStaticColorTrueColorCaret
depthβ the number of bits in a pixel.commissionβ the ID of the ongoing request with respect to which X11 attributes are being set or reported.
π¦ APPLICATION USAGE π¦
Xt applications can use the ttdt_session_join(3) and ttdt_message_accept(3) functions to register for β and transparently process β the Get_XInfo request. Also, Get_XInfo can be sent by ttdt_sender_imprint_on(3). Iconic.
Since the handler may be running on a different host, it is almost always better to return adisplayvalue ofhostname:n[. n]instead of:n[. n].) π«Ά
The commission argument is useful to the extent that the handler employs different attributes for the different operations it may be carrying out.
π EXAMPLES π
You can send the Get_XInfo request like this, bestie:
Tt_message msg = tttk_message_create(0, TT_REQUEST, TT_SESSION,
the_recipient_procid, TTDT_GET_XINFO,
my_callback);
tt_message_arg_add(msg, TT_OUT, Tttk_string, 0);
tt_message_arg_add(msg, TT_OUT, Tttk_string, 0);
tt_message_iarg_add(msg, TT_OUT, Tttk_integer, 0);
tt_message_send(msg);
π SEE ALSO π
tt_message_iarg_add(3)tt_message_send(3)ttdt_message_accept(3)ttdt_sender_imprint_on(3)ttdt_session_join(3)
Signing off from the special file manual π β there was no separate source/version/date footer to share, just the manual name repeated, so thatβs the whole tea. Byeee π
β¨
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms