1XtConvert(3)              XT COMPATIBILITY FUNCTIONS              XtConvert(3)
2
3
4

NAME

6       XtConvert, XtDirectConvert - invoke resource converters
7

SYNTAX

9       #include <X11/Intrinsic.h>
10
11       void XtConvert(Widget w, const char *from_type, XrmValuePtr from, const
12              char *to_type, XrmValuePtr to_return);
13
14       void XtDirectConvert(XtConverter converter, XrmValuePtr args, Cardinal
15              num_args, XrmValuePtr from, XrmValuePtr to_return);
16

ARGUMENTS

18       args      Specifies the argument list that contains the additional
19                 arguments needed to perform the conversion (often NULL).
20
21       converter Specifies the conversion procedure that is to be called.
22
23       from      Specifies the value to be converted.
24
25       from_type Specifies the source type.
26
27       num_args  Specifies the number of additional arguments (often zero).
28
29       to_type   Specifies the destination type.
30
31       to_return Returns the converted value.
32
33       w         Specifies the widget to use for additional arguments (if any
34                 are needed).
35

DESCRIPTION

37       The XtConvert function looks up the type converter registered to con‐
38       vert from_type to to_type, computes any additional arguments needed,
39       and then calls XtDirectConvert.  XtConvert has been replaced by XtCon‐
40       vertAndStore.
41
42       The XtDirectConvert function looks in the converter cache to see if
43       this conversion procedure has been called with the specified arguments.
44       If so, it returns a descriptor for information stored in the cache;
45       otherwise, it calls the converter and enters the result in the cache.
46
47       Before calling the specified converter, XtDirectConvert sets the return
48       value size to zero and the return value address to NULL.  To determine
49       if the conversion was successful, the client should check
50       to_return.address for non-NULL.  XtDirectConvert has been replaced by
51       XtCallConverter.
52

SEE ALSO

54       XtAppAddConverter(3), XtStringConversionWarning(3), XtConvertAnd‐
55       Store(3), XtCallConverter(3)
56       X Toolkit Intrinsics - C Language Interface
57       Xlib - C Language X Interface
58
59
60
61X Version 11                     libXt 1.1.5.1                    XtConvert(3)
Impressum