XtAppSetTypeConverter(3) XT FUNCTIONS XtAppSetTypeConverter(3)

# [NAME](#NAME)

XtAppSetTypeConverter, XtSetTypeConverter - register resource converter

# [SYNTAX](#SYNTAX)

#include &lt;X11/Intrinsic.h&gt;

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](#ARGUMENTS)

[*app\_context*](#app_context)

Specifies the application context.

[*converter*](#converter)

Specifies the type converter procedure.

[*convert\_args*](#convert_args)

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

[*from\_type*](#from_type)

Specifies the source type.

[*num\_args*](#num_args)

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

[*to\_type*](#to_type)

Specifies the destination type.

[*cache\_type*](#cache_type)

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

[*destructor*](#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](#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](#SEE_ALSO)

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

libXt 1.3.1 X Version 11

---

Document: XtAppSetTypeConverter(3) from libxt 1.3.1-r11 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxt.git
