XtWindowToWidget()XtWindowToWidget()NameXtWindowToWidget - translate a window and display pointer into a widget
ID.
Synopsis
Widget XtWindowToWidget(display, window)
Display *display;
Window window;
Inputs
display Specifies the display on which the window is defined.
window Specifies the window for which you want the widget.
Returns
The widget that created window on display, or NULL.
DescriptionXtWindowToWidget() takes a display pointer and a window and returns the
associated widget ID. The widget must be within the same application
as the caller.
If the specified display and window do not match any widget created by
the application, XtWindowToWidget() returns NULL.
Usage
This function can be useful to convert the window of an XEvent struc‐
ture into the corresponding widget. If you use the standard Intrinsics
event dispatching mechanisms, however, this should not ever be neces‐
sary.
See AlsoXtNameToWidget(1), XtWindow(1).
Xt - Object Information XtWindowToWidget()