Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ AddCnverter(3X) — DeltaWindows 1.3.3 Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

NAME

XtAddConverter − register an "old-style" resource converter. 

SYNOPSIS

void XtAddConverter(from_type, to_type, converter, convert_args, num_args)
    String from_type;
    String to_type;
    XtConverter converter;
    XtConvertArgList convert_args;
    Cardinal num_args;

Inputs

from_typeSpecifies the resource name of the datatype that the converter converts from. 

to_typeSpecifies the resource name of the datatype that the converter converts to. 

converterSpecifies the converter procedure.  See XtConverter(2). 

convert_args
Specifies how to obtain any additional arguments needed for the conversion.

num_argsSpecifies the number elements in convert_args. 

AVAILABILITY

Superseded by XtAppAddConverter(). 

DESCRIPTION

XtAddConverter() registers converter as a procedure to convert data of resource type from_type to resource type to_type.  The convert_args array is registered with the converter, and will be used to obtain arguments to pass to the converter each time it is invoked. 

USAGE

XtAddConverter() has been superseded by XtAppAddConverter(), which allows the registration of converter functions on a per-application context basis.  XtAddConverter() now calls XtAppAddConverter() passing the default application context created by XtInitialize().  Very few programs need multiple application contexts, and you can continue to use XtAddConverter() if you initialize your application with XtInitialize().  We recommend, however, that you use XtAppInitialize(), XtAppAddConverter(), and the other XtApp∗() application context specific functions. 

See XtAppAddConverter() for more information about converters and the XtConvertArgList data type. 

XtAddConverter() and XtAppAddConverter() register "old-style" converters which are still in common use, but are not as flexible as the (incompatible) "new-style" converters added in Release 4.  If you must register an existing old-style converter, use XtAppAddConverter(), but if you are writing a converter of your own, consider using a new-style converter.  See XtAppSetTypeConverter(). 

SEE ALSO

XtAppAddConverterUNIX SYSTEM V/68, XtAppSetTypeConverterUNIX SYSTEM V/68, XtSetTypeConverterUNIX SYSTEM V/68,
XtConverterUNIX SYSTEM V/88, XtTypeConverterUNIX SYSTEM V/88. 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026