Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
MrmRegisterClass(3)	    Library Functions Manual	     MrmRegisterClass(3)

NAME
     MrmRegisterClass -- Saves the information needed for MRM to access the wid-
     get creation function for user-defined widgets

SYNOPSIS
     #include <Mrm/MrmPublic.h>
     Cardinal MrmRegisterClass(
     MrmType class_code,
     const char *class_name,
     const char *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 cre-
     ate widgets of this class.  You must call MrmRegisterClass prior to  fetch-
     ing 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 informa-
     tion in MRM databases.

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

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

     create_name
	       Specifies the case-sensitive name of the  low-level  widget  cre-
	       ation  function for the class.  An example from the Motif Toolkit
	       is  XmCreateLabel.   Arguments  are  parent_widget,  name,  over-
	       ride_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:

     MrmSUCCESSThe function executed successfully.

     MrmFAILUREThe function failed.

							     MrmRegisterClass(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=MrmRegisterClass&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help