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

FreeBSD Manual Pages

  
 
  

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

NAME
       XmtRegisterWidgetClass(),  XmtRegisterWidgetConstructor(),  XmtVaRegis-
       terWidgetClasses(), XmtVaRegisterWidgetConstructors(),  XmtRegisterPop-
       upClass(),  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 VaRegisterWidget-
		   Constructors(), 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
		   appear any additional number	of times as part  of  a	 NULL-
		   terminated variable-length argument list.

	    constructor
		   A  ``Motif-style'' widget constructor function to be	regis-
		   tered. For XmtVaRegisterWidgetConstructors(), 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.

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

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

       XmtRegisterWidgetConstructor()  registers  a  single widget constructor
       function	constructor with the name name.

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

       XmtVaRegisterWidgetConstructors() registers a variable-length  list  of
       widget 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 wid-
       get.

USAGE
       When prototyping	an application,	you may	find it	useful to call XmtReg-
       isterMotifWidgets()  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=XmtRegisterWidgetClass&sektion=3&manpath=FreeBSD+Ports+15.0>

home | help