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