XtParseTranslationTable()XtParseTranslationTable()NameXtParseTranslationTable - compile a translation table into its internal
representation.
Synopsis
XtTranslations XtParseTranslationTable(table)
String table;
Inputs
table Specifies the translation table to compile.
Returns
The compiled form of table.
DescriptionXtParseTranslationTable() compiles table into its opaque internal rep‐
resentation of type XtTranslations. This compiled form can then be set
as the value of a widget's XtNtranslations resource, or merged with a
widget's existing translation table with XtAugmentTranslations() or
XtOverrideTranslations().
The syntax of the string representation of a translation table is docu‐
mented in Appendix F.
If an empty translation table is required for any purpose, one can be
obtained by calling XtParseTranslationTable() and passing an empty
string.
Usage
This function is generally only needed by application writers. When
writing a widget, you specify a default translation table as a string,
which the Intrinsics automatically parse.
You only need to use this function when you want to set translation
values from C code; translation tables specified in resource files are
automatically compiled by a resource converter.
It is also possible to set a translation table with the XtVaTypedArg
feature of XtVaCreateWidget() and XtVaSetValues(). This allows you to
specify the translation table in string form, and have the appropriate
resource converter automatically invoked to compile it.
The string table passed to XtParseTranslationTable can be freed after
the call if there are no more explicit references to it.
See AlsoXtAugmentTranslations(1), XtOverrideTranslations(1), XtUninstallTrans‐
lations(1).
Xt - Translations and Actions XtParseTranslationTable()