XtQueryGeometry(3)
β¨ NAME β¨
XtQueryGeometry β bestie, this is the one that asks a child widget what geometry it actually wants π
π SYNTAX π
#include <X11/Intrinsic.h>
XtGeometryResult XtQueryGeometry(Widget w, XtWidgetGeometry *intended,
XtWidgetGeometry *preferred_return);
πΈ ARGUMENTS πΈ
intendedβ whatever changes the parent is planning to make to the child's geometry, orNULLif it's not planning anything. No cap, just vibes and intentions.preferred_returnβ this is where the child's preferred geometry gets handed back to you. It's giving "return to sender but make it geometry" π«Άwβ the widget in question. The main character, if you will π
π DESCRIPTION π
Okay so picture this: a parent widget wants to know what geometry its child would prefer. So the parent takes all the changes it's thinking about making to the child's geometry, drops them into the matching fields of the intended structure, sets the matching bits in intended.request_mode, and then calls XtQueryGeometry. That's the whole ritual, bestie. β¨
Here's the tea on what XtQueryGeometry actually does:
- It clears all the bits in
preferred_return->request_mode. Every single one. Gone. Cleared. Slay. - Then it peeks at the
query_geometryfield of the specified widget's class record. π - If
query_geometryis notNULL, it calls thatquery_geometryprocedure and passes it the specified widget, plus theintendedandpreferred_returnstructures as arguments. The widget gets to speak its truth. - And if
intendedhappens to beNULL? No worries, it doesn't just pass theNULLalong βXtQueryGeometryswaps it out for a pointer to anXtWidgetGeometrystructure withrequest_mode=0before it callsquery_geometry. Very considerate. Very demure. π
Lowkey important: thatrequest_mode=0swap only happens before thequery_geometrycall, so the procedure always gets a real struct to work with instead of aNULLsituation. π
π¦ SEE ALSO π¦
XtConfigureWidget(3)XtMakeGeometryRequest(3)X Toolkit Intrinsics - C Language InterfaceXlib - C Language Interface
And that's the whole page, bestie β this was X Version 11, rocking libXt 1.3.1, and it's XtQueryGeometry(3) forever and ever, periodt. πβ¨π
π¦ where this page comes from
- alpine 3.22: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.23: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.24: libxt-doc 1.3.1-r0 Β· MIT
- arch rolling: libxt 1.3.1-1 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- Copyright 1993 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms