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

FreeBSD Manual Pages

  
 
  

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

NAME
       XmtLookupWidgetType(),  XmtCreateWidgetType() - lookup a	widget type by
       name, create an instance	of a widget type.

SYNOPSIS
		      #include <Xmt/WidgetType.h>

		      XmtWidgetType *XmtLookupWidgetType(String	typename)

		      Widget XmtCreateWidgetType(String	name, XmtWidgetType
				     *type, Widget paren t, ArgList args, Car-
				     dinal num_args)

ARGUMENTS
       INPUTS

	    typename
		   The name of a widget	type to	be looked up.

	    name   The name of the widget to be	created.

	    type   The type of the widget to be	created.

	    parent The parent of the widget to be created.

	    args   An array of resource	name/value pairs to set	on  the	 newly
		   created widget.

	    num_args
		   The number of elements in args.

       RETURNS

	    XmtLookupWidgetType()  returns  the	XmtWidgetType structure	of the
	    named widget type, or NULL if no widget type was  registered  with
	    that  name.	  XmtCreateWidgetType()	returns	a newly	created	widget
	    with the specified name, type, parent and resources.

DESCRIPTION
       XmtLookupWidgetType() and XmtCreateWidgetType() form the	basis for  the
       Xmt  automatic widget creation facility.	You can	use these functions to
       implement an automatic widget creation scheme based on your own	widget
       hierarchy description.

       XmtLookupWidgetType()  looks  up	 the XmtWidgetType record for a	regis-
       tered widget type. This structure contains all the information  XmtCre-
       ateWidgetType()	need to	create an instance of the specified type. Note
       that XmtCreateWidgetType() takes	arguments that are much	like those  of
       XtCreateWidget().

SEE ALSO
       Chapter 11, Automatic Widget Creation,
       XmtRegisterMotifWidgets(), XmtRegisterPopupClass(),
       XmtRegisterPopupConstructor(), XmtRegisterWidgetClass(),
       XmtRegisterWidgetConstructor(), XmtRegisterXmtWidgets(),
       XmtVaRegisterWidgetClasses(), XmtVaRegisterWidgetConstructors().

Xmt				  Motif	Tools		XmtCreateWidgetType(3)

NAME | SYNOPSIS | ARGUMENTS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=XmtCreateWidgetType&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help