XtQueryGeometry() - query the preferred geometry of a child widget
XtGeometryResult XtQueryGeometry (Widget w,
XtWidgetGeometry *intended,
XtWidgetGeometry *preferred_return)
To discover a child's preferred geometry, the child's parent sets any changes that it intends to make to the child's geometry in the corresponding fields of the intended structure, sets the corresponding bits in intended.request_mode, and calls I.Fn XtQueryGeometry .
XtQueryGeometry clears all bits in the preferred_return->request_mode and checks the query_geometry field of the specified widget's class record. If query_geometry is not NULL, XtQueryGeometry(3) calls the query_geometry procedure and passes as arguments the specified widget, intended, and preferred_return structures. If the intended argument is NULL, XtQueryGeometry(3) replaces it with a pointer to an XtWidgetGeometry structure with request_mode=0 before calling query_geometry.
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface