MrmFetchInterfaceModule(3Xm)

NAME
MrmFetchInterfaceModule - Fetches all the widgets defined in an interface module in the uid hierarchy.

SYNOPSIS
#include <Xm/Intrinsics>
#include <Mrm/MrmPublic.h>
Cardinal MrmFetchInterfaceModule(hierarchy_id, module_name, parent_widget, widget)
MrmHierarchy hierarchy_id;
char *module_name;
Widget parent_widget;
Widget *widget;

DESCRIPTION
The MrmFetchInterfaceModule 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, MrmFetchInterfaceModule returns its widget ID. If no main window widget is contained in the module, MrmFetchInterfaceModule 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.

hierarchy_id
    Specifies the ID of the uid hierarchy that contains the interface definition. The hierarchy_id was returned in a previous call to MrmOpenHierarchy.

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
    Returns the widget ID for the last main window widget encountered in the uil module, or NULL if no main window widget is found.

RETURN VALUE
This function returns one of these status return constants:

MrmSUCCESS
    The function executed successfully.

MrmFAILURE
    The function failed.

MrmNOT_FOUND
    The interface module or topmost widget not found.