|
NAMEXmtRegisterWidgetClass(), XmtRegisterWidgetConstructor(), XmtVaRegisterWidgetClasses(), 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); ARGUMENTSINPUTS
DESCRIPTIONBefore 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 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 widget. USAGEWhen prototyping an application, you may find it useful to call XmtRegisterMotifWidgets() 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 ALSOChapter 11, Automatic Widget Creation,Chapter 29, Custom Dialogs and Automatic Dialog Management, XmtCreateChildren(), XmtRegisterMotifWidgets(), XmtRegisterWidgetTypes(), XmtRegisterXmtWidgets().
Visit the GSP FreeBSD Man Page Interface. |