1 .\" Copyright (c) 1993, 1994 X Consortium
3 .\" Permission is hereby granted, free of charge, to any person obtaining a
4 .\" copy of this software and associated documentation files (the "Software"),
5 .\" to deal in the Software without restriction, including without limitation
6 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 .\" and/or sell copies of the Software, and to permit persons to whom the
8 .\" Software furnished to do so, subject to the following conditions:
10 .\" The above copyright notice and this permission notice shall be included in
11 .\" all copies or substantial portions of the Software.
13 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16 .\" THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17 .\" WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
18 .\" OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 .\" Except as contained in this notice, the name of the X Consortium shall not
22 .\" be used in advertising or otherwise to promote the sale, use or other
23 .\" dealing in this Software without prior written authorization from the
27 .ds xT X Toolkit Intrinsics \- C Language Interface
29 .ds xW X Toolkit Athena Widgets \- C Language Interface
30 .ds xL Xlib \- C Language X Interface
31 .ds xC Inter-Client Communication Conventions Manual
34 .hw XtApp-Set-Type-Converter XtSet-Type-Converter wid-get
41 .\".if \\n(VS>=40 .vs \\n(VSu
42 .\".if \\n(VS<=39 .vs \\n(VSp
65 .de IN \" send an index entry to the stderr
72 .\" choose appropriate monospace font
73 .\" the imagen conditional, 480,
74 .\" may be changed to L if LB is too
75 .\" heavy for your eyes...
77 .ie "\\*(.T"480" .ft L
78 .el .ie "\\*(.T"300" .ft L
79 .el .ie "\\*(.T"202" .ft PO
80 .el .ie "\\*(.T"aps" .ft CW
83 .ie \\n(VS>40 .vs \\n(VSu
91 .ie t \\$1\fB\^\\$2\^\fR\\$3
92 .el \\$1\fI\^\\$2\^\fP\\$3
95 .ie t \fB\^\\$1\^\fR\\$2
96 .el \fI\^\\$1\^\fP\\$2
101 .if \\n(.$>$1 .if !'\\$2'C' .ds NO \\$2
102 .if \\n(.$ .if !'\\$1'C' .ds NO \\$1
116 . \" Note End -- doug kraft 3/85
125 .TH XtAppSetTypeConverter __libmansuffix__ __xorgversion__ "XT FUNCTIONS"
127 XtAppSetTypeConverter, XtSetTypeConverter \- register resource converter
130 void XtAppSetTypeConverter(XtAppContext \fIapp_context\fP, String
131 \fIfrom_type\fP, String \fIto_type\fP, XtConverter \fIconverter\fP,
132 XtConvertArgList \fIconvert_args\fP, Cardinal \fInum_args\fP, XtCacheType
133 \fIcache_type\fP, XtDestructor \fIdestructor\fP);
135 void XtSetTypeConverter(String \fIfrom_type\fP, String \fIto_type\fP,
136 XtConverter \fIconverter\fP, XtConvertArgList \fIconvert_args\fP, Cardinal
137 \fInum_args\fP, XtCacheType \fIcache_type\fP, XtDestructor \fIdestructor\fP);
139 .IP \fIapp_context\fP 1i
140 Specifies the application context.
141 .IP \fIconverter\fP 1i
142 Specifies the type converter procedure.
143 .IP \fIconvert_args\fP 1i
144 Specifies how to compute the additional arguments to the converter or NULL.
145 .IP \fIfrom_type\fP 1i
146 Specifies the source type.
147 .IP \fInum_args\fP 1i
148 Specifies the number of additional arguments to the converter or zero.
150 Specifies the destination type.
151 .IP \fIcache_type\fP 1i
152 Specifies whether or not resources produced by this converter are
153 sharable or display-specific and when they should be freed.
154 .IP \fIdestructor\fP 1i
155 Specifies a destroy procedure for resources produced by this conversion,
156 or NULL if no additional action is required to deallocate resources
157 produced by the converter.
159 .ZN XtSetTypeConverter
160 registers the specified type converter and destructor in all application
161 contexts created by the calling process, including any future application
162 contexts that may be created.
163 .ZN XtAppSetTypeConverter
164 registers the specified type converter in the single application context
165 specified. If the same \fIfrom_type\fP and \fIto_type\fP are specified
166 in multiple calls to either function, the most recent overrides the