1XtConvert(3) XT COMPATIBILITY FUNCTIONS XtConvert(3)
2
3
4
6 XtConvert, XtDirectConvert - invoke resource converters
7
9 void XtConvert(Widget w, String from_type, XrmValuePtr from, String
10 to_type, XrmValuePtr to_return);
11
12 void XtDirectConvert(XtConverter converter, XrmValuePtr args, Cardinal
13 num_args, XrmValuePtr from, XrmValuePtr to_return);
14
16 args Specifies the argument list that contains the additional
17 arguments needed to perform the conversion (often NULL).
18
19 converter Specifies the conversion procedure that is to be called.
20
21 from Specifies the value to be converted.
22
23 from_type Specifies the source type.
24
25 num_args Specifies the number of additional arguments (often zero).
26
27 to_type Specifies the destination type.
28
29 to_return Returns the converted value.
30
31 w Specifies the widget to use for additional arguments (if any
32 are needed).
33
35 The XtConvert function looks up the type converter registered to con‐
36 vert from_type to to_type, computes any additional arguments needed,
37 and then calls XtDirectConvert. XtConvert has been replaced by XtCon‐
38 vertAndStore.
39
40 The XtDirectConvert function looks in the converter cache to see if
41 this conversion procedure has been called with the specified arguments.
42 If so, it returns a descriptor for information stored in the cache;
43 otherwise, it calls the converter and enters the result in the cache.
44
45 Before calling the specified converter, XtDirectConvert sets the return
46 value size to zero and the return value address to NULL. To determine
47 if the conversion was successful, the client should check
48 to_return.address for non-NULL. XtDirectConvert has been replaced by
49 XtCallConverter.
50
52 XtAppAddConverter(3), XtStringConversionWarning(3), XtConvertAnd‐
53 Store(3), XtCallConverter(3)
54 X Toolkit Intrinsics - C Language Interface
55 Xlib - C Language X Interface
56
57
58
59X Version 11 libXt 1.1.4 XtConvert(3)