1XtConfigureWidget(3)             XT FUNCTIONS             XtConfigureWidget(3)
2
3
4

NAME

6       XtConfigureWidget, XtMoveWidget, XtResizeWidget - move and resize wid‐
7       gets
8

SYNTAX

10       #include <X11/Intrinsic.h>
11
12       void XtConfigureWidget(Widget w, Position x, Position y, Dimension
13              width, Dimension height, Dimension border_width);
14
15       void XtMoveWidget(Widget w, Position x, Position y);
16
17       void XtResizeWidget(Widget w, Dimension width, Dimension height, Dimen‐
18              sion border_width);
19
20       void XtResizeWindow(Widget w);
21

ARGUMENTS

23       width
24       height
25       border_width
26                 Specify the new widget size.
27
28       w         Specifies the widget.
29
30       x
31       y         Specify the new widget x and y coordinates.
32

DESCRIPTION

34       The XtConfigureWidget function returns immediately if the specified
35       geometry fields are the same as the old values.  Otherwise,
36       XtConfigureWidget writes the new x, y, width, height, and border_width
37       values into the widget and, if the widget is realized, makes an Xlib
38       XConfigureWindow call on the widget's window.
39
40       If either the new width or height is different from its old value,
41       XtConfigureWidget calls the widget's resize procedure to notify it of
42       the size change; otherwise, it simply returns.
43
44       The XtMoveWidget function returns immediately if the specified geometry
45       fields are the same as the old values.  Otherwise, XtMoveWidget writes
46       the new x and y values into the widget and, if the widget is realized,
47       issues an Xlib XMoveWindow call on the widget's window.
48
49       The XtResizeWidget function returns immediately if the specified geome‐
50       try fields are the same as the old values.  Otherwise, XtResizeWidget
51       writes the new width, height, and border_width values into the widget
52       and, if the widget is realized, issues an XConfigureWindow call on the
53       widget's window.
54
55       If the new width or height are different from the old values, XtResize‐
56       Widget calls the widget's resize procedure to notify it of the size
57       change.
58
59       The XtResizeWindow function calls the XConfigureWindow Xlib function to
60       make the window of the specified widget match its width, height, and
61       border width.  This request is done unconditionally because there is no
62       way to tell if these values match the current values.  Note that the
63       widget's resize procedure is not called.
64
65       There are very few times to use XtResizeWindow; instead, you should use
66       XtResizeWidget.
67

SEE ALSO

69       XtMakeGeometryRequest(3), XtQueryGeometry(3)
70       X Toolkit Intrinsics - C Language Interface
71       Xlib - C Language X Interface
72
73
74
75X Version 11                      libXt 1.2.0             XtConfigureWidget(3)
Impressum