XtInitializeWidgetClass() XtInitializeWidgetClass()
Name
XtInitializeWidgetClass - initialize a widget class without creating any widgets.
Synopsis
void XtInitializeWidgetClass(object_class)
WidgetClass object_class;
Inputs
object_class
Specifies the object class to initialize; may be of class objectClass or any subclass thereof.
Availability
Release 4 and later.
Description
XtInitializeWidgetClass() initializes a widget class in the same way that XtCreateWidget does, but without creating any widgets. It checks
the class_inited field of the specified class and all its superclasses, in superclass-to-subclass order, and if that field is False for any
class, it calls the class_initialize() and class_part_initialize() methods for the class and all of its superclasses. Finally, the
class_inited field of the specified class is set to nonzero.
If the specified widget class is already initialized, XtInitializeWidgetClass() returns immediately.
Usage
A widget class is automatically initialized when the first instance of a widget is created; few applications will need to use this func-
tion.
If a class initialization procedure registers type converters, those type converters are not available until the first object of the class
or subclass is created or until XtInitializeWidgetClass() is called. This function was added in Release 4 so that the XtVaTypedArg feature
of XtVaCreateWidget() can be used to convert a resource value while creating the first instance of a particular widget class.
See Also
XtVaCreateWidget(1).
Xt - Initialization XtInitializeWidgetClass()