XmCvtXmStringTableToTextProperty(3) | Library Functions Manual | XmCvtXmStringTableToTextProperty(3) |
XmCvtXmStringTableToTextProperty — A function that converts from XmStringTable to an XTextProperty Structure "XmCvtXmStringTableToTextProperty"
#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)
XmCvtXmStringTableToTextProperty converts the XmStrings in the specified XmStringTable into an XTextProperty structure.
The function sets the encoding member of text_prop_return to an Atom for the specified display naming the encoding determined by the specified style, and it converts the first count compound strings in the specified XmStringTable to this encoding for storage in the text_prop_return value member. Following are the possible encoding styles:
To free the storage for the value member of the XTextProperty, use XtFree.
If conversion depends on the locale and the current locale is not supported, the function returns XLocaleNotSupported. In both of these cases, the function does not set text_prop_return.
To determine whether the function is guaranteed not to return XLocaleNotSupported, use XSupportsLocale.
XmCvtXmStringToByteStream(3), XmCvtTextPropertyToXmStringTable(3), and XmStringTable(3).