XtWindowToWidget() XtWindowToWidget()
Name
XtWindowToWidget - 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.
Description
XtWindowToWidget() takes a display pointer and a window and returns the associated widget ID. The widget must be within the same applica-
tion 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 structure into the corresponding widget. If you use the standard Intrinsics
event dispatching mechanisms, however, this should not ever be necessary.
See Also
XtNameToWidget(1), XtWindow(1).
Xt - Object Information XtWindowToWidget()