Name
XtMakeResizeRequest — request parent to change child’s size.
Synopsis
XtGeometryResult XtMakeResizeRequest(w, width, height, width_return, height_return)
Widget w;
Dimension width, height;
Dimension ∗width_return, ∗height_return
Arguments
wSpecifies the child widget making the request.
width, height
Specify the desired widget width and height.
width_return, height_return
Return the allowed widget width and height.
Description
XtMakeResizeRequest is a simplified version of XtMakeGeometryRequest. A child uses XtMakeResizeRequest to ask its parent to change its size.
XtMakeResizeRequest creates an XtWidgetGeometry structure and specifies that width and height should change. The geometry manager is free to modify any of the other window attributes (position or stacking order) to satisfy the resize request.
If the return value is XtGeometryAlmost, width_return and height_return contain a compromise width and height. If these are acceptable, the widget should immediately make another XtMakeResizeRequest and request that the compromise width and height be applied. If the widget is not interested in XtGeometryAlmost replies, it can pass NULL for width_return and height_return.
For more information, see Chapter 11, Geometry Management, in Volume Four, X Toolkit Intrinsics Programming Manual.
Structures
The return codes from geometry managers are:
typedef enum _XtGeometryResult {
XtGeometryYes,/∗ Request accepted ∗/
XtGeometryNo,/∗ Request denied ∗/
XtGeometryAlmost,/∗ Request denied but willing to take reply ∗/
XtGeometryDone/∗ Request accepted and done ∗/
} XtGeometryResult;