SET_GEOMETRY(4)
π NAME π
Set_Geometry β set a tool's on-screen geometry. Okay so this is the Set_Geometry page from the special file manual, and it's literally here to set a tool's on-screen geometry. Slay. π«Ά
β¨ SYNOPSIS β¨
Set_Geometry(inout width w,
inout height h,
inout xOffset x,
inout yOffset y
[in messageID commission]);
π¦ DESCRIPTION π¦
The Set_Geometry request sets the on-screen geometry of the optionally specified window, or of the window primarily associated with the recipient procid if no window is specified. Main character request behavior, no cap. π
w,h,xandyare integer geometry values, in pixels, representing width, height, x-coordinate and y-coordinate, respectively. Precise pixels, bestie. π- Negative offset values are interpreted according to the
X11(7)man page. That's the rule, periodt. - If any of these arguments are unset, that part of the geometry need not be changed. Lowkey flexible like that. πΈ
- The return values are the actual new values, in case they differ from the requested new values. So you get the real real back. β¨
- The
commissionargument is the ID of the ongoing request, if any, that resulted in the creation of the window in question.
π 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 Set_Geometry request. Xt apps stay winning. π
π₯ EXAMPLES π₯
The Set_Geometry request can be sent as in the following example:
Tt_message msg = tttk_message_create(0, TT_REQUEST, TT_SESSION,
the_recipient_procid, TTDT_SET_GEOMETRY,
my_callback);
tt_message_iarg_add(msg, TT_INOUT, Tttk_width, 500);
tt_message_iarg_add(msg, TT_INOUT, Tttk_height, 500);
tt_message_arg_add(msg, TT_INOUT, Tttk_xoffset, 0); /* no value */
tt_message_arg_add(msg, TT_INOUT, Tttk_yoffset, 0); /* no value */
tt_message_send(msg);
π SEE ALSO π
tt_message_arg_add(3)tt_message_iarg_add(3)tt_message_send(3)ttdt_message_accept(3)ttdt_session_join(3)Get_Geometryrequest.
π That's a wrap on Set_Geometry(special file): the footer in this copy only repeats Set_Geometry(special file), with no source/version or date line to report β so no invented metadata, bestie. πβ¨
π¦ 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