2
* Motif Tools Library, Version 3.1
5
* Written by David Flanagan.
6
* Copyright (c) 1992-2001 by David Flanagan.
7
* All Rights Reserved. See the file COPYRIGHT for details.
8
* This is open source software. See the file LICENSE for details.
9
* There is no warranty for this software. See NO_WARRANTY for details.
12
* Revision 1.1.1.1 2001/07/18 11:06:02 root
15
* Revision 1.2 2001/06/12 16:25:28 andre
16
* *** empty log message ***
21
#ifndef _XmtConvertersP_h
22
#define _XmtConvertersP_h
24
#include <Xmt/Converters.h>
27
* The done() macro is used by all the Xt converters as the standard way
28
* to correctly return their values. Note that this macro requires
29
* that the converter have an argument named 'to'.
32
#define done(type, value) \
34
if (to->addr != NULL) { \
35
if (to->size < sizeof(type)) { \
36
to->size = sizeof(type); \
39
*(type*)(to->addr) = (value); \
42
static type static_val; \
43
static_val = (value); \
44
to->addr = (XPointer)&static_val; \
46
to->size = sizeof(type); \
51
* an argument list that passes only the widget requesting the conversion.
52
* used in a couple of places.
54
externalref XtConvertArgRec _XmtWidgetConvertArg[];
57
* These variables are defined so that Xmt functions can call Xmt
58
* converters directly, if and only if they have been registered by
59
* the programmer. We use this level of indirection so that the
60
* pixmap converter doesn't automatically link in the colortable
61
* converter, for example.
63
externalref XtTypeConverter _XmtCallbackConverter;
64
externalref XtTypeConverter _XmtColorTableConverter;
68
* an XtConvertArgProc used in several places
70
#if NeedFunctionPrototypes
71
extern void _XmtFetchColorTable(Widget, Cardinal *, XrmValue *);
72
extern void _XmtFetchRootWidget(Widget, Cardinal *, XrmValue *);
73
extern void _XmtFetchVisual(Widget, Cardinal *, XrmValue *);
75
extern void _XmtFetchColorTable();
76
extern void _XmtFetchRootWidget();
77
extern void _XmtFetchVisual();