Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dwtregisterclass(3dwt) [ultrix man page]

DwtRegisterClass(3Dwt)													    DwtRegisterClass(3Dwt)

Name
       DwtRegisterClass - Saves the information needed for DRM to access the widget creation function for user-defined widgets.

Syntax
       #include <X11/DwtAppl.h>
       Cardinal DwtRegisterClass(class_code, class_name, create_name,
				  create_proc, class_record)
	    DRMType class_code;
	    String class_name;
	    String create_name;
	    Widget (* create_proc) ();
	    WidgetClass class_record;

Arguments
       class_code
		 Specifies  the code name of the class.  For all application-defined widgets, this code name is DRMwcUnknown.  For all XUI Toolkit
		 widgets, each code name begins with the letters DRMwc.  The code names for all application widgets are defined in DRM.h.

       class_name
		 Specifies the case-sensitive name of the class.  The class names for all XUI Toolkit widgets are defined in  DRM.h.   Each  class
		 name begins with the letters DRMwcn.

       create_name
		 Specifies  the  case-sensitive  name of the low-level widget creation function for the class.	An example from the XUI Toolkit is
		 DwtLabelCreate.  Arguments are parent_widget, name, override_arglist, and override_argcount.

		 For user-defined widgets, create_name is the creation procedure in the UIL that defines this widget.

       create_proc
		 Specifies the address of the creation function that you named in create_name.

       class_record
		 Specifies a pointer to the class record.

Description
       The DwtRegisterClass function allows DRM to access user-defined widget classes.	This function registers the necessary information for  DRM
       to create widgets of this class.  You must call DwtRegisterClass prior to fetching any user-defined class widget.

       DwtRegisterClass  saves	the information needed to access the widget creation function and to do type conversion of argument lists by using
       the information in DRM databases.

Return Values
       This function returns one of these status return constants:

       DRMSuccess	 The   function   executed
			 successfully.
       DRMFailure	 The   allocation  of  the
			 class descriptor failed.

															    DwtRegisterClass(3Dwt)

Check Out this Related Man Page

DwtFetchInterfaceModule(3Dwt)											     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_id
		 Specifies  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 Values
       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.

														     DwtFetchInterfaceModule(3Dwt)
Man Page