XtAppAddConverter(3)
π XtAppAddConverter(3) π
okay bestie, welcome to the XT COMPATIBILITY FUNCTIONS corner of the manual, where the old ways live on. this one's all about registering a resource converter β¨ β and yes, both XtAppAddConverter and XtAddConverter are in the house. no cap.
β¨ NAME β¨
XtAppAddConverter, XtAddConverter β register resource converter π
πΈ SYNTAX πΈ
#include <X11/Intrinsic.h>
void XtAppAddConverter(XtAppContext app_context, const char *from_type,
const char *to_type, XtConverter converter, XtConvertArgList
convert_args, Cardinal num_args);
void XtAddConverter(const char *from_type, const char *to_type,
XtConverter converter, XtConvertArgList convert_args, Cardinal
num_args);
like, that's the whole vibe. copy it exactly, okay? π
π¦ ARGUMENTS π¦
app_contextβ bestie, this is the application context. specify it. it's the main character here πconverterβ the type converter procedure. this is the function doing the work, so give it the respect it deserves.convert_argsβ tells you how to compute the extra arguments that get handed to the converter. orNULL, if you're feeling minimal πfrom_typeβ the source type. where we're coming from, emotionally and type-wise.num_argsβ how many additional arguments go to the converter. or zero. zero is a valid life choice πto_typeβ the destination type. where we're going. the glow-up destination π
π DESCRIPTION π
okay so listen, this is the important part, so pay attention bestie:
XtAppAddConverter is equivalent in function to XtAppSetTypeConverter with cache_type equal to XtCacheAll, for old-format type converters. it has been superseded by XtAppSetTypeConverter.
XtAddConverter is equivalent in function to XtSetTypeConverter with cache_type equal to XtCacheAll, for old-format type converters. it has been superseded by XtSetTypeConverter.
π¨ superseded means superseded, bestie. it's giving legacy. it still works, the vibes are still immaculate, but the new kids (XtAppSetTypeConverterandXtSetTypeConverter) are the ones you should be texting first. iykyk π
π₯ SEE ALSO π₯
XtConvert(3)XtStringConversionWarning(3)- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language Interface
and that's the tea, bestie π«Ά this was X Version 11, libXt 1.3.1, sliding into your terminal with all the compatibility-function energy. stay iconic, keep your converters registered, and don't forget to check the new ones πβ¨ππ¦
π¦ where this page comes from
- alpine 3.22: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.23: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.24: libxt-doc 1.3.1-r0 Β· MIT
- arch rolling: libxt 1.3.1-1 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- Copyright 1993 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms