1XtMakeGeometryRequest(3) XT FUNCTIONS XtMakeGeometryRequest(3)
2
3
4
6 XtMakeGeometryRequest, XtMakeResizeRequest - make geometry manager
7 request
8
10 XtGeometryResult XtMakeGeometryRequest(Widget w, XtWidgetGeometry
11 *request, XtWidgetGeometry *reply_return);
12
13 XtGeometryResult XtMakeResizeRequest(Widget w, Dimension width, height,
14 Dimension *width_return, Dimension *height_return);
15
17 reply_return
18 Returns the allowed widget size or may be NULL if the
19 requesting widget is not interested in handling XtGeometryAl‐
20 most.
21
22 request Specifies the desired widget geometry (size, position, border
23 width, and stacking order).
24
25 w Specifies the widget that is making the request.
26
27 width_return
28 height_return
29 Return the allowed widget width and height.
30
32 Depending on the condition, XtMakeGeometryRequest performs the follow‐
33 ing:
34
35 · If the widget is unmanaged or the widget's parent is not realized,
36 it makes the changes and returns XtGeometryYes.
37
38 · If the parent is not a subclass of compositeWidgetClass or the
39 parent's geometry_manager is NULL, it issues an error.
40
41 · If the widget's being_destroyed field is True, it returns XtGeome‐
42 tryNo.
43
44 · If the widget x, y, width, height and border_width fields are all
45 equal to the requested values, it returns XtGeometryYes; other‐
46 wise, it calls the parent's geometry_manager procedure with the
47 given parameters.
48
49 · If the parent's geometry manager returns XtGeometryYes and if
50 XtCWQueryOnly is not set in the request_mode and if the widget is
51 realized, XtMakeGeometryRequest calls the XConfigureWindow Xlib
52 function to reconfigure the widget's window (set its size, loca‐
53 tion, and stacking order as appropriate).
54
55 · If the geometry manager returns XtGeometryDone, the change has
56 been approved and actually has been done. In this case, XtMake‐
57 GeometryRequest does no configuring and returns XtGeometryYes.
58 XtMakeGeometryRequest never returns XtGeometryDone.
59
60 Otherwise, XtMakeGeometryRequest returns the resulting value from the
61 parent's geometry manager.
62
63 Children of primitive widgets are always unmanaged; thus, XtMake‐
64 GeometryRequest always returns XtGeometryYes when called by a child of
65 a primitive widget.
66
67 The XtMakeResizeRequest function, a simple interface to XtMakeGeometry‐
68 Request, creates a XtWidgetGeometry structure and specifies that width
69 and height should change. The geometry manager is free to modify any
70 of the other window attributes (position or stacking order) to satisfy
71 the resize request. If the return value is XtGeometryAlmost,
72 width_return and height_return contain a compromise width and height.
73 If these are acceptable, the widget should immediately make an XtMake‐
74 ResizeRequest and request that the compromise width and height be
75 applied. If the widget is not interested in XtGeometryAlmost replies,
76 it can pass NULL for width_return and height_return.
77
79 XtConfigureWidget(3Xt), XtQueryGeometery(3Xt)
80 X Toolkit Intrinsics - C Language Interface
81 Xlib - C Language X Interface
82
83
84
85X Version 11 libXt 1.0.7 XtMakeGeometryRequest(3)