00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef _XMU_STRCONVERT_H_
00037 #define _XMU_STRCONVERT_H_
00038
00039 #include <X11/Intrinsic.h>
00040 #include <X11/Xfuncproto.h>
00041
00042 _XFUNCPROTOBEGIN
00043
00044 void XmuCvtFunctionToCallback
00045 (
00046 XrmValue *args,
00047 Cardinal *num_args,
00048 XrmValuePtr fromVal,
00049 XrmValuePtr toVal
00050 );
00051
00052 #define XtNbackingStore "backingStore"
00053 #define XtCBackingStore "BackingStore"
00054 #define XtRBackingStore "BackingStore"
00055 #define XtEnotUseful "notUseful"
00056 #define XtEwhenMapped "whenMapped"
00057 #define XtEalways "always"
00058 #define XtEdefault "default"
00059 void XmuCvtStringToBackingStore
00060 (
00061 XrmValue *args,
00062 Cardinal *num_args,
00063 XrmValuePtr fromVal,
00064 XrmValuePtr toVal
00065 );
00066
00067 Boolean XmuCvtBackingStoreToString
00068 (
00069 Display *dpy,
00070 XrmValue *args,
00071 Cardinal *num_args,
00072 XrmValuePtr fromVal,
00073 XrmValuePtr toVal,
00074 XtPointer *converter_data
00075 );
00076
00077 void XmuCvtStringToCursor
00078 (
00079 XrmValue *args,
00080 Cardinal *num_args,
00081 XrmValuePtr fromVal,
00082 XrmValuePtr toVal
00083 );
00084
00085 #define XtRColorCursor "ColorCursor"
00086 #define XtNpointerColor "pointerColor"
00087 #define XtNpointerColorBackground "pointerColorBackground"
00088 Boolean XmuCvtStringToColorCursor
00089 (
00090 Display *dpy,
00091 XrmValue *args,
00092 Cardinal *num_args,
00093 XrmValuePtr fromVal,
00094 XrmValuePtr toVal,
00095 XtPointer *converter_data
00096 );
00097
00098 typedef int XtGravity;
00099
00100 #ifndef XtRGravity
00101 #define XtRGravity "Gravity"
00102 #endif
00103 #define XtEForget "forget"
00104 #define XtENorthWest "northwest"
00105 #define XtENorth "north"
00106 #define XtENorthEast "northeast"
00107 #define XtEWest "west"
00108 #define XtECenter "center"
00109 #define XtEEast "east"
00110 #define XtESouthWest "southwest"
00111 #define XtESouth "south"
00112 #define XtESouthEast "southeast"
00113 #define XtEStatic "static"
00114 #define XtEUnmap "unmap"
00115 void XmuCvtStringToGravity
00116 (
00117 XrmValue *args,
00118 Cardinal *num_args,
00119 XrmValuePtr fromVal,
00120 XrmValuePtr toVal
00121 );
00122
00123 Boolean XmuCvtGravityToString
00124 (
00125 Display *dpy,
00126 XrmValue *args,
00127 Cardinal *num_args,
00128 XrmValuePtr fromVal,
00129 XrmValuePtr toVal,
00130 XtPointer *converter_data
00131 );
00132
00133 typedef enum {
00134 XtJustifyLeft,
00135 XtJustifyCenter,
00136 XtJustifyRight
00137 } XtJustify;
00138 #ifndef XtRJustify
00139 #define XtRJustify "Justify"
00140 #endif
00141 #define XtEleft "left"
00142 #define XtEcenter "center"
00143 #define XtEright "right"
00144 #define XtEtop "top"
00145 #define XtEbottom "bottom"
00146 void XmuCvtStringToJustify
00147 (
00148 XrmValue *args,
00149 Cardinal *num_args,
00150 XrmValuePtr fromVal,
00151 XrmValuePtr toVal
00152 );
00153
00154 Boolean XmuCvtJustifyToString
00155 (
00156 Display *dpy,
00157 XrmValue *args,
00158 Cardinal *num_args,
00159 XrmValuePtr fromVal,
00160 XrmValuePtr toVal,
00161 XtPointer *converter_data
00162 );
00163
00164 #define XtRLong "Long"
00165 void XmuCvtStringToLong
00166 (
00167 XrmValue *args,
00168 Cardinal *num_args,
00169 XrmValuePtr fromVal,
00170 XrmValuePtr toVal
00171 );
00172 Boolean XmuCvtLongToString
00173 (
00174 Display *dpy,
00175 XrmValue *args,
00176 Cardinal *num_args,
00177 XrmValuePtr fromVal,
00178 XrmValuePtr toVal,
00179 XtPointer *converter_data
00180 );
00181
00182 typedef enum {
00183 XtorientHorizontal,
00184 XtorientVertical
00185 } XtOrientation;
00186 void XmuCvtStringToOrientation
00187 (
00188 XrmValue *args,
00189 Cardinal *num_args,
00190 XrmValuePtr fromVal,
00191 XrmValuePtr toVal
00192 );
00193
00194 Boolean XmuCvtOrientationToString
00195 (
00196 Display *dpy,
00197 XrmValue *args,
00198 Cardinal *num_args,
00199 XrmValuePtr fromVal,
00200 XrmValuePtr toVal,
00201 XtPointer *converter_data
00202 );
00203
00204 void XmuCvtStringToBitmap
00205 (
00206 XrmValue *args,
00207 Cardinal *num_args,
00208 XrmValuePtr fromVal,
00209 XrmValuePtr toVal
00210 );
00211
00212 #define XtRShapeStyle "ShapeStyle"
00213 #define XtERectangle "Rectangle"
00214 #define XtEOval "Oval"
00215 #define XtEEllipse "Ellipse"
00216 #define XtERoundedRectangle "RoundedRectangle"
00217
00218 #define XmuShapeRectangle 1
00219 #define XmuShapeOval 2
00220 #define XmuShapeEllipse 3
00221 #define XmuShapeRoundedRectangle 4
00222
00223 Boolean XmuCvtStringToShapeStyle
00224 (
00225 Display *dpy,
00226 XrmValue *args,
00227 Cardinal *num_args,
00228 XrmValuePtr fromVal,
00229 XrmValuePtr toVal,
00230 XtPointer *converter_data
00231 );
00232
00233 Boolean XmuCvtShapeStyleToString
00234 (
00235 Display *dpy,
00236 XrmValue *args,
00237 Cardinal *num_args,
00238 XrmValuePtr fromVal,
00239 XrmValuePtr toVal,
00240 XtPointer *converter_data
00241 );
00242
00243 Boolean XmuReshapeWidget
00244 (
00245 Widget w,
00246 int shape_style,
00247 int corner_width,
00248 int corner_height
00249 );
00250
00251 void XmuCvtStringToWidget
00252 (
00253 XrmValue *args,
00254 Cardinal *num_args,
00255 XrmValuePtr fromVal,
00256 XrmValuePtr toVal
00257 );
00258
00259 Boolean XmuNewCvtStringToWidget
00260 (
00261 Display *display,
00262 XrmValue *args,
00263 Cardinal *num_args,
00264 XrmValue *fromVal,
00265 XrmValue *toVal,
00266 XtPointer *converter_data
00267 );
00268
00269 Boolean XmuCvtWidgetToString
00270 (
00271 Display *dpy,
00272 XrmValue *args,
00273 Cardinal *num_args,
00274 XrmValue *fromVal,
00275 XrmValue *toVal,
00276 XtPointer *converter_data
00277 );
00278
00279 _XFUNCPROTOEND
00280
00281 #endif