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
XmtRegisterWidgetClass(3) FreeBSD Library Functions Manual XmtRegisterWidgetClass(3)

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

#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);

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.

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.

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().

Chapter 11, Automatic Widget Creation,
Chapter 29, Custom Dialogs and Automatic Dialog Management, XmtCreateChildren(), XmtRegisterMotifWidgets(), XmtRegisterWidgetTypes(), XmtRegisterXmtWidgets().
Motif Tools Xmt

Search for    or go to Top of page |  Section 3 |  Main Index

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