00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef INC_MI32_XEWBASIC_H
00017 #define INC_MI32_XEWBASIC_H
00018
00019 #include <X11/Xlib.h>
00020 #include <X11/Intrinsic.h>
00021 #include <X11/StringDefs.h>
00022 #include <X11/Xmu/Converters.h>
00023
00024
00025 #ifndef _XFUNCPROTOBEGIN
00026 # define _XFUNCPROTOBEGIN
00027 # define _XFUNCPROTOEND
00028 #endif
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069 typedef enum {
00070 XeContentFormat_UNKNOWN,
00071 XeContentFormat_ISO2022,
00072 XeContentFormat_TIFF,
00073 XeContentFormat_JPEG,
00074 XeContentFormat_GIF,
00075 XeContentFormat_CGM,
00076 XeContentFormat_H261,
00077 XeContentFormat_AUDIO,
00078 XeContentFormat_ODIF,
00079 XeContentFormat_MPEG,
00080
00081 XeContentFormat_RLE,
00082
00083 XeContentFormat_PBM
00084 } XeContentFormat;
00085
00086 typedef enum {
00087 XeScaling_NONE,
00088 XeScaling_WIDTH,
00089 XeScaling_HEIGHT,
00090 XeScaling_MAXASPECT,
00091 XeScaling_FITAREA
00092 } XeScaling;
00093
00094 typedef enum {
00095 XeColormapUse_SHARED,
00096 XeColormapUse_SHAREDOWN,
00097 XeColormapUse_OPTIONAL,
00098 XeColormapUse_PRIVATE
00099 } XeColormapUse;
00100
00101 typedef enum
00102 {
00103 XeColorMode_NONE,
00104 XeColorMode_MONO,
00105 XeColorMode_GRAY,
00106 XeColorMode_COLOR
00107 } XeColorMode;
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117 typedef enum {
00118 XeDither_NONE,
00119 XeDither_FS4
00120 } XeDither;
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131 typedef enum {
00132 XeColorQuantize_FAST,
00133 XeColorQuantize_HECKBERT,
00134 XeColorQuantize_PPMQUANT,
00135 XeColorQuantize_JPEG
00136 } XeColorQuantize;
00137
00138
00139
00140
00141 typedef enum {
00142 XeCR_UNKNOWN,
00143 XeCR_NOTIFY,
00144 XeCR_NOTIFY_AREA,
00145 XeCR_EXPOSE,
00146 XeCR_MODIFY_TEXT,
00147 XeCR_LAYOUT_CHANGE_TAG,
00148 XeCR_LAYOUT_BEGIN_LINE,
00149 XeCR_ANIMATION_DONE,
00150 XeCR_ANIMATION_FRAME,
00151 XeCR_EXPORT,
00152 XeCR_IMPORT
00153 } XeCR;
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167 typedef struct XeCallbackData {
00168 int reason;
00169 } XeCallbackData;
00170
00171
00172
00173
00174
00175 typedef struct XeNotifyCallbackData {
00176 int reason;
00177 XEvent *event;
00178 String *params;
00179 Cardinal num_params;
00180 } XeNotifyCallbackData;
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191 typedef struct XeNotifyAreaCallbackData {
00192 int reason;
00193 XRectangle area;
00194 XRectangle visible;
00195 } XeNotifyAreaCallbackData;
00196
00197
00198
00199
00200
00201
00202
00203 typedef struct XeExposeCallbackData {
00204 int reason;
00205 XExposeEvent *event;
00206 Region region;
00207 } XeExposeCallbackData;
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218 typedef struct XeExportCallbackData {
00219 int reason;
00220 Time time;
00221 Atom selection;
00222 Atom target;
00223 Atom type;
00224 XtPointer value;
00225 unsigned int length;
00226 int format;
00227 } XeExportCallbackData;
00228
00229
00230
00231
00232
00233
00234
00235
00236 typedef struct XeImportCallbackData {
00237 int reason;
00238 Atom selection;
00239 Atom type;
00240 XtPointer value;
00241 unsigned int length;
00242 int format;
00243 } XeImportCallbackData;
00244
00245
00246 #define XtNcolormapUse "colormapUse"
00247 #define XtCColormapUse "ColormapUse"
00248 #define XtRXeColormapUse "XeColormapUse"
00249 #define XtNcolormapInstall "colormapInstall"
00250 #define XtCColormapInstall "ColormapInstall"
00251 #define XtNcolorMode "colorMode"
00252 #define XtCColorMode "ColorMode"
00253 #define XtRXeColorMode "XeColorMode"
00254 #define XtNcolorQuantize "colorQuantize"
00255 #define XtCColorQuantize "ColorQuantize"
00256 #define XtRXeColorQuantize "XeColorQuantize"
00257 #define XtNcursor "cursor"
00258 #define XtNcontentFile "contentFile"
00259 #define XtCContentFile "ContentFile"
00260 #define XtNcontentFilter "contentFilter"
00261 #define XtCContentFilter "ContentFilter"
00262 #define XtNcontentFormat "contentFormat"
00263 #define XtCContentFormat "ContentFormat"
00264 #define XtRXeContentFormat "XeContentFormat"
00265 #define XtNcontentLoaded "contentLoaded"
00266 #define XtCContentLoaded "ContentLoaded"
00267 #define XtNcontentStream "contentStream"
00268 #define XtCContentStream "ContentStream"
00269 #define XtNcontentString "contentString"
00270 #define XtCContentString "contentString"
00271 #define XtNcontentLength "contentLength"
00272 #define XtCContentLength "ContentLength"
00273 #define XtNcontentOffset "contentOffset"
00274 #define XtCContentOffset "ContentOffset"
00275 #define XtNdither "dither"
00276 #define XtCDither "Dither"
00277 #define XtRXeDither "XeDither"
00278 #define XtNexposeCallback "exposeCallback"
00279 #define XtCExposeCallback "ExposeCallback"
00280 #define XtNexportCallback "exportCallback"
00281 #define XtCExportCallback "ExportCallback"
00282 #define XtNimportCallback "importCallback"
00283 #define XtCImportCallback "ImportCallback"
00284 #define XtNmaxColors "maxColors"
00285 #define XtCMaxColors "MaxColors"
00286 #define XtNmirrorImage "mirrorImage"
00287 #define XtCMirrorImage "MirrorImage"
00288 #define XtNnotifyCallback "notifyCallback"
00289 #define XtCNotifyCallback "NotifyCallback"
00290 #define XtNrotation "rotation"
00291 #define XtCRotation "Rotation"
00292 #define XtNscaling "scaling"
00293 #define XtCScaling "scaling"
00294 #define XtRXeScaling "XeScaling"
00295 #define XtRHorizontalValue "HorizontalValue"
00296 #define XtRVerticalValue "VerticalValue"
00297 #define XtNuseShm "useShm"
00298 #define XtCUseShm "UseShm"
00299 #ifndef XtNvisual
00300 #define XtNvisual "visual"
00301 #endif
00302 #ifndef XtCVisual
00303 #define XtCVisual "Visual"
00304 #endif
00305
00306
00307
00308 extern WidgetClass xeBasicWidgetClass;
00309
00310 typedef struct _XeBasicClassRec *XeBasicWidgetClass;
00311 typedef struct _XeBasicRec *XeBasicWidget;
00312
00313
00314
00315 #endif // INC_MI32_XEWBASIC_H