1XtMakeGeometryRequest(3)         XT FUNCTIONS         XtMakeGeometryRequest(3)
2
3
4

NAME

6       XtMakeGeometryRequest, XtMakeResizeRequest - make geometry manager
7       request
8

SYNTAX

10       #include <X11/Intrinsic.h>
11
12       XtGeometryResult XtMakeGeometryRequest(Widget w, XtWidgetGeometry
13              *request, XtWidgetGeometry *reply_return);
14
15       XtGeometryResult XtMakeResizeRequest(Widget w, Dimension width, Dimen‐
16              sion height, Dimension *width_return, Dimension *height_return);
17

ARGUMENTS

19       reply_return
20                 Returns the allowed widget size or may be NULL if the
21                 requesting widget is not interested in handling XtGeometryAl‐
22                 most.
23
24       request   Specifies the desired widget geometry (size, position, border
25                 width, and stacking order).
26
27       w         Specifies the widget that is making the request.
28
29       width_return
30       height_return
31                 Return the allowed widget width and height.
32

DESCRIPTION

34       Depending on the condition, XtMakeGeometryRequest performs the follow‐
35       ing:
36
37       ·    If the widget is unmanaged or the widget's parent is not realized,
38            it makes the changes and returns XtGeometryYes.
39
40       ·    If the parent is not a subclass of compositeWidgetClass or the
41            parent's geometry_manager is NULL, it issues an error.
42
43       ·    If the widget's being_destroyed field is True, it returns XtGeome‐
44            tryNo.
45
46       ·    If the widget x, y, width, height and border_width fields are all
47            equal to the requested values, it returns XtGeometryYes; other‐
48            wise, it calls the parent's geometry_manager procedure with the
49            given parameters.
50
51       ·    If the parent's geometry manager returns XtGeometryYes and if
52            XtCWQueryOnly is not set in the request_mode and if the widget is
53            realized, XtMakeGeometryRequest calls the XConfigureWindow Xlib
54            function to reconfigure the widget's window (set its size, loca‐
55            tion, and stacking order as appropriate).
56
57       ·    If the geometry manager returns XtGeometryDone, the change has
58            been approved and actually has been done.  In this case, XtMake‐
59            GeometryRequest does no configuring and returns XtGeometryYes.
60            XtMakeGeometryRequest never returns XtGeometryDone.
61
62       Otherwise, XtMakeGeometryRequest returns the resulting value from the
63       parent's geometry manager.
64
65       Children of primitive widgets are always unmanaged; thus, XtMake‐
66       GeometryRequest always returns XtGeometryYes when called by a child of
67       a primitive widget.
68
69       The XtMakeResizeRequest function, a simple interface to XtMakeGeometry‐
70       Request, creates a XtWidgetGeometry structure and specifies that width
71       and height should change.  The geometry manager is free to modify any
72       of the other window attributes (position or stacking order) to satisfy
73       the resize request.  If the return value is XtGeometryAlmost,
74       width_return and height_return contain a compromise width and height.
75       If these are acceptable, the widget should immediately make an XtMake‐
76       ResizeRequest and request that the compromise width and height be
77       applied.  If the widget is not interested in XtGeometryAlmost replies,
78       it can pass NULL for width_return and height_return.
79

SEE ALSO

81       XtConfigureWidget(3), XtQueryGeometery(3)
82       X Toolkit Intrinsics - C Language Interface
83       Xlib - C Language X Interface
84
85
86
87X Version 11                     libXt 1.1.5.1        XtMakeGeometryRequest(3)
Impressum