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

NAME

6       XtNameToWidget, XtWindowToWidget - translating strings to widgets or
7       widgets to windows
8

SYNTAX

10       Widget XtNameToWidget(Widget reference, String names);
11
12       Widget XtWindowToWidget(Display *display, Window window);
13

ARGUMENTS

15       display   Specifies the display on which the window is defined.
16
17       names     Specifies the fully qualified name of the desired widget.
18
19       reference Specifies the widget from which the search is to start.
20
21       window    Specify the window for which you want the widget.
22

DESCRIPTION

24       The XtNameToWidget function looks for a widget whose name is the first
25       component in the specified names and that is a pop-up child of refer‐
26       ence (or a normal child if reference is a subclass of compositeWidget‐
27       Class).  It then uses that widget as the new reference and repeats the
28       search after deleting the first component from the specified names.  If
29       it cannot find the specified widget, XtNameToWidget returns NULL.
30
31       Note that the names argument contains the name of a widget with respect
32       to the specified reference widget and can contain more than one widget
33       name (separated by periods) for widgets that are not direct children of
34       the specified reference widget.
35
36       If more than one child of the reference widget matches the name,
37       XtNameToWidget can return any of the children.  The Intrinsics do not
38       require that all children of a widget have unique names.  If the speci‐
39       fied names contain more than one component and if more than one child
40       matches the first component, XtNameToWidget can return NULL if the sin‐
41       gle branch that it follows does not contain the named widget.  That is,
42       XtNameToWidget does not back up and follow other matching branches of
43       the widget tree.
44
45       The XtWindowToWidget function translates the specified window and dis‐
46       play pointer into the appropriate widget instance.
47

SEE ALSO

49       X Toolkit Intrinsics - C Language Interface
50       Xlib - C Language X Interface
51
52
53
54X Version 11                      libXt 1.1.5                XtNameToWidget(3)
Impressum