Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtAppReleaseCacheRefs(1)

XtCallbackReleaseCacheRef(1)

XtCallbackReleaseCacheRefList(1)

XtCallConverter(1)

XtConvertAndStore(1)

XtSetTypeConverter(1)

XtTypeConverter(2)

XtDestructor(2)

Name

XtAppSetTypeConverter — register a type converter in a single application context. 

Synopsis

void XtAppSetTypeConverter(app_context, from_type, to_type, converter, convert_args, num_args, cache_type, destructor)

      XtAppContext app_context
      String from_type;
      String to_type;
      XtTypeConverter converter;
      XtConvertArgList convert_args;
      Cardinal num_args;
      XtCacheType cache_type;
      XtDestructor destructor;

Arguments

app_context
Specifies the application context.

from_typeSpecifies the source type. 

to_typeSpecifies the destination type. 

converterSpecifies the resource type converter procedure. 

convert_args
Specifies additional conversion arguments, or NULL. 

num_argsSpecifies the count of additional conversion arguments, or zero. 

cache_type
Specifies whether or not resources produced by this converter are sharable or display-specific and when they should be freed.

destructor
Specifies a destroy procedure for resources produced by this conversion, or NULL if no additional action is required, to deallocate resources produced by converter. 

Description

XtAppSetTypeConverter registers the specified type converter in the single application context specified.  If the same from_type and to_type are specified in multiple calls to either function, the most recent overrides the previous ones.  Similarly, XtSetTypeConverter registers the specified type converter and destructor in all application contexts created by the calling process, including any future application contexts which may be created. 

See Also

XtAppReleaseCacheRefs(1), XtCallbackReleaseCacheRef(1), XtCallbackReleaseCacheRefList(1), XtCallConverter(1), XtConvertAndStore(1), XtSetTypeConverter(1),
XtTypeConverter(2), XtDestructor(2). 

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