1XtRealizeWidget(3) XT FUNCTIONS XtRealizeWidget(3)
2
3
4
6 XtRealizeWidget, XtIsRealized, XtUnrealizeWidget - realize and unreal‐
7 ize widgets
8
10 void XtRealizeWidget(Widget w);
11
12 Boolean XtIsRealized(Widget w);
13
14 void XtUnrealizeWidget(Widget w);
15
17 w Specifies the widget.
18
20 If the widget is already realized, XtRealizeWidget simply returns.
21 Otherwise, it performs the following:
22
23 · Binds all action names in the widget's translation table to proce‐
24 dures (see Section 10.1.2).
25
26 · Makes a post-order traversal of the widget tree rooted at the
27 specified widget and calls the change_managed procedure of each
28 composite widget that has one or more managed children.
29
30 · Constructs an XSetWindowAttributes structure filled in with infor‐
31 mation derived from the Core widget fields and calls the realize
32 procedure for the widget, which adds any widget-specific
33 attributes and creates the X window.
34
35 · If the widget is not a subclass of compositeWidgetClass,
36 XtRealizeWidget returns; otherwise, it continues and performs the
37 following:
38
39 - Descends recursively to each of the widget's managed children
40 and calls the realize procedures. Primitive widgets that
41 instantiate children are responsible for realizing those
42 children themselves.
43
44 - Maps all of the managed children windows that have
45 mapped_when_managed True. (If a widget is managed but
46 mapped_when_managed is False, the widget is allocated visual
47 space but is not displayed. Some people seem to like this to
48 indicate certain states.)
49
50 If the widget is a top-level shell widget (that is, it has no parent),
51 and mapped_when_managed is True, XtRealizeWidget maps the widget win‐
52 dow.
53
54 The XtIsRealized function returns True if the widget has been realized,
55 that is, if the widget has a nonzero X window ID.
56
57 Some widget procedures (for example, set_values) might wish to operate
58 differently after the widget has been realized.
59
60 The XtUnrealizeWidget function destroys the windows of an existing wid‐
61 get and all of its children (recursively down the widget tree). To
62 recreate the windows at a later time, call XtRealizeWidget again. If
63 the widget was managed, it will be unmanaged automatically before its
64 window is freed.
65
67 XtManageChildren(3Xt)
68 X Toolkit Intrinsics - C Language Interface
69 Xlib - C Language X Interface
70
71
72
73X Version 11 libXt 1.0.7 XtRealizeWidget(3)