xref: /386bsd/usr/X386/man/man3/XtConfigureWidget.3x (revision a2142627)
.\\$1D \\$2 \\$1
.if \\n(VS>=40 .vs \\n(VSu
.if \\n(VS<=39 .vs \\n(VSp
..

0 .nr BD 0

..

.KS .TA .5i 3i

..
.KE

.. .. .KS

.D

choose appropriate monospace font
the imagen conditional, 480,
may be changed to L if LB is too
heavy for your eyes...

.. .R .. .. .. .TB

\\*(NO .R .. . \" Note End -- doug kraft 3/85

0 .. .ny0

XtConfigureWidget 3Xt "Release 3" "X Version 11" "XT FUNCTIONS"
NAME
XtConfigureWidget, XtMoveWidget, XtResizeWidget - move and resize widgets
SYNTAX
void XtConfigureWidget(w, x, y, width, height, \ border_width)

Widget w;

Position x;

Position y;

Dimension width;

Dimension height;

Dimension border_width;

void XtMoveWidget(w, x, y)

Widget w;

Position x;

Position y;

void XtResizeWidget(w, width, height, border_width)

Widget w;

Dimension width;

Dimension height;

Dimension border_width;

void XtResizeWindow(w)

Widget w;

ARGUMENTS
width 1i

.ns

height 1i

.ns

border_width 1i
Specify the new widget size.
w 1i
Specifies the widget.
x 1i

.ns

y 1i
Specify the \*(Nu x and y coordinates.
DESCRIPTION
The .ZN XtConfigureWidget function returns immediately if the specified geometry fields are the same as the old values. Otherwise, .ZN XtConfigureWidget writes the new x, y, width, height, and border_width values into the widget and, if the widget is realized, makes an Xlib .ZN XConfigureWindow call on the widget's window.

If either the new width or height is different from its old value, .ZN XtConfigureWidget calls the widget's resize procedure to notify it of the size change; otherwise, it simply returns.

The .ZN XtMoveWidget function returns immediately if the specified geometry fields are the same as the old values. Otherwise, .ZN XtMoveWidget writes the new x and y values into the widget and, if the widget is realized, issues an Xlib .ZN XMoveWindow call on the widget's window.

The .ZN XtResizeWidget function returns immediately if the specified geometry fields are the same as the old values. Otherwise, .ZN XtResizeWidget writes the new width, height, and border_width values into the widget and, if the widget is realized, issues an .ZN XConfigureWindow call on the widget's window.

If the new width or height are different from the old values, .ZN XtResizeWidget calls the widget's resize procedure to notify it of the size change.

The .ZN XtResizeWindow function calls the .ZN XConfigureWindow Xlib function to make the window of the specified widget match its width, height, and border width. This request is done unconditionally because there is no way to tell if these values match the current values. Note that the widget's resize procedure is not called.

There are very few times to use .ZN XtResizeWindow ; instead, you should use .ZN XtResizeWidget .

"SEE ALSO"
XtMakeGeometryRequest(3Xt), XtQueryGeometry(3Xt)

\*(xT

\*(xL