Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtConfigureWidget(1)

XtMakeGeometryRequest(1)

XtMoveWidget(1)

XtResizeWidget(1)

geometry_manager(4)

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

Inputs

wSpecifies the child widget making the request. 

width, height
Specify the desired widget width and height.

Returns

width_return, height_return
Return a compromise size when the function returns XtGeometryAlmost.  May be NULL if the widget is not interested in compromises. 

Description

XtMakeResizeRequest() is a simplified version of XtMakeGeometryRequest() that a child can use to ask its parent to change its size.  It creates an XtWidgetGeometry structure, specifies width, and height, sets request_mode to (CWWidth |CWHeight), and passes it to XtMakeGeometryRequest().  Note that the geometry manager is free to modify any of the other window attributes (position or stacking order) to satisfy the resize request.  The return values are as for XtMakeGeometryRequest().  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.  See XtMakeGeometryRequest() for more information. 

Usage

XtMakeResizeRequest() should only be used in widget code by widgets which would like to change their own size.  Applications that want to set a widget size should use XtSetValues() on the XtNwidth and XtNheight resources of the widget.  A widget that wants to change the size of one of its children should use XtResizeWidget(). 

See Also

XtConfigureWidget(1), XtMakeGeometryRequest(1), XtMoveWidget(1), XtResizeWidget(1),
geometry_manager(4). 

Copyright O’Reilly & Assoc.  —  X Toolkit Intrinsics Reference Manual © O’Reilly & Associates

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026