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. or NULL, 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 (XtAppSetTypeConverter and XtSetTypeConverter) are the ones you should be texting first. iykyk 😭

πŸ”₯ SEE ALSO πŸ”₯


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