File indexing completed on 2025-01-30 10:26:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032 #ifndef _XMU_STRCONVERT_H_
0033 #define _XMU_STRCONVERT_H_
0034
0035 #include <X11/Intrinsic.h>
0036 #include <X11/Xfuncproto.h>
0037
0038 _XFUNCPROTOBEGIN
0039
0040 void XmuCvtFunctionToCallback
0041 (
0042 XrmValue *args,
0043 Cardinal *num_args,
0044 XrmValuePtr fromVal,
0045 XrmValuePtr toVal
0046 );
0047
0048 #define XtNbackingStore "backingStore"
0049 #define XtCBackingStore "BackingStore"
0050 #define XtRBackingStore "BackingStore"
0051 #define XtEnotUseful "notUseful"
0052 #define XtEwhenMapped "whenMapped"
0053 #define XtEalways "always"
0054 #define XtEdefault "default"
0055 void XmuCvtStringToBackingStore
0056 (
0057 XrmValue *args,
0058 Cardinal *num_args,
0059 XrmValuePtr fromVal,
0060 XrmValuePtr toVal
0061 );
0062
0063 Boolean XmuCvtBackingStoreToString
0064 (
0065 Display *dpy,
0066 XrmValue *args,
0067 Cardinal *num_args,
0068 XrmValuePtr fromVal,
0069 XrmValuePtr toVal,
0070 XtPointer *converter_data
0071 );
0072
0073 void XmuCvtStringToCursor
0074 (
0075 XrmValue *args,
0076 Cardinal *num_args,
0077 XrmValuePtr fromVal,
0078 XrmValuePtr toVal
0079 );
0080
0081 #define XtRColorCursor "ColorCursor"
0082 #define XtNpointerColor "pointerColor"
0083 #define XtNpointerColorBackground "pointerColorBackground"
0084 Boolean XmuCvtStringToColorCursor
0085 (
0086 Display *dpy,
0087 XrmValue *args,
0088 Cardinal *num_args,
0089 XrmValuePtr fromVal,
0090 XrmValuePtr toVal,
0091 XtPointer *converter_data
0092 );
0093
0094 typedef int XtGravity;
0095
0096 #ifndef XtRGravity
0097 #define XtRGravity "Gravity"
0098 #endif
0099 #define XtEForget "forget"
0100 #define XtENorthWest "northwest"
0101 #define XtENorth "north"
0102 #define XtENorthEast "northeast"
0103 #define XtEWest "west"
0104 #define XtECenter "center"
0105 #define XtEEast "east"
0106 #define XtESouthWest "southwest"
0107 #define XtESouth "south"
0108 #define XtESouthEast "southeast"
0109 #define XtEStatic "static"
0110 #define XtEUnmap "unmap"
0111 void XmuCvtStringToGravity
0112 (
0113 XrmValue *args,
0114 Cardinal *num_args,
0115 XrmValuePtr fromVal,
0116 XrmValuePtr toVal
0117 );
0118
0119 Boolean XmuCvtGravityToString
0120 (
0121 Display *dpy,
0122 XrmValue *args,
0123 Cardinal *num_args,
0124 XrmValuePtr fromVal,
0125 XrmValuePtr toVal,
0126 XtPointer *converter_data
0127 );
0128
0129 typedef enum {
0130 XtJustifyLeft,
0131 XtJustifyCenter,
0132 XtJustifyRight
0133 } XtJustify;
0134 #ifndef XtRJustify
0135 #define XtRJustify "Justify"
0136 #endif
0137 #define XtEleft "left"
0138 #define XtEcenter "center"
0139 #define XtEright "right"
0140 #define XtEtop "top"
0141 #define XtEbottom "bottom"
0142 void XmuCvtStringToJustify
0143 (
0144 XrmValue *args,
0145 Cardinal *num_args,
0146 XrmValuePtr fromVal,
0147 XrmValuePtr toVal
0148 );
0149
0150 Boolean XmuCvtJustifyToString
0151 (
0152 Display *dpy,
0153 XrmValue *args,
0154 Cardinal *num_args,
0155 XrmValuePtr fromVal,
0156 XrmValuePtr toVal,
0157 XtPointer *converter_data
0158 );
0159
0160 #define XtRLong "Long"
0161 void XmuCvtStringToLong
0162 (
0163 XrmValue *args,
0164 Cardinal *num_args,
0165 XrmValuePtr fromVal,
0166 XrmValuePtr toVal
0167 );
0168 Boolean XmuCvtLongToString
0169 (
0170 Display *dpy,
0171 XrmValue *args,
0172 Cardinal *num_args,
0173 XrmValuePtr fromVal,
0174 XrmValuePtr toVal,
0175 XtPointer *converter_data
0176 );
0177
0178 typedef enum {
0179 XtorientHorizontal,
0180 XtorientVertical
0181 } XtOrientation;
0182 void XmuCvtStringToOrientation
0183 (
0184 XrmValue *args,
0185 Cardinal *num_args,
0186 XrmValuePtr fromVal,
0187 XrmValuePtr toVal
0188 );
0189
0190 Boolean XmuCvtOrientationToString
0191 (
0192 Display *dpy,
0193 XrmValue *args,
0194 Cardinal *num_args,
0195 XrmValuePtr fromVal,
0196 XrmValuePtr toVal,
0197 XtPointer *converter_data
0198 );
0199
0200 void XmuCvtStringToBitmap
0201 (
0202 XrmValue *args,
0203 Cardinal *num_args,
0204 XrmValuePtr fromVal,
0205 XrmValuePtr toVal
0206 );
0207
0208 #define XtRShapeStyle "ShapeStyle"
0209 #define XtERectangle "Rectangle"
0210 #define XtEOval "Oval"
0211 #define XtEEllipse "Ellipse"
0212 #define XtERoundedRectangle "RoundedRectangle"
0213
0214 #define XmuShapeRectangle 1
0215 #define XmuShapeOval 2
0216 #define XmuShapeEllipse 3
0217 #define XmuShapeRoundedRectangle 4
0218
0219 Boolean XmuCvtStringToShapeStyle
0220 (
0221 Display *dpy,
0222 XrmValue *args,
0223 Cardinal *num_args,
0224 XrmValuePtr fromVal,
0225 XrmValuePtr toVal,
0226 XtPointer *converter_data
0227 );
0228
0229 Boolean XmuCvtShapeStyleToString
0230 (
0231 Display *dpy,
0232 XrmValue *args,
0233 Cardinal *num_args,
0234 XrmValuePtr fromVal,
0235 XrmValuePtr toVal,
0236 XtPointer *converter_data
0237 );
0238
0239 Boolean XmuReshapeWidget
0240 (
0241 Widget w,
0242 int shape_style,
0243 int corner_width,
0244 int corner_height
0245 );
0246
0247 void XmuCvtStringToWidget
0248 (
0249 XrmValue *args,
0250 Cardinal *num_args,
0251 XrmValuePtr fromVal,
0252 XrmValuePtr toVal
0253 );
0254
0255 Boolean XmuNewCvtStringToWidget
0256 (
0257 Display *display,
0258 XrmValue *args,
0259 Cardinal *num_args,
0260 XrmValue *fromVal,
0261 XrmValue *toVal,
0262 XtPointer *converter_data
0263 );
0264
0265 Boolean XmuCvtWidgetToString
0266 (
0267 Display *dpy,
0268 XrmValue *args,
0269 Cardinal *num_args,
0270 XrmValue *fromVal,
0271 XrmValue *toVal,
0272 XtPointer *converter_data
0273 );
0274
0275 _XFUNCPROTOEND
0276
0277 #endif