1XtNameToWidget(3) XT FUNCTIONS XtNameToWidget(3)
2
3
4
6 XtNameToWidget, XtWindowToWidget - translating strings to widgets or
7 widgets to windows
8
10 #include <X11/Intrinsic.h>
11
12 Widget XtNameToWidget(Widget reference, const char *names);
13
14 Widget XtWindowToWidget(Display *display, Window window);
15
17 display Specifies the display on which the window is defined.
18
19 names Specifies the fully qualified name of the desired widget.
20
21 reference Specifies the widget from which the search is to start.
22
23 window Specify the window for which you want the widget.
24
26 The XtNameToWidget function looks for a widget whose name is the first
27 component in the specified names and that is a pop-up child of refer‐
28 ence (or a normal child if reference is a subclass of compositeWidget‐
29 Class). It then uses that widget as the new reference and repeats the
30 search after deleting the first component from the specified names. If
31 it cannot find the specified widget, XtNameToWidget returns NULL.
32
33 Note that the names argument contains the name of a widget with respect
34 to the specified reference widget and can contain more than one widget
35 name (separated by periods) for widgets that are not direct children of
36 the specified reference widget.
37
38 If more than one child of the reference widget matches the name,
39 XtNameToWidget can return any of the children. The Intrinsics do not
40 require that all children of a widget have unique names. If the speci‐
41 fied names contain more than one component and if more than one child
42 matches the first component, XtNameToWidget can return NULL if the sin‐
43 gle branch that it follows does not contain the named widget. That is,
44 XtNameToWidget does not back up and follow other matching branches of
45 the widget tree.
46
47 The XtWindowToWidget function translates the specified window and dis‐
48 play pointer into the appropriate widget instance.
49
51 X Toolkit Intrinsics - C Language Interface
52 Xlib - C Language X Interface
53
54
55
56X Version 11 libXt 1.2.1 XtNameToWidget(3)