Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtWindow(1)

NAME

XtWindowToWidget − translate a window and display pointer into a widget ID. 

Synopsis

Widget XtWindowToWidget(display, window)

    Display *display;
    Window window;

Inputs

displaySpecifies the display on which the window is defined. 

windowSpecifies 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 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 structure into the corresponding widget.  If you use the standard Intrinsics event dispatching mechanisms, however, this should not ever be necessary. 

See Also

XtWindow(1). 

Copyright O’Reilly & Assoc.  —  X Toolkit Intrinsics Reference Manual © O’Reilly & Associates

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026