XtResizeWidget()XtResizeWidget()NameXtResizeWidget - resize a child widget.
Synopsis
void XtResizeWidget(w, width, height, border_width)
Widget w;
Dimension width;
Dimension height;
Dimension border_width;
Inputs
w Specifies the widget to be resized. Must be of class RectObj
or any subclass thereof.
width, height, border_width
Specify the new widget size and border width.
DescriptionXtResizeWidget() changes the width, height, and border width of w as
specified. It stores the new values into the widget record, and if the
widget is realized, calls XConfigureWindow() to change the size of the
widget's window. Whether or not the widget is realized, XtResizeWid‐
get() calls the widget's resize() method to notify it of the size
changes.
If the specified size is equal to the current size, XtResizeWidget()
returns immediately without calling XConfigureWindow() or the resize()
method.
See resize()(4) for information about the responsibilities of the
resize() method.
UsageXtResizeWidget() should only be used by a parent widget to change the
size of its children. If an application wishes to change the size of a
widget, it should set the XtNwidth and XtNheight (and possibly the
XtNborderWidth) resources of the widget. If a widget would like to
resize itself, it must request a new size with XtMakeGeometryRequest()
or XtMakeResizeRequest().
To move a child widget, use XtMoveWidget(). To move and resize a wid‐
get in the same call, use XtConfigureWidget().
See AlsoXtConfigureWidget(1), XtMakeGeometryRequest(1), XtMakeResizeRequest(1),
XtMoveWidget(1), XtResizeWindow(1),
resize(4).
Xt - Geometry Management XtResizeWidget()