---
name: "XtAppSetTypeConverter"
section: "3"
platform: "linux"
package: "libxt"
version: "1.3.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XtAppSetTypeConverter"
---

# XtAppSetTypeConverter(3)

register resource converter

## NAME

XtAppSetTypeConverter, XtSetTypeConverter - register resource converter

## SYNTAX

\#include \<X11/Intrinsic.h\>

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

void XtSetTypeConverter(const char \**from\_type*, const char \**to\_type*, XtTypeConverter *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 shareable 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 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*
