---
name: "XtAppSetTypeConverter"
section: "3x"
platform: "linux"
package: "libxt-dev"
version: "4.3.0.dfsg.1-14sarge7"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/XtAppSetTypeConverter/3x"
---

# XtAppSetTypeConverter(3x)

register resource converter

## NAME

XtAppSetTypeConverter, XtSetTypeConverter - register resource converter

## SYNTAX

void XtAppSetTypeConverter(XtAppContext *app\_context*, String *from\_type*, String *to\_type*, XtConverter *converter*, XtConvertArgList *convert\_args*, Cardinal *num\_args*, XtCacheType *cache\_type*, XtDestructor *destructor*);

void XtSetTypeConverter(String *from\_type*, String *to\_type*, XtConverter *converter*, XtConvertArgList *convert\_args*, Cardinal *num\_args*, XtCacheType *cache\_type*, XtDestructor *destructor*);

## ARGUMENTS

- *app\_context*

  Specifies the application context.

- *converter*

  Specifies the type converter procedure.

- *convert\_args*

  Specifies how to compute the additional arguments to the converter or NULL.

- *from\_type*

  Specifies the source type.

- *num\_args*

  Specifies the number of additional arguments to the converter or zero.

- *to\_type*

  Specifies the destination type.

- *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 addional action is required to deallocate resources produced by the converter.

## DESCRIPTION

*XtSetTypeConverter* registers the specified type converter and destructor in all application contexts created by the calling process, including any future application contexts that may be created. *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.

## SEE ALSO

*X Toolkit Intrinsics - C Language Interface*\
 *Xlib - C Language X Interface*
