XMCVTXMSTRINGTABLETOTEXTPROPERTY(3)
π XmCvtXmStringTableToTextProperty π
okay bestie, so this one lives in the Xm library (a library call, no cap) and it's called XmCvtXmStringTableToTextProperty β yes the header truncates it to XmCvtXmStri...extProperty because even the manpage system has a character limit, iconic π
It's the glow-up function: it takes your XmStringTable and turns it into an XTextProperty structure. Obsessed.
β¨ NAME β¨
XmCvtXmStringTableToTextProperty β a function that converts from XmStringTable to an XTextProperty Structure. periodt.
πΈ SYNOPSIS πΈ
#include <Xm/Xm.h>
int XmCvtXmStringTableToTextProperty (display, string_table, count, style, text_prop_return)
Display *display;
XmStringTable string_table;
int count;
XmICCEncodingStyle style;
XTextProperty *text_prop_return;
(void)
(yes the (void) is just sitting there at the end. it's giving mysterious. it's in the original, so it's staying π)
π¦ DESCRIPTION π¦
So XmCvtXmStringTableToTextProperty converts the XmStrings inside the XmStringTable you hand it into an XTextProperty structure. literally the whole job.
Here's the tea on what it actually does: the function sets the encoding member of text_prop_return to an Atom for the specified display, naming the encoding that got determined by the style you picked. and then it converts the first count compound strings in the specified XmStringTable to that encoding, for storage in the text_prop_return value member. slay.
Now. the possible encoding styles, bestie, get comfy π«Ά:
XmSTYLE_COMPOUND_STRINGβ the encoding is_MOTIF_COMPOUND_STRING. the function converts each specifiedXmStringto a compound string in Byte Stream format.XmSTYLE_COMPOUND_TEXTβ the encoding isCOMPOUND_TEXT. the function converts each specifiedXmStringto compound text.XmSTYLE_LOCALEβ the encoding is the encoding of the current locale. the function converts each specifiedXmStringto the encoding of the current locale.XmSTYLE_STRINGβ the encoding isSTRING(plain C strings encoded inISO8859-1), and the function converts each specifiedXmStringtoSTRING.XmSTYLE_TEXTβ if all specifiedXmStringsare fully convertible to the encoding of the current locale, the encoding is the encoding of the current locale, and the function converts each specifiedXmStringto the encoding of the current locale. otherwise, the encoding isCOMPOUND_TEXT, and the function converts each specified compound string to compound text.XmSTYLE_STANDARD_ICC_TEXTβ if all specifiedXmStringsare fully convertible toSTRING, the encoding isSTRING, and the function converts each specifiedXmStringtoSTRING. otherwise, the encoding isCOMPOUND_TEXT, and the function converts each specifiedXmStringto compound text.
and here are the args, one by one, because we do NOT skip π:
displayβ specifies the connection to the X server. your link to the mothership fr fr.string_tableβ specifies a set ofXmStrings.countβ specifies the number ofXmStringsto be converted instring_table. only the firstcountof them, bestie, don't come for the rest.styleβ specifies the manner in which the property is encoded.text_prop_returnβ returns theXTextPropertystructure.
β οΈ psst β to free the storage for the value member of theXTextProperty, useXtFree. don't just leave that memory hanging, that's not the vibe π
π RETURN VALUES π
if conversion depends on the locale and the current locale is not supported, the function returns XLocaleNotSupported. and in both of these cases β listen β the function does not set text_prop_return. so don't go reading it, it's not ready π
to determine whether the function is guaranteed not to return XLocaleNotSupported, use XSupportsLocale. that's your vibe check before you commit π₯
π RELATED INFORMATION π
go read those too, you're a completionist, i know you π
and that's the whole page, bestie!! π this was XmCvtXmStri...extProperty β the library call, from the Xm library, and the footer date/source situation is exactly as the original gave it: XmCvtXmStri...extProperty(library call). mwah, bye πβ¨π¦
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms