---
name: "MrmRegisterClass"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/MrmRegisterClass"
---

# MrmRegisterClass(3)

Saves the information needed for MRM to access the widget creation function for user-defined widgets

## NAME

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

## SYNOPSIS

```
#include <Mrm/MrmPublic.h>
Cardinal MrmRegisterClass(
MrmType class_code,
String class_name,
String create_name,
Widget (*create_proc) (),
WidgetClass class_record);
```

## DESCRIPTION

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

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

- *class\_code*

  This argument is ignored; it is present for compatibility with previous releases.

- **class\_name**

  This argument is ignored; it is present for compatibility with previous releases.

- *create\_name*

  Specifies the case-sensitive name of the low-level widget creation function for the class. An example from the Motif Toolkit is **XmCreateLabel**. 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.

## RETURN

This function returns one of the following status return constants:

- **MrmSUCCESS**

  The function executed successfully.

- **MrmFAILURE**

  The function failed.
