XtResizeWindow() XtResizeWindow()
Name
XtResizeWindow - resize a widget's window.
Synopsis
void XtResizeWindow(w)
Widget w;
Inputs
w Specifies the widget. Must be of class Core or any subclass thereof.
Description
XtResizeWindow() calls the Xlib function XConfigureWindow() to make the window of the specified widget match its Core width, height, and
border_width fields. XtResizeWindow() does not call the widget's resize() method.
The call to XConfigureWindow() is done unconditionally because there is no way to tell (without a server query) whether the widget's window
already has the specified size.
Usage
You should rarely need to call XtResizeWindow(), and should only call it from widget code. Usually, a widget will call XtResizeWidget() to
set size values in the widget's fields and call XConfigureWindow().
You only need to use XtResizeWindow() when a widget's core size fields have gotten out of sync with the window's actual size (this will not
happen if you follow standard geometry management procedures) and want to force the widget's window to match the size specified in the wid-
get's fields. In this case, XtResizeWindow() will not work, because it assumes that the widget's fields and the window size are in sync
and would decide that XConfigureWindow() does not need to be called.
See Also
XtResizeWidget(1).
Xt - Window Manipulation XtResizeWindow()