Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

DwtFetchInterfaceModule(3Dwt)

Name

DwtFetchInterfaceModule − Fetches all the widgets defined in an interface module in the UID hierarchy. 

Syntax

#include <X11/DwtAppl.h>
Cardinal DwtFetchInterfaceModule(hierarchy_id, module_name,
                                 parent_widget, widget_return)
     DRMHierarchy hierarchy_id;
     char *module_name;
     Widget parent_widget;
     Widget *widget_return;

Arguments

hierarchy_idSpecifies the ID of the UID hierarchy that contains the interface definition.  The hierarchy_id was returned in a previous call to DwtOpenHierarchy. 

module_name
Specifies the name of the interface module, which you specified in the UIL module header. By convention, this is usually the generic name of the application.

parent_widget
Specifies the parent widget ID for the topmost widgets being fetched from the module. The topmost widgets are those that have no parents specified in the UIL module. The parent widget is usually the top-level widget returned by XtInitialize. 

widget_return
Returns the widget ID for the last main window widget encountered in the UIL module, or NULL if no main window widget is found.

Description

The DwtFetchInterfaceModule function fetches all the widgets defined in a UIL module in the UID hierarchy.  Typically, each application has one or more modules that define its interface.  Each must be fetched in order to initialize all the widgets the application requires.  Applications do not need to define all their widgets in a single module. 

If the module defines a main window widget, DwtFetchInterfaceModule returns its widget ID.  If no main window widget is contained in the module, DwtFetchInterfaceModule returns NULL and no widgets are realized. 

The application can obtain the IDs of widgets other than the main window widget by using creation callbacks. 

Return Value

This function returns one of these status return constants:

DRMSuccess The function executed successfully. 
DRMFailure The function failed. 
DRMNotFound The interface module or topmost widget not found. 

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