1MrmRegisterClass(library call)                  MrmRegisterClass(library call)
2
3
4

NAME

6       MrmRegisterClass  —  Saves the information needed for MRM to access the
7       widget creation function for user-defined widgets
8

SYNOPSIS

10       #include <Mrm/MrmPublic.h>
11       Cardinal MrmRegisterClass(
12       MrmType class_code,
13       String class_name,
14       String create_name,
15       Widget (*create_proc) (),
16       WidgetClass class_record);
17

DESCRIPTION

19       The MrmRegisterClass function allows MRM to access user-defined  widget
20       classes.   This function registers the necessary information for MRM to
21       create widgets of this class.  You must call MrmRegisterClass prior  to
22       fetching any user-defined class widget.
23
24       MrmRegisterClass saves the information needed to access the widget cre‐
25       ation function and to do type conversion of argument lists by using the
26       information in MRM databases.
27
28       class_code
29                 This  argument  is  ignored;  it is present for compatibility
30                 with previous releases.
31
32       class_name
33                 This argument is ignored; it  is  present  for  compatibility
34                 with previous releases.
35
36       create_name
37                 Specifies  the  case-sensitive  name  of the low-level widget
38                 creation function for the class.  An example from  the  Motif
39                 Toolkit is XmCreateLabel.  Arguments are parent_widget, name,
40                 override_arglist, and override_argcount.
41
42                 For user-defined widgets, create_name is the creation  proce‐
43                 dure in the UIL that defines this widget.
44
45       create_proc
46                 Specifies the address of the creation function that you named
47                 in create_name.
48
49       class_record
50                 Specifies a pointer to the class record.
51

RETURN

53       This function returns one of the following status return constants:
54
55       MrmSUCCESS
56                 The function executed successfully.
57
58       MrmFAILURE
59                 The function failed.
60
61
62
63                                                MrmRegisterClass(library call)
Impressum