GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  XMTREGISTERWIDGETCLASS (3)

NAME

XmtRegisterWidgetClass(), XmtRegisterWidgetConstructor(), XmtVaRegisterWidgetClasses(), XmtVaRegisterWidgetConstructors(), XmtRegisterPopupClass(), XmtRegisterPopupConstructor() - register names for widget types.

CONTENTS

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 VaRegisterWidgetConstructors(), 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 XmtVaRegisterWidgetClasses(), 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 registered. 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 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.

USAGE

When 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 ALSO

Chapter 11, Automatic Widget Creation,
Chapter 29, Custom Dialogs and Automatic Dialog Management, XmtCreateChildren(), XmtRegisterMotifWidgets(), XmtRegisterWidgetTypes(), XmtRegisterXmtWidgets().
Search for    or go to Top of page |  Section 3 |  Main Index


Xmt XMTREGISTERWIDGETCLASS (3) Motif Tools

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.