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

FreeBSD Manual Pages

  
 
  

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

NAME
     XmtRegisterWidgetClass(), XmtRegisterWidgetConstructor(), XmtVaRegisterWid-
     getClasses(),  XmtVaRegisterWidgetConstructors(),	XmtRegisterPopupClass(),
     XmtRegisterPopupConstructor() - register names for widget types.

SYNOPSIS
     #include <Xmt/WidgetType.h>

     void XmtRegisterWidgetClass(String name, WidgetClass wclass)

     void XmtRegisterWidgetConstructor(String name, XmtWidgetConstructor
		    constructor)

     void XmtVaRegisterWidgetClasses(String name, WidgetClass wclass, { String
		    name, WidgetClass wclass, } NULL)

     void XmtVaRegisterWidgetConstructors(String name, XmtWidgetConstructor
		    constructor, { String name, XmtWidgetConstructor
		    constructor, } NULL)

     void XmtRegisterPopupClass(String name, WidgetClass wclass)

     void XmtRegisterPopupConstructor(String name, XmtWidgetConstructor
		    constructor)

     typedef Widget (*XmtWidgetConstructor)(Widget parent, String name, ArgList
		    args, Cardinal num_args);

ARGUMENTS
     INPUTS

	  name	 The name under which the widget type should be registered.  For
		 XmtVaRegisterWidgetClasses() and Xmt  VaRegisterWidgetConstruc-
		 tors(), this argument must appear at least once, and may appear
		 any  additional  number  of  times as part of a NULL-terminated
		 variable-length argument list.

	  wclass The widget class to  be  registered.  For  XmtVaRegisterWidget-
		 Classes(), this argument must appear at least once, and may ap-
		 pear  any  additional	number of times as part of a NULL-termi-
		 nated variable-length argument list.

	  constructor
		 A ``Motif-style'' widget constructor function to be registered.
		 For XmtVaRegisterWidgetConstructors(), this argument  must  ap-
		 pear  at  least  once,  and may appear any additional number of
		 times as part of  a  NULL-terminated  variable-length	argument
		 list.

DESCRIPTION
     Before  XmtCreateChildren()  and related functions can automatically create
     widgets described in a resource file, there must be a mapping  between  the
     names  of widget types and the widget types themselves. These functions de-
     fine that mapping.

     XmtRegisterWidgetClass() registers a single widget class  wclass  with  the
     name name.

     XmtRegisterWidgetConstructor()  registers a single widget constructor func-
     tion constructor with the name name.

     XmtVaRegisterWidgetClasses() registers a  variable-length	list  of  widget
     classes.

     XmtVaRegisterWidgetConstructors()	registers a variable-length list of wid-
     get constructors.

     XmtRegisterPopupClass() is like XmtRegisterWidgetClass(), but must be  used
     for any widget classes that are subclasses of Shell.

     XmtRegisterPopupConstructor()  is	like XmtRegisterWidget Constructor() but
     must be used for any constructor function that creates a shell widget.

USAGE
     When prototyping an application, you may find it useful to  call  XmtRegis-
     terMotifWidgets()	and  XmtRegisterXmtWidgets()  to register all Xm and Xmt
     widgets. If you want to register a widget type that will be used  with  the
     Xmt  automatic  dialog  management functions, you must use the more general
     XmtRegisterWidgetTypes().

SEE ALSO
     Chapter 11, Automatic Widget Creation,
     Chapter 29, Custom Dialogs and Automatic Dialog Management,
     XmtCreateChildren(), XmtRegisterMotifWidgets(), XmtRegisterWidgetTypes(),
     XmtRegisterXmtWidgets().

Xmt				   Motif Tools	       XmtRegisterWidgetClass(3)

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

home | help