File indexing completed on 2025-01-17 09:56:10
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012 #ifndef _TKDECLS
0013 #define _TKDECLS
0014
0015 #ifdef BUILD_tk
0016 #undef TCL_STORAGE_CLASS
0017 #define TCL_STORAGE_CLASS DLLEXPORT
0018 #endif
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028 #ifdef __cplusplus
0029 extern "C" {
0030 #endif
0031
0032
0033
0034
0035
0036
0037 EXTERN void Tk_MainLoop(void);
0038
0039 EXTERN XColor * Tk_3DBorderColor(Tk_3DBorder border);
0040
0041 EXTERN GC Tk_3DBorderGC(Tk_Window tkwin, Tk_3DBorder border,
0042 int which);
0043
0044 EXTERN void Tk_3DHorizontalBevel(Tk_Window tkwin,
0045 Drawable drawable, Tk_3DBorder border, int x,
0046 int y, int width, int height, int leftIn,
0047 int rightIn, int topBevel, int relief);
0048
0049 EXTERN void Tk_3DVerticalBevel(Tk_Window tkwin,
0050 Drawable drawable, Tk_3DBorder border, int x,
0051 int y, int width, int height, int leftBevel,
0052 int relief);
0053
0054 EXTERN void Tk_AddOption(Tk_Window tkwin, const char *name,
0055 const char *value, int priority);
0056
0057 EXTERN void Tk_BindEvent(Tk_BindingTable bindingTable,
0058 XEvent *eventPtr, Tk_Window tkwin,
0059 int numObjects, ClientData *objectPtr);
0060
0061 EXTERN void Tk_CanvasDrawableCoords(Tk_Canvas canvas, double x,
0062 double y, short *drawableXPtr,
0063 short *drawableYPtr);
0064
0065 EXTERN void Tk_CanvasEventuallyRedraw(Tk_Canvas canvas, int x1,
0066 int y1, int x2, int y2);
0067
0068 EXTERN int Tk_CanvasGetCoord(Tcl_Interp *interp,
0069 Tk_Canvas canvas, const char *str,
0070 double *doublePtr);
0071
0072 EXTERN Tk_CanvasTextInfo * Tk_CanvasGetTextInfo(Tk_Canvas canvas);
0073
0074 EXTERN int Tk_CanvasPsBitmap(Tcl_Interp *interp,
0075 Tk_Canvas canvas, Pixmap bitmap, int x,
0076 int y, int width, int height);
0077
0078 EXTERN int Tk_CanvasPsColor(Tcl_Interp *interp,
0079 Tk_Canvas canvas, XColor *colorPtr);
0080
0081 EXTERN int Tk_CanvasPsFont(Tcl_Interp *interp, Tk_Canvas canvas,
0082 Tk_Font font);
0083
0084 EXTERN void Tk_CanvasPsPath(Tcl_Interp *interp, Tk_Canvas canvas,
0085 double *coordPtr, int numPoints);
0086
0087 EXTERN int Tk_CanvasPsStipple(Tcl_Interp *interp,
0088 Tk_Canvas canvas, Pixmap bitmap);
0089
0090 EXTERN double Tk_CanvasPsY(Tk_Canvas canvas, double y);
0091
0092 EXTERN void Tk_CanvasSetStippleOrigin(Tk_Canvas canvas, GC gc);
0093
0094 EXTERN int Tk_CanvasTagsParseProc(ClientData clientData,
0095 Tcl_Interp *interp, Tk_Window tkwin,
0096 const char *value, char *widgRec, int offset);
0097
0098 EXTERN CONST86 char * Tk_CanvasTagsPrintProc(ClientData clientData,
0099 Tk_Window tkwin, char *widgRec, int offset,
0100 Tcl_FreeProc **freeProcPtr);
0101
0102 EXTERN Tk_Window Tk_CanvasTkwin(Tk_Canvas canvas);
0103
0104 EXTERN void Tk_CanvasWindowCoords(Tk_Canvas canvas, double x,
0105 double y, short *screenXPtr,
0106 short *screenYPtr);
0107
0108 EXTERN void Tk_ChangeWindowAttributes(Tk_Window tkwin,
0109 unsigned long valueMask,
0110 XSetWindowAttributes *attsPtr);
0111
0112 EXTERN int Tk_CharBbox(Tk_TextLayout layout, int index,
0113 int *xPtr, int *yPtr, int *widthPtr,
0114 int *heightPtr);
0115
0116 EXTERN void Tk_ClearSelection(Tk_Window tkwin, Atom selection);
0117
0118 EXTERN int Tk_ClipboardAppend(Tcl_Interp *interp,
0119 Tk_Window tkwin, Atom target, Atom format,
0120 const char *buffer);
0121
0122 EXTERN int Tk_ClipboardClear(Tcl_Interp *interp,
0123 Tk_Window tkwin);
0124
0125 EXTERN int Tk_ConfigureInfo(Tcl_Interp *interp, Tk_Window tkwin,
0126 const Tk_ConfigSpec *specs, char *widgRec,
0127 const char *argvName, int flags);
0128
0129 EXTERN int Tk_ConfigureValue(Tcl_Interp *interp,
0130 Tk_Window tkwin, const Tk_ConfigSpec *specs,
0131 char *widgRec, const char *argvName,
0132 int flags);
0133
0134 EXTERN int Tk_ConfigureWidget(Tcl_Interp *interp,
0135 Tk_Window tkwin, const Tk_ConfigSpec *specs,
0136 int argc, CONST84 char **argv, char *widgRec,
0137 int flags);
0138
0139 EXTERN void Tk_ConfigureWindow(Tk_Window tkwin,
0140 unsigned int valueMask,
0141 XWindowChanges *valuePtr);
0142
0143 EXTERN Tk_TextLayout Tk_ComputeTextLayout(Tk_Font font, const char *str,
0144 int numChars, int wrapLength,
0145 Tk_Justify justify, int flags, int *widthPtr,
0146 int *heightPtr);
0147
0148 EXTERN Tk_Window Tk_CoordsToWindow(int rootX, int rootY,
0149 Tk_Window tkwin);
0150
0151 EXTERN unsigned long Tk_CreateBinding(Tcl_Interp *interp,
0152 Tk_BindingTable bindingTable,
0153 ClientData object, const char *eventStr,
0154 const char *script, int append);
0155
0156 EXTERN Tk_BindingTable Tk_CreateBindingTable(Tcl_Interp *interp);
0157
0158 EXTERN Tk_ErrorHandler Tk_CreateErrorHandler(Display *display, int errNum,
0159 int request, int minorCode,
0160 Tk_ErrorProc *errorProc,
0161 ClientData clientData);
0162
0163 EXTERN void Tk_CreateEventHandler(Tk_Window token,
0164 unsigned long mask, Tk_EventProc *proc,
0165 ClientData clientData);
0166
0167 EXTERN void Tk_CreateGenericHandler(Tk_GenericProc *proc,
0168 ClientData clientData);
0169
0170 EXTERN void Tk_CreateImageType(const Tk_ImageType *typePtr);
0171
0172 EXTERN void Tk_CreateItemType(Tk_ItemType *typePtr);
0173
0174 EXTERN void Tk_CreatePhotoImageFormat(
0175 const Tk_PhotoImageFormat *formatPtr);
0176
0177 EXTERN void Tk_CreateSelHandler(Tk_Window tkwin, Atom selection,
0178 Atom target, Tk_SelectionProc *proc,
0179 ClientData clientData, Atom format);
0180
0181 EXTERN Tk_Window Tk_CreateWindow(Tcl_Interp *interp, Tk_Window parent,
0182 const char *name, const char *screenName);
0183
0184 EXTERN Tk_Window Tk_CreateWindowFromPath(Tcl_Interp *interp,
0185 Tk_Window tkwin, const char *pathName,
0186 const char *screenName);
0187
0188 EXTERN int Tk_DefineBitmap(Tcl_Interp *interp, const char *name,
0189 const void *source, int width, int height);
0190
0191 EXTERN void Tk_DefineCursor(Tk_Window window, Tk_Cursor cursor);
0192
0193 EXTERN void Tk_DeleteAllBindings(Tk_BindingTable bindingTable,
0194 ClientData object);
0195
0196 EXTERN int Tk_DeleteBinding(Tcl_Interp *interp,
0197 Tk_BindingTable bindingTable,
0198 ClientData object, const char *eventStr);
0199
0200 EXTERN void Tk_DeleteBindingTable(Tk_BindingTable bindingTable);
0201
0202 EXTERN void Tk_DeleteErrorHandler(Tk_ErrorHandler handler);
0203
0204 EXTERN void Tk_DeleteEventHandler(Tk_Window token,
0205 unsigned long mask, Tk_EventProc *proc,
0206 ClientData clientData);
0207
0208 EXTERN void Tk_DeleteGenericHandler(Tk_GenericProc *proc,
0209 ClientData clientData);
0210
0211 EXTERN void Tk_DeleteImage(Tcl_Interp *interp, const char *name);
0212
0213 EXTERN void Tk_DeleteSelHandler(Tk_Window tkwin, Atom selection,
0214 Atom target);
0215
0216 EXTERN void Tk_DestroyWindow(Tk_Window tkwin);
0217
0218 EXTERN CONST84_RETURN char * Tk_DisplayName(Tk_Window tkwin);
0219
0220 EXTERN int Tk_DistanceToTextLayout(Tk_TextLayout layout, int x,
0221 int y);
0222
0223 EXTERN void Tk_Draw3DPolygon(Tk_Window tkwin, Drawable drawable,
0224 Tk_3DBorder border, XPoint *pointPtr,
0225 int numPoints, int borderWidth,
0226 int leftRelief);
0227
0228 EXTERN void Tk_Draw3DRectangle(Tk_Window tkwin,
0229 Drawable drawable, Tk_3DBorder border, int x,
0230 int y, int width, int height,
0231 int borderWidth, int relief);
0232
0233 EXTERN void Tk_DrawChars(Display *display, Drawable drawable,
0234 GC gc, Tk_Font tkfont, const char *source,
0235 int numBytes, int x, int y);
0236
0237 EXTERN void Tk_DrawFocusHighlight(Tk_Window tkwin, GC gc,
0238 int width, Drawable drawable);
0239
0240 EXTERN void Tk_DrawTextLayout(Display *display,
0241 Drawable drawable, GC gc,
0242 Tk_TextLayout layout, int x, int y,
0243 int firstChar, int lastChar);
0244
0245 EXTERN void Tk_Fill3DPolygon(Tk_Window tkwin, Drawable drawable,
0246 Tk_3DBorder border, XPoint *pointPtr,
0247 int numPoints, int borderWidth,
0248 int leftRelief);
0249
0250 EXTERN void Tk_Fill3DRectangle(Tk_Window tkwin,
0251 Drawable drawable, Tk_3DBorder border, int x,
0252 int y, int width, int height,
0253 int borderWidth, int relief);
0254
0255 EXTERN Tk_PhotoHandle Tk_FindPhoto(Tcl_Interp *interp,
0256 const char *imageName);
0257
0258 EXTERN Font Tk_FontId(Tk_Font font);
0259
0260 EXTERN void Tk_Free3DBorder(Tk_3DBorder border);
0261
0262 EXTERN void Tk_FreeBitmap(Display *display, Pixmap bitmap);
0263
0264 EXTERN void Tk_FreeColor(XColor *colorPtr);
0265
0266 EXTERN void Tk_FreeColormap(Display *display, Colormap colormap);
0267
0268 EXTERN void Tk_FreeCursor(Display *display, Tk_Cursor cursor);
0269
0270 EXTERN void Tk_FreeFont(Tk_Font f);
0271
0272 EXTERN void Tk_FreeGC(Display *display, GC gc);
0273
0274 EXTERN void Tk_FreeImage(Tk_Image image);
0275
0276 EXTERN void Tk_FreeOptions(const Tk_ConfigSpec *specs,
0277 char *widgRec, Display *display,
0278 int needFlags);
0279
0280 EXTERN void Tk_FreePixmap(Display *display, Pixmap pixmap);
0281
0282 EXTERN void Tk_FreeTextLayout(Tk_TextLayout textLayout);
0283
0284 EXTERN void Tk_FreeXId(Display *display, XID xid);
0285
0286 EXTERN GC Tk_GCForColor(XColor *colorPtr, Drawable drawable);
0287
0288 EXTERN void Tk_GeometryRequest(Tk_Window tkwin, int reqWidth,
0289 int reqHeight);
0290
0291 EXTERN Tk_3DBorder Tk_Get3DBorder(Tcl_Interp *interp, Tk_Window tkwin,
0292 Tk_Uid colorName);
0293
0294 EXTERN void Tk_GetAllBindings(Tcl_Interp *interp,
0295 Tk_BindingTable bindingTable,
0296 ClientData object);
0297
0298 EXTERN int Tk_GetAnchor(Tcl_Interp *interp, const char *str,
0299 Tk_Anchor *anchorPtr);
0300
0301 EXTERN CONST84_RETURN char * Tk_GetAtomName(Tk_Window tkwin, Atom atom);
0302
0303 EXTERN CONST84_RETURN char * Tk_GetBinding(Tcl_Interp *interp,
0304 Tk_BindingTable bindingTable,
0305 ClientData object, const char *eventStr);
0306
0307 EXTERN Pixmap Tk_GetBitmap(Tcl_Interp *interp, Tk_Window tkwin,
0308 const char *str);
0309
0310 EXTERN Pixmap Tk_GetBitmapFromData(Tcl_Interp *interp,
0311 Tk_Window tkwin, const void *source,
0312 int width, int height);
0313
0314 EXTERN int Tk_GetCapStyle(Tcl_Interp *interp, const char *str,
0315 int *capPtr);
0316
0317 EXTERN XColor * Tk_GetColor(Tcl_Interp *interp, Tk_Window tkwin,
0318 Tk_Uid name);
0319
0320 EXTERN XColor * Tk_GetColorByValue(Tk_Window tkwin, XColor *colorPtr);
0321
0322 EXTERN Colormap Tk_GetColormap(Tcl_Interp *interp, Tk_Window tkwin,
0323 const char *str);
0324
0325 EXTERN Tk_Cursor Tk_GetCursor(Tcl_Interp *interp, Tk_Window tkwin,
0326 Tk_Uid str);
0327
0328 EXTERN Tk_Cursor Tk_GetCursorFromData(Tcl_Interp *interp,
0329 Tk_Window tkwin, const char *source,
0330 const char *mask, int width, int height,
0331 int xHot, int yHot, Tk_Uid fg, Tk_Uid bg);
0332
0333 EXTERN Tk_Font Tk_GetFont(Tcl_Interp *interp, Tk_Window tkwin,
0334 const char *str);
0335
0336 EXTERN Tk_Font Tk_GetFontFromObj(Tk_Window tkwin, Tcl_Obj *objPtr);
0337
0338 EXTERN void Tk_GetFontMetrics(Tk_Font font,
0339 Tk_FontMetrics *fmPtr);
0340
0341 EXTERN GC Tk_GetGC(Tk_Window tkwin, unsigned long valueMask,
0342 XGCValues *valuePtr);
0343
0344 EXTERN Tk_Image Tk_GetImage(Tcl_Interp *interp, Tk_Window tkwin,
0345 const char *name,
0346 Tk_ImageChangedProc *changeProc,
0347 ClientData clientData);
0348
0349 EXTERN ClientData Tk_GetImageMasterData(Tcl_Interp *interp,
0350 const char *name,
0351 CONST86 Tk_ImageType **typePtrPtr);
0352
0353 EXTERN Tk_ItemType * Tk_GetItemTypes(void);
0354
0355 EXTERN int Tk_GetJoinStyle(Tcl_Interp *interp, const char *str,
0356 int *joinPtr);
0357
0358 EXTERN int Tk_GetJustify(Tcl_Interp *interp, const char *str,
0359 Tk_Justify *justifyPtr);
0360
0361 EXTERN int Tk_GetNumMainWindows(void);
0362
0363 EXTERN Tk_Uid Tk_GetOption(Tk_Window tkwin, const char *name,
0364 const char *className);
0365
0366 EXTERN int Tk_GetPixels(Tcl_Interp *interp, Tk_Window tkwin,
0367 const char *str, int *intPtr);
0368
0369 EXTERN Pixmap Tk_GetPixmap(Display *display, Drawable d, int width,
0370 int height, int depth);
0371
0372 EXTERN int Tk_GetRelief(Tcl_Interp *interp, const char *name,
0373 int *reliefPtr);
0374
0375 EXTERN void Tk_GetRootCoords(Tk_Window tkwin, int *xPtr,
0376 int *yPtr);
0377
0378 EXTERN int Tk_GetScrollInfo(Tcl_Interp *interp, int argc,
0379 CONST84 char **argv, double *dblPtr,
0380 int *intPtr);
0381
0382 EXTERN int Tk_GetScreenMM(Tcl_Interp *interp, Tk_Window tkwin,
0383 const char *str, double *doublePtr);
0384
0385 EXTERN int Tk_GetSelection(Tcl_Interp *interp, Tk_Window tkwin,
0386 Atom selection, Atom target,
0387 Tk_GetSelProc *proc, ClientData clientData);
0388
0389 EXTERN Tk_Uid Tk_GetUid(const char *str);
0390
0391 EXTERN Visual * Tk_GetVisual(Tcl_Interp *interp, Tk_Window tkwin,
0392 const char *str, int *depthPtr,
0393 Colormap *colormapPtr);
0394
0395 EXTERN void Tk_GetVRootGeometry(Tk_Window tkwin, int *xPtr,
0396 int *yPtr, int *widthPtr, int *heightPtr);
0397
0398 EXTERN int Tk_Grab(Tcl_Interp *interp, Tk_Window tkwin,
0399 int grabGlobal);
0400
0401 EXTERN void Tk_HandleEvent(XEvent *eventPtr);
0402
0403 EXTERN Tk_Window Tk_IdToWindow(Display *display, Window window);
0404
0405 EXTERN void Tk_ImageChanged(Tk_ImageMaster model, int x, int y,
0406 int width, int height, int imageWidth,
0407 int imageHeight);
0408
0409 EXTERN int Tk_Init(Tcl_Interp *interp);
0410
0411 EXTERN Atom Tk_InternAtom(Tk_Window tkwin, const char *name);
0412
0413 EXTERN int Tk_IntersectTextLayout(Tk_TextLayout layout, int x,
0414 int y, int width, int height);
0415
0416 EXTERN void Tk_MaintainGeometry(Tk_Window window,
0417 Tk_Window container, int x, int y, int width,
0418 int height);
0419
0420 EXTERN Tk_Window Tk_MainWindow(Tcl_Interp *interp);
0421
0422 EXTERN void Tk_MakeWindowExist(Tk_Window tkwin);
0423
0424 EXTERN void Tk_ManageGeometry(Tk_Window tkwin,
0425 const Tk_GeomMgr *mgrPtr,
0426 ClientData clientData);
0427
0428 EXTERN void Tk_MapWindow(Tk_Window tkwin);
0429
0430 EXTERN int Tk_MeasureChars(Tk_Font tkfont, const char *source,
0431 int numBytes, int maxPixels, int flags,
0432 int *lengthPtr);
0433
0434 EXTERN void Tk_MoveResizeWindow(Tk_Window tkwin, int x, int y,
0435 int width, int height);
0436
0437 EXTERN void Tk_MoveWindow(Tk_Window tkwin, int x, int y);
0438
0439 EXTERN void Tk_MoveToplevelWindow(Tk_Window tkwin, int x, int y);
0440
0441 EXTERN CONST84_RETURN char * Tk_NameOf3DBorder(Tk_3DBorder border);
0442
0443 EXTERN CONST84_RETURN char * Tk_NameOfAnchor(Tk_Anchor anchor);
0444
0445 EXTERN CONST84_RETURN char * Tk_NameOfBitmap(Display *display, Pixmap bitmap);
0446
0447 EXTERN CONST84_RETURN char * Tk_NameOfCapStyle(int cap);
0448
0449 EXTERN CONST84_RETURN char * Tk_NameOfColor(XColor *colorPtr);
0450
0451 EXTERN CONST84_RETURN char * Tk_NameOfCursor(Display *display,
0452 Tk_Cursor cursor);
0453
0454 EXTERN CONST84_RETURN char * Tk_NameOfFont(Tk_Font font);
0455
0456 EXTERN CONST84_RETURN char * Tk_NameOfImage(Tk_ImageMaster model);
0457
0458 EXTERN CONST84_RETURN char * Tk_NameOfJoinStyle(int join);
0459
0460 EXTERN CONST84_RETURN char * Tk_NameOfJustify(Tk_Justify justify);
0461
0462 EXTERN CONST84_RETURN char * Tk_NameOfRelief(int relief);
0463
0464 EXTERN Tk_Window Tk_NameToWindow(Tcl_Interp *interp,
0465 const char *pathName, Tk_Window tkwin);
0466
0467 EXTERN void Tk_OwnSelection(Tk_Window tkwin, Atom selection,
0468 Tk_LostSelProc *proc, ClientData clientData);
0469
0470 EXTERN int Tk_ParseArgv(Tcl_Interp *interp, Tk_Window tkwin,
0471 int *argcPtr, CONST84 char **argv,
0472 const Tk_ArgvInfo *argTable, int flags);
0473
0474 EXTERN void Tk_PhotoPutBlock_NoComposite(Tk_PhotoHandle handle,
0475 Tk_PhotoImageBlock *blockPtr, int x, int y,
0476 int width, int height);
0477
0478 EXTERN void Tk_PhotoPutZoomedBlock_NoComposite(
0479 Tk_PhotoHandle handle,
0480 Tk_PhotoImageBlock *blockPtr, int x, int y,
0481 int width, int height, int zoomX, int zoomY,
0482 int subsampleX, int subsampleY);
0483
0484 EXTERN int Tk_PhotoGetImage(Tk_PhotoHandle handle,
0485 Tk_PhotoImageBlock *blockPtr);
0486
0487 EXTERN void Tk_PhotoBlank(Tk_PhotoHandle handle);
0488
0489 EXTERN void Tk_PhotoExpand_Panic(Tk_PhotoHandle handle,
0490 int width, int height);
0491
0492 EXTERN void Tk_PhotoGetSize(Tk_PhotoHandle handle, int *widthPtr,
0493 int *heightPtr);
0494
0495 EXTERN void Tk_PhotoSetSize_Panic(Tk_PhotoHandle handle,
0496 int width, int height);
0497
0498 EXTERN int Tk_PointToChar(Tk_TextLayout layout, int x, int y);
0499
0500 EXTERN int Tk_PostscriptFontName(Tk_Font tkfont,
0501 Tcl_DString *dsPtr);
0502
0503 EXTERN void Tk_PreserveColormap(Display *display,
0504 Colormap colormap);
0505
0506 EXTERN void Tk_QueueWindowEvent(XEvent *eventPtr,
0507 Tcl_QueuePosition position);
0508
0509 EXTERN void Tk_RedrawImage(Tk_Image image, int imageX,
0510 int imageY, int width, int height,
0511 Drawable drawable, int drawableX,
0512 int drawableY);
0513
0514 EXTERN void Tk_ResizeWindow(Tk_Window tkwin, int width,
0515 int height);
0516
0517 EXTERN int Tk_RestackWindow(Tk_Window tkwin, int aboveBelow,
0518 Tk_Window other);
0519
0520 EXTERN Tk_RestrictProc * Tk_RestrictEvents(Tk_RestrictProc *proc,
0521 ClientData arg, ClientData *prevArgPtr);
0522
0523 EXTERN int Tk_SafeInit(Tcl_Interp *interp);
0524
0525 EXTERN const char * Tk_SetAppName(Tk_Window tkwin, const char *name);
0526
0527 EXTERN void Tk_SetBackgroundFromBorder(Tk_Window tkwin,
0528 Tk_3DBorder border);
0529
0530 EXTERN void Tk_SetClass(Tk_Window tkwin, const char *className);
0531
0532 EXTERN void Tk_SetGrid(Tk_Window tkwin, int reqWidth,
0533 int reqHeight, int gridWidth, int gridHeight);
0534
0535 EXTERN void Tk_SetInternalBorder(Tk_Window tkwin, int width);
0536
0537 EXTERN void Tk_SetWindowBackground(Tk_Window tkwin,
0538 unsigned long pixel);
0539
0540 EXTERN void Tk_SetWindowBackgroundPixmap(Tk_Window tkwin,
0541 Pixmap pixmap);
0542
0543 EXTERN void Tk_SetWindowBorder(Tk_Window tkwin,
0544 unsigned long pixel);
0545
0546 EXTERN void Tk_SetWindowBorderWidth(Tk_Window tkwin, int width);
0547
0548 EXTERN void Tk_SetWindowBorderPixmap(Tk_Window tkwin,
0549 Pixmap pixmap);
0550
0551 EXTERN void Tk_SetWindowColormap(Tk_Window tkwin,
0552 Colormap colormap);
0553
0554 EXTERN int Tk_SetWindowVisual(Tk_Window tkwin, Visual *visual,
0555 int depth, Colormap colormap);
0556
0557 EXTERN void Tk_SizeOfBitmap(Display *display, Pixmap bitmap,
0558 int *widthPtr, int *heightPtr);
0559
0560 EXTERN void Tk_SizeOfImage(Tk_Image image, int *widthPtr,
0561 int *heightPtr);
0562
0563 EXTERN int Tk_StrictMotif(Tk_Window tkwin);
0564
0565 EXTERN void Tk_TextLayoutToPostscript(Tcl_Interp *interp,
0566 Tk_TextLayout layout);
0567
0568 EXTERN int Tk_TextWidth(Tk_Font font, const char *str,
0569 int numBytes);
0570
0571 EXTERN void Tk_UndefineCursor(Tk_Window window);
0572
0573 EXTERN void Tk_UnderlineChars(Display *display,
0574 Drawable drawable, GC gc, Tk_Font tkfont,
0575 const char *source, int x, int y,
0576 int firstByte, int lastByte);
0577
0578 EXTERN void Tk_UnderlineTextLayout(Display *display,
0579 Drawable drawable, GC gc,
0580 Tk_TextLayout layout, int x, int y,
0581 int underline);
0582
0583 EXTERN void Tk_Ungrab(Tk_Window tkwin);
0584
0585 EXTERN void Tk_UnmaintainGeometry(Tk_Window window,
0586 Tk_Window container);
0587
0588 EXTERN void Tk_UnmapWindow(Tk_Window tkwin);
0589
0590 EXTERN void Tk_UnsetGrid(Tk_Window tkwin);
0591
0592 EXTERN void Tk_UpdatePointer(Tk_Window tkwin, int x, int y,
0593 int state);
0594
0595 EXTERN Pixmap Tk_AllocBitmapFromObj(Tcl_Interp *interp,
0596 Tk_Window tkwin, Tcl_Obj *objPtr);
0597
0598 EXTERN Tk_3DBorder Tk_Alloc3DBorderFromObj(Tcl_Interp *interp,
0599 Tk_Window tkwin, Tcl_Obj *objPtr);
0600
0601 EXTERN XColor * Tk_AllocColorFromObj(Tcl_Interp *interp,
0602 Tk_Window tkwin, Tcl_Obj *objPtr);
0603
0604 EXTERN Tk_Cursor Tk_AllocCursorFromObj(Tcl_Interp *interp,
0605 Tk_Window tkwin, Tcl_Obj *objPtr);
0606
0607 EXTERN Tk_Font Tk_AllocFontFromObj(Tcl_Interp *interp,
0608 Tk_Window tkwin, Tcl_Obj *objPtr);
0609
0610 EXTERN Tk_OptionTable Tk_CreateOptionTable(Tcl_Interp *interp,
0611 const Tk_OptionSpec *templatePtr);
0612
0613 EXTERN void Tk_DeleteOptionTable(Tk_OptionTable optionTable);
0614
0615 EXTERN void Tk_Free3DBorderFromObj(Tk_Window tkwin,
0616 Tcl_Obj *objPtr);
0617
0618 EXTERN void Tk_FreeBitmapFromObj(Tk_Window tkwin,
0619 Tcl_Obj *objPtr);
0620
0621 EXTERN void Tk_FreeColorFromObj(Tk_Window tkwin, Tcl_Obj *objPtr);
0622
0623 EXTERN void Tk_FreeConfigOptions(char *recordPtr,
0624 Tk_OptionTable optionToken, Tk_Window tkwin);
0625
0626 EXTERN void Tk_FreeSavedOptions(Tk_SavedOptions *savePtr);
0627
0628 EXTERN void Tk_FreeCursorFromObj(Tk_Window tkwin,
0629 Tcl_Obj *objPtr);
0630
0631 EXTERN void Tk_FreeFontFromObj(Tk_Window tkwin, Tcl_Obj *objPtr);
0632
0633 EXTERN Tk_3DBorder Tk_Get3DBorderFromObj(Tk_Window tkwin,
0634 Tcl_Obj *objPtr);
0635
0636 EXTERN int Tk_GetAnchorFromObj(Tcl_Interp *interp,
0637 Tcl_Obj *objPtr, Tk_Anchor *anchorPtr);
0638
0639 EXTERN Pixmap Tk_GetBitmapFromObj(Tk_Window tkwin, Tcl_Obj *objPtr);
0640
0641 EXTERN XColor * Tk_GetColorFromObj(Tk_Window tkwin, Tcl_Obj *objPtr);
0642
0643 EXTERN Tk_Cursor Tk_GetCursorFromObj(Tk_Window tkwin, Tcl_Obj *objPtr);
0644
0645 EXTERN Tcl_Obj * Tk_GetOptionInfo(Tcl_Interp *interp, char *recordPtr,
0646 Tk_OptionTable optionTable, Tcl_Obj *namePtr,
0647 Tk_Window tkwin);
0648
0649 EXTERN Tcl_Obj * Tk_GetOptionValue(Tcl_Interp *interp,
0650 char *recordPtr, Tk_OptionTable optionTable,
0651 Tcl_Obj *namePtr, Tk_Window tkwin);
0652
0653 EXTERN int Tk_GetJustifyFromObj(Tcl_Interp *interp,
0654 Tcl_Obj *objPtr, Tk_Justify *justifyPtr);
0655
0656 EXTERN int Tk_GetMMFromObj(Tcl_Interp *interp, Tk_Window tkwin,
0657 Tcl_Obj *objPtr, double *doublePtr);
0658
0659 EXTERN int Tk_GetPixelsFromObj(Tcl_Interp *interp,
0660 Tk_Window tkwin, Tcl_Obj *objPtr,
0661 int *intPtr);
0662
0663 EXTERN int Tk_GetReliefFromObj(Tcl_Interp *interp,
0664 Tcl_Obj *objPtr, int *resultPtr);
0665
0666 EXTERN int Tk_GetScrollInfoObj(Tcl_Interp *interp, int objc,
0667 Tcl_Obj *const objv[], double *dblPtr,
0668 int *intPtr);
0669
0670 EXTERN int Tk_InitOptions(Tcl_Interp *interp, char *recordPtr,
0671 Tk_OptionTable optionToken, Tk_Window tkwin);
0672
0673 EXTERN void Tk_MainEx(int argc, char **argv,
0674 Tcl_AppInitProc *appInitProc,
0675 Tcl_Interp *interp);
0676
0677 EXTERN void Tk_RestoreSavedOptions(Tk_SavedOptions *savePtr);
0678
0679 EXTERN int Tk_SetOptions(Tcl_Interp *interp, char *recordPtr,
0680 Tk_OptionTable optionTable, int objc,
0681 Tcl_Obj *const objv[], Tk_Window tkwin,
0682 Tk_SavedOptions *savePtr, int *maskPtr);
0683
0684 EXTERN void Tk_InitConsoleChannels(Tcl_Interp *interp);
0685
0686 EXTERN int Tk_CreateConsoleWindow(Tcl_Interp *interp);
0687
0688 EXTERN void Tk_CreateSmoothMethod(Tcl_Interp *interp,
0689 const Tk_SmoothMethod *method);
0690
0691
0692
0693 EXTERN int Tk_GetDash(Tcl_Interp *interp, const char *value,
0694 Tk_Dash *dash);
0695
0696 EXTERN void Tk_CreateOutline(Tk_Outline *outline);
0697
0698 EXTERN void Tk_DeleteOutline(Display *display,
0699 Tk_Outline *outline);
0700
0701 EXTERN int Tk_ConfigOutlineGC(XGCValues *gcValues,
0702 Tk_Canvas canvas, Tk_Item *item,
0703 Tk_Outline *outline);
0704
0705 EXTERN int Tk_ChangeOutlineGC(Tk_Canvas canvas, Tk_Item *item,
0706 Tk_Outline *outline);
0707
0708 EXTERN int Tk_ResetOutlineGC(Tk_Canvas canvas, Tk_Item *item,
0709 Tk_Outline *outline);
0710
0711 EXTERN int Tk_CanvasPsOutline(Tk_Canvas canvas, Tk_Item *item,
0712 Tk_Outline *outline);
0713
0714 EXTERN void Tk_SetTSOrigin(Tk_Window tkwin, GC gc, int x, int y);
0715
0716 EXTERN int Tk_CanvasGetCoordFromObj(Tcl_Interp *interp,
0717 Tk_Canvas canvas, Tcl_Obj *obj,
0718 double *doublePtr);
0719
0720 EXTERN void Tk_CanvasSetOffset(Tk_Canvas canvas, GC gc,
0721 Tk_TSOffset *offset);
0722
0723 EXTERN void Tk_DitherPhoto(Tk_PhotoHandle handle, int x, int y,
0724 int width, int height);
0725
0726 EXTERN int Tk_PostscriptBitmap(Tcl_Interp *interp,
0727 Tk_Window tkwin, Tk_PostscriptInfo psInfo,
0728 Pixmap bitmap, int startX, int startY,
0729 int width, int height);
0730
0731 EXTERN int Tk_PostscriptColor(Tcl_Interp *interp,
0732 Tk_PostscriptInfo psInfo, XColor *colorPtr);
0733
0734 EXTERN int Tk_PostscriptFont(Tcl_Interp *interp,
0735 Tk_PostscriptInfo psInfo, Tk_Font font);
0736
0737 EXTERN int Tk_PostscriptImage(Tk_Image image,
0738 Tcl_Interp *interp, Tk_Window tkwin,
0739 Tk_PostscriptInfo psinfo, int x, int y,
0740 int width, int height, int prepass);
0741
0742 EXTERN void Tk_PostscriptPath(Tcl_Interp *interp,
0743 Tk_PostscriptInfo psInfo, double *coordPtr,
0744 int numPoints);
0745
0746 EXTERN int Tk_PostscriptStipple(Tcl_Interp *interp,
0747 Tk_Window tkwin, Tk_PostscriptInfo psInfo,
0748 Pixmap bitmap);
0749
0750 EXTERN double Tk_PostscriptY(double y, Tk_PostscriptInfo psInfo);
0751
0752 EXTERN int Tk_PostscriptPhoto(Tcl_Interp *interp,
0753 Tk_PhotoImageBlock *blockPtr,
0754 Tk_PostscriptInfo psInfo, int width,
0755 int height);
0756
0757 EXTERN void Tk_CreateClientMessageHandler(
0758 Tk_ClientMessageProc *proc);
0759
0760 EXTERN void Tk_DeleteClientMessageHandler(
0761 Tk_ClientMessageProc *proc);
0762
0763 EXTERN Tk_Window Tk_CreateAnonymousWindow(Tcl_Interp *interp,
0764 Tk_Window parent, const char *screenName);
0765
0766 EXTERN void Tk_SetClassProcs(Tk_Window tkwin,
0767 const Tk_ClassProcs *procs,
0768 ClientData instanceData);
0769
0770 EXTERN void Tk_SetInternalBorderEx(Tk_Window tkwin, int left,
0771 int right, int top, int bottom);
0772
0773 EXTERN void Tk_SetMinimumRequestSize(Tk_Window tkwin,
0774 int minWidth, int minHeight);
0775
0776 EXTERN void Tk_SetCaretPos(Tk_Window tkwin, int x, int y,
0777 int height);
0778
0779 EXTERN void Tk_PhotoPutBlock_Panic(Tk_PhotoHandle handle,
0780 Tk_PhotoImageBlock *blockPtr, int x, int y,
0781 int width, int height, int compRule);
0782
0783 EXTERN void Tk_PhotoPutZoomedBlock_Panic(Tk_PhotoHandle handle,
0784 Tk_PhotoImageBlock *blockPtr, int x, int y,
0785 int width, int height, int zoomX, int zoomY,
0786 int subsampleX, int subsampleY, int compRule);
0787
0788 EXTERN int Tk_CollapseMotionEvents(Display *display,
0789 int collapse);
0790
0791 EXTERN Tk_StyleEngine Tk_RegisterStyleEngine(const char *name,
0792 Tk_StyleEngine parent);
0793
0794 EXTERN Tk_StyleEngine Tk_GetStyleEngine(const char *name);
0795
0796 EXTERN int Tk_RegisterStyledElement(Tk_StyleEngine engine,
0797 Tk_ElementSpec *templatePtr);
0798
0799 EXTERN int Tk_GetElementId(const char *name);
0800
0801 EXTERN Tk_Style Tk_CreateStyle(const char *name,
0802 Tk_StyleEngine engine, ClientData clientData);
0803
0804 EXTERN Tk_Style Tk_GetStyle(Tcl_Interp *interp, const char *name);
0805
0806 EXTERN void Tk_FreeStyle(Tk_Style style);
0807
0808 EXTERN const char * Tk_NameOfStyle(Tk_Style style);
0809
0810 EXTERN Tk_Style Tk_AllocStyleFromObj(Tcl_Interp *interp,
0811 Tcl_Obj *objPtr);
0812
0813 EXTERN Tk_Style Tk_GetStyleFromObj(Tcl_Obj *objPtr);
0814
0815 EXTERN void Tk_FreeStyleFromObj(Tcl_Obj *objPtr);
0816
0817 EXTERN Tk_StyledElement Tk_GetStyledElement(Tk_Style style, int elementId,
0818 Tk_OptionTable optionTable);
0819
0820 EXTERN void Tk_GetElementSize(Tk_Style style,
0821 Tk_StyledElement element, char *recordPtr,
0822 Tk_Window tkwin, int width, int height,
0823 int inner, int *widthPtr, int *heightPtr);
0824
0825 EXTERN void Tk_GetElementBox(Tk_Style style,
0826 Tk_StyledElement element, char *recordPtr,
0827 Tk_Window tkwin, int x, int y, int width,
0828 int height, int inner, int *xPtr, int *yPtr,
0829 int *widthPtr, int *heightPtr);
0830
0831 EXTERN int Tk_GetElementBorderWidth(Tk_Style style,
0832 Tk_StyledElement element, char *recordPtr,
0833 Tk_Window tkwin);
0834
0835 EXTERN void Tk_DrawElement(Tk_Style style,
0836 Tk_StyledElement element, char *recordPtr,
0837 Tk_Window tkwin, Drawable d, int x, int y,
0838 int width, int height, int state);
0839
0840 EXTERN int Tk_PhotoExpand(Tcl_Interp *interp,
0841 Tk_PhotoHandle handle, int width, int height);
0842
0843 EXTERN int Tk_PhotoPutBlock(Tcl_Interp *interp,
0844 Tk_PhotoHandle handle,
0845 Tk_PhotoImageBlock *blockPtr, int x, int y,
0846 int width, int height, int compRule);
0847
0848 EXTERN int Tk_PhotoPutZoomedBlock(Tcl_Interp *interp,
0849 Tk_PhotoHandle handle,
0850 Tk_PhotoImageBlock *blockPtr, int x, int y,
0851 int width, int height, int zoomX, int zoomY,
0852 int subsampleX, int subsampleY, int compRule);
0853
0854 EXTERN int Tk_PhotoSetSize(Tcl_Interp *interp,
0855 Tk_PhotoHandle handle, int width, int height);
0856
0857 EXTERN long Tk_GetUserInactiveTime(Display *dpy);
0858
0859 EXTERN void Tk_ResetUserInactiveTime(Display *dpy);
0860
0861 EXTERN Tcl_Interp * Tk_Interp(Tk_Window tkwin);
0862
0863 EXTERN void Tk_CreateOldImageType(const Tk_ImageType *typePtr);
0864
0865 EXTERN void Tk_CreateOldPhotoImageFormat(
0866 const Tk_PhotoImageFormat *formatPtr);
0867
0868
0869
0870
0871
0872
0873
0874 EXTERN void TkUnusedStubEntry(void);
0875
0876 typedef struct {
0877 const struct TkPlatStubs *tkPlatStubs;
0878 const struct TkIntStubs *tkIntStubs;
0879 const struct TkIntPlatStubs *tkIntPlatStubs;
0880 const struct TkIntXlibStubs *tkIntXlibStubs;
0881 } TkStubHooks;
0882
0883 typedef struct TkStubs {
0884 int magic;
0885 const TkStubHooks *hooks;
0886
0887 void (*tk_MainLoop) (void);
0888 XColor * (*tk_3DBorderColor) (Tk_3DBorder border);
0889 GC (*tk_3DBorderGC) (Tk_Window tkwin, Tk_3DBorder border, int which);
0890 void (*tk_3DHorizontalBevel) (Tk_Window tkwin, Drawable drawable, Tk_3DBorder border, int x, int y, int width, int height, int leftIn, int rightIn, int topBevel, int relief);
0891 void (*tk_3DVerticalBevel) (Tk_Window tkwin, Drawable drawable, Tk_3DBorder border, int x, int y, int width, int height, int leftBevel, int relief);
0892 void (*tk_AddOption) (Tk_Window tkwin, const char *name, const char *value, int priority);
0893 void (*tk_BindEvent) (Tk_BindingTable bindingTable, XEvent *eventPtr, Tk_Window tkwin, int numObjects, ClientData *objectPtr);
0894 void (*tk_CanvasDrawableCoords) (Tk_Canvas canvas, double x, double y, short *drawableXPtr, short *drawableYPtr);
0895 void (*tk_CanvasEventuallyRedraw) (Tk_Canvas canvas, int x1, int y1, int x2, int y2);
0896 int (*tk_CanvasGetCoord) (Tcl_Interp *interp, Tk_Canvas canvas, const char *str, double *doublePtr);
0897 Tk_CanvasTextInfo * (*tk_CanvasGetTextInfo) (Tk_Canvas canvas);
0898 int (*tk_CanvasPsBitmap) (Tcl_Interp *interp, Tk_Canvas canvas, Pixmap bitmap, int x, int y, int width, int height);
0899 int (*tk_CanvasPsColor) (Tcl_Interp *interp, Tk_Canvas canvas, XColor *colorPtr);
0900 int (*tk_CanvasPsFont) (Tcl_Interp *interp, Tk_Canvas canvas, Tk_Font font);
0901 void (*tk_CanvasPsPath) (Tcl_Interp *interp, Tk_Canvas canvas, double *coordPtr, int numPoints);
0902 int (*tk_CanvasPsStipple) (Tcl_Interp *interp, Tk_Canvas canvas, Pixmap bitmap);
0903 double (*tk_CanvasPsY) (Tk_Canvas canvas, double y);
0904 void (*tk_CanvasSetStippleOrigin) (Tk_Canvas canvas, GC gc);
0905 int (*tk_CanvasTagsParseProc) (ClientData clientData, Tcl_Interp *interp, Tk_Window tkwin, const char *value, char *widgRec, int offset);
0906 CONST86 char * (*tk_CanvasTagsPrintProc) (ClientData clientData, Tk_Window tkwin, char *widgRec, int offset, Tcl_FreeProc **freeProcPtr);
0907 Tk_Window (*tk_CanvasTkwin) (Tk_Canvas canvas);
0908 void (*tk_CanvasWindowCoords) (Tk_Canvas canvas, double x, double y, short *screenXPtr, short *screenYPtr);
0909 void (*tk_ChangeWindowAttributes) (Tk_Window tkwin, unsigned long valueMask, XSetWindowAttributes *attsPtr);
0910 int (*tk_CharBbox) (Tk_TextLayout layout, int index, int *xPtr, int *yPtr, int *widthPtr, int *heightPtr);
0911 void (*tk_ClearSelection) (Tk_Window tkwin, Atom selection);
0912 int (*tk_ClipboardAppend) (Tcl_Interp *interp, Tk_Window tkwin, Atom target, Atom format, const char *buffer);
0913 int (*tk_ClipboardClear) (Tcl_Interp *interp, Tk_Window tkwin);
0914 int (*tk_ConfigureInfo) (Tcl_Interp *interp, Tk_Window tkwin, const Tk_ConfigSpec *specs, char *widgRec, const char *argvName, int flags);
0915 int (*tk_ConfigureValue) (Tcl_Interp *interp, Tk_Window tkwin, const Tk_ConfigSpec *specs, char *widgRec, const char *argvName, int flags);
0916 int (*tk_ConfigureWidget) (Tcl_Interp *interp, Tk_Window tkwin, const Tk_ConfigSpec *specs, int argc, CONST84 char **argv, char *widgRec, int flags);
0917 void (*tk_ConfigureWindow) (Tk_Window tkwin, unsigned int valueMask, XWindowChanges *valuePtr);
0918 Tk_TextLayout (*tk_ComputeTextLayout) (Tk_Font font, const char *str, int numChars, int wrapLength, Tk_Justify justify, int flags, int *widthPtr, int *heightPtr);
0919 Tk_Window (*tk_CoordsToWindow) (int rootX, int rootY, Tk_Window tkwin);
0920 unsigned long (*tk_CreateBinding) (Tcl_Interp *interp, Tk_BindingTable bindingTable, ClientData object, const char *eventStr, const char *script, int append);
0921 Tk_BindingTable (*tk_CreateBindingTable) (Tcl_Interp *interp);
0922 Tk_ErrorHandler (*tk_CreateErrorHandler) (Display *display, int errNum, int request, int minorCode, Tk_ErrorProc *errorProc, ClientData clientData);
0923 void (*tk_CreateEventHandler) (Tk_Window token, unsigned long mask, Tk_EventProc *proc, ClientData clientData);
0924 void (*tk_CreateGenericHandler) (Tk_GenericProc *proc, ClientData clientData);
0925 void (*tk_CreateImageType) (const Tk_ImageType *typePtr);
0926 void (*tk_CreateItemType) (Tk_ItemType *typePtr);
0927 void (*tk_CreatePhotoImageFormat) (const Tk_PhotoImageFormat *formatPtr);
0928 void (*tk_CreateSelHandler) (Tk_Window tkwin, Atom selection, Atom target, Tk_SelectionProc *proc, ClientData clientData, Atom format);
0929 Tk_Window (*tk_CreateWindow) (Tcl_Interp *interp, Tk_Window parent, const char *name, const char *screenName);
0930 Tk_Window (*tk_CreateWindowFromPath) (Tcl_Interp *interp, Tk_Window tkwin, const char *pathName, const char *screenName);
0931 int (*tk_DefineBitmap) (Tcl_Interp *interp, const char *name, const void *source, int width, int height);
0932 void (*tk_DefineCursor) (Tk_Window window, Tk_Cursor cursor);
0933 void (*tk_DeleteAllBindings) (Tk_BindingTable bindingTable, ClientData object);
0934 int (*tk_DeleteBinding) (Tcl_Interp *interp, Tk_BindingTable bindingTable, ClientData object, const char *eventStr);
0935 void (*tk_DeleteBindingTable) (Tk_BindingTable bindingTable);
0936 void (*tk_DeleteErrorHandler) (Tk_ErrorHandler handler);
0937 void (*tk_DeleteEventHandler) (Tk_Window token, unsigned long mask, Tk_EventProc *proc, ClientData clientData);
0938 void (*tk_DeleteGenericHandler) (Tk_GenericProc *proc, ClientData clientData);
0939 void (*tk_DeleteImage) (Tcl_Interp *interp, const char *name);
0940 void (*tk_DeleteSelHandler) (Tk_Window tkwin, Atom selection, Atom target);
0941 void (*tk_DestroyWindow) (Tk_Window tkwin);
0942 CONST84_RETURN char * (*tk_DisplayName) (Tk_Window tkwin);
0943 int (*tk_DistanceToTextLayout) (Tk_TextLayout layout, int x, int y);
0944 void (*tk_Draw3DPolygon) (Tk_Window tkwin, Drawable drawable, Tk_3DBorder border, XPoint *pointPtr, int numPoints, int borderWidth, int leftRelief);
0945 void (*tk_Draw3DRectangle) (Tk_Window tkwin, Drawable drawable, Tk_3DBorder border, int x, int y, int width, int height, int borderWidth, int relief);
0946 void (*tk_DrawChars) (Display *display, Drawable drawable, GC gc, Tk_Font tkfont, const char *source, int numBytes, int x, int y);
0947 void (*tk_DrawFocusHighlight) (Tk_Window tkwin, GC gc, int width, Drawable drawable);
0948 void (*tk_DrawTextLayout) (Display *display, Drawable drawable, GC gc, Tk_TextLayout layout, int x, int y, int firstChar, int lastChar);
0949 void (*tk_Fill3DPolygon) (Tk_Window tkwin, Drawable drawable, Tk_3DBorder border, XPoint *pointPtr, int numPoints, int borderWidth, int leftRelief);
0950 void (*tk_Fill3DRectangle) (Tk_Window tkwin, Drawable drawable, Tk_3DBorder border, int x, int y, int width, int height, int borderWidth, int relief);
0951 Tk_PhotoHandle (*tk_FindPhoto) (Tcl_Interp *interp, const char *imageName);
0952 Font (*tk_FontId) (Tk_Font font);
0953 void (*tk_Free3DBorder) (Tk_3DBorder border);
0954 void (*tk_FreeBitmap) (Display *display, Pixmap bitmap);
0955 void (*tk_FreeColor) (XColor *colorPtr);
0956 void (*tk_FreeColormap) (Display *display, Colormap colormap);
0957 void (*tk_FreeCursor) (Display *display, Tk_Cursor cursor);
0958 void (*tk_FreeFont) (Tk_Font f);
0959 void (*tk_FreeGC) (Display *display, GC gc);
0960 void (*tk_FreeImage) (Tk_Image image);
0961 void (*tk_FreeOptions) (const Tk_ConfigSpec *specs, char *widgRec, Display *display, int needFlags);
0962 void (*tk_FreePixmap) (Display *display, Pixmap pixmap);
0963 void (*tk_FreeTextLayout) (Tk_TextLayout textLayout);
0964 void (*tk_FreeXId) (Display *display, XID xid);
0965 GC (*tk_GCForColor) (XColor *colorPtr, Drawable drawable);
0966 void (*tk_GeometryRequest) (Tk_Window tkwin, int reqWidth, int reqHeight);
0967 Tk_3DBorder (*tk_Get3DBorder) (Tcl_Interp *interp, Tk_Window tkwin, Tk_Uid colorName);
0968 void (*tk_GetAllBindings) (Tcl_Interp *interp, Tk_BindingTable bindingTable, ClientData object);
0969 int (*tk_GetAnchor) (Tcl_Interp *interp, const char *str, Tk_Anchor *anchorPtr);
0970 CONST84_RETURN char * (*tk_GetAtomName) (Tk_Window tkwin, Atom atom);
0971 CONST84_RETURN char * (*tk_GetBinding) (Tcl_Interp *interp, Tk_BindingTable bindingTable, ClientData object, const char *eventStr);
0972 Pixmap (*tk_GetBitmap) (Tcl_Interp *interp, Tk_Window tkwin, const char *str);
0973 Pixmap (*tk_GetBitmapFromData) (Tcl_Interp *interp, Tk_Window tkwin, const void *source, int width, int height);
0974 int (*tk_GetCapStyle) (Tcl_Interp *interp, const char *str, int *capPtr);
0975 XColor * (*tk_GetColor) (Tcl_Interp *interp, Tk_Window tkwin, Tk_Uid name);
0976 XColor * (*tk_GetColorByValue) (Tk_Window tkwin, XColor *colorPtr);
0977 Colormap (*tk_GetColormap) (Tcl_Interp *interp, Tk_Window tkwin, const char *str);
0978 Tk_Cursor (*tk_GetCursor) (Tcl_Interp *interp, Tk_Window tkwin, Tk_Uid str);
0979 Tk_Cursor (*tk_GetCursorFromData) (Tcl_Interp *interp, Tk_Window tkwin, const char *source, const char *mask, int width, int height, int xHot, int yHot, Tk_Uid fg, Tk_Uid bg);
0980 Tk_Font (*tk_GetFont) (Tcl_Interp *interp, Tk_Window tkwin, const char *str);
0981 Tk_Font (*tk_GetFontFromObj) (Tk_Window tkwin, Tcl_Obj *objPtr);
0982 void (*tk_GetFontMetrics) (Tk_Font font, Tk_FontMetrics *fmPtr);
0983 GC (*tk_GetGC) (Tk_Window tkwin, unsigned long valueMask, XGCValues *valuePtr);
0984 Tk_Image (*tk_GetImage) (Tcl_Interp *interp, Tk_Window tkwin, const char *name, Tk_ImageChangedProc *changeProc, ClientData clientData);
0985 ClientData (*tk_GetImageMasterData) (Tcl_Interp *interp, const char *name, CONST86 Tk_ImageType **typePtrPtr);
0986 Tk_ItemType * (*tk_GetItemTypes) (void);
0987 int (*tk_GetJoinStyle) (Tcl_Interp *interp, const char *str, int *joinPtr);
0988 int (*tk_GetJustify) (Tcl_Interp *interp, const char *str, Tk_Justify *justifyPtr);
0989 int (*tk_GetNumMainWindows) (void);
0990 Tk_Uid (*tk_GetOption) (Tk_Window tkwin, const char *name, const char *className);
0991 int (*tk_GetPixels) (Tcl_Interp *interp, Tk_Window tkwin, const char *str, int *intPtr);
0992 Pixmap (*tk_GetPixmap) (Display *display, Drawable d, int width, int height, int depth);
0993 int (*tk_GetRelief) (Tcl_Interp *interp, const char *name, int *reliefPtr);
0994 void (*tk_GetRootCoords) (Tk_Window tkwin, int *xPtr, int *yPtr);
0995 int (*tk_GetScrollInfo) (Tcl_Interp *interp, int argc, CONST84 char **argv, double *dblPtr, int *intPtr);
0996 int (*tk_GetScreenMM) (Tcl_Interp *interp, Tk_Window tkwin, const char *str, double *doublePtr);
0997 int (*tk_GetSelection) (Tcl_Interp *interp, Tk_Window tkwin, Atom selection, Atom target, Tk_GetSelProc *proc, ClientData clientData);
0998 Tk_Uid (*tk_GetUid) (const char *str);
0999 Visual * (*tk_GetVisual) (Tcl_Interp *interp, Tk_Window tkwin, const char *str, int *depthPtr, Colormap *colormapPtr);
1000 void (*tk_GetVRootGeometry) (Tk_Window tkwin, int *xPtr, int *yPtr, int *widthPtr, int *heightPtr);
1001 int (*tk_Grab) (Tcl_Interp *interp, Tk_Window tkwin, int grabGlobal);
1002 void (*tk_HandleEvent) (XEvent *eventPtr);
1003 Tk_Window (*tk_IdToWindow) (Display *display, Window window);
1004 void (*tk_ImageChanged) (Tk_ImageMaster model, int x, int y, int width, int height, int imageWidth, int imageHeight);
1005 int (*tk_Init) (Tcl_Interp *interp);
1006 Atom (*tk_InternAtom) (Tk_Window tkwin, const char *name);
1007 int (*tk_IntersectTextLayout) (Tk_TextLayout layout, int x, int y, int width, int height);
1008 void (*tk_MaintainGeometry) (Tk_Window window, Tk_Window container, int x, int y, int width, int height);
1009 Tk_Window (*tk_MainWindow) (Tcl_Interp *interp);
1010 void (*tk_MakeWindowExist) (Tk_Window tkwin);
1011 void (*tk_ManageGeometry) (Tk_Window tkwin, const Tk_GeomMgr *mgrPtr, ClientData clientData);
1012 void (*tk_MapWindow) (Tk_Window tkwin);
1013 int (*tk_MeasureChars) (Tk_Font tkfont, const char *source, int numBytes, int maxPixels, int flags, int *lengthPtr);
1014 void (*tk_MoveResizeWindow) (Tk_Window tkwin, int x, int y, int width, int height);
1015 void (*tk_MoveWindow) (Tk_Window tkwin, int x, int y);
1016 void (*tk_MoveToplevelWindow) (Tk_Window tkwin, int x, int y);
1017 CONST84_RETURN char * (*tk_NameOf3DBorder) (Tk_3DBorder border);
1018 CONST84_RETURN char * (*tk_NameOfAnchor) (Tk_Anchor anchor);
1019 CONST84_RETURN char * (*tk_NameOfBitmap) (Display *display, Pixmap bitmap);
1020 CONST84_RETURN char * (*tk_NameOfCapStyle) (int cap);
1021 CONST84_RETURN char * (*tk_NameOfColor) (XColor *colorPtr);
1022 CONST84_RETURN char * (*tk_NameOfCursor) (Display *display, Tk_Cursor cursor);
1023 CONST84_RETURN char * (*tk_NameOfFont) (Tk_Font font);
1024 CONST84_RETURN char * (*tk_NameOfImage) (Tk_ImageMaster model);
1025 CONST84_RETURN char * (*tk_NameOfJoinStyle) (int join);
1026 CONST84_RETURN char * (*tk_NameOfJustify) (Tk_Justify justify);
1027 CONST84_RETURN char * (*tk_NameOfRelief) (int relief);
1028 Tk_Window (*tk_NameToWindow) (Tcl_Interp *interp, const char *pathName, Tk_Window tkwin);
1029 void (*tk_OwnSelection) (Tk_Window tkwin, Atom selection, Tk_LostSelProc *proc, ClientData clientData);
1030 int (*tk_ParseArgv) (Tcl_Interp *interp, Tk_Window tkwin, int *argcPtr, CONST84 char **argv, const Tk_ArgvInfo *argTable, int flags);
1031 void (*tk_PhotoPutBlock_NoComposite) (Tk_PhotoHandle handle, Tk_PhotoImageBlock *blockPtr, int x, int y, int width, int height);
1032 void (*tk_PhotoPutZoomedBlock_NoComposite) (Tk_PhotoHandle handle, Tk_PhotoImageBlock *blockPtr, int x, int y, int width, int height, int zoomX, int zoomY, int subsampleX, int subsampleY);
1033 int (*tk_PhotoGetImage) (Tk_PhotoHandle handle, Tk_PhotoImageBlock *blockPtr);
1034 void (*tk_PhotoBlank) (Tk_PhotoHandle handle);
1035 void (*tk_PhotoExpand_Panic) (Tk_PhotoHandle handle, int width, int height);
1036 void (*tk_PhotoGetSize) (Tk_PhotoHandle handle, int *widthPtr, int *heightPtr);
1037 void (*tk_PhotoSetSize_Panic) (Tk_PhotoHandle handle, int width, int height);
1038 int (*tk_PointToChar) (Tk_TextLayout layout, int x, int y);
1039 int (*tk_PostscriptFontName) (Tk_Font tkfont, Tcl_DString *dsPtr);
1040 void (*tk_PreserveColormap) (Display *display, Colormap colormap);
1041 void (*tk_QueueWindowEvent) (XEvent *eventPtr, Tcl_QueuePosition position);
1042 void (*tk_RedrawImage) (Tk_Image image, int imageX, int imageY, int width, int height, Drawable drawable, int drawableX, int drawableY);
1043 void (*tk_ResizeWindow) (Tk_Window tkwin, int width, int height);
1044 int (*tk_RestackWindow) (Tk_Window tkwin, int aboveBelow, Tk_Window other);
1045 Tk_RestrictProc * (*tk_RestrictEvents) (Tk_RestrictProc *proc, ClientData arg, ClientData *prevArgPtr);
1046 int (*tk_SafeInit) (Tcl_Interp *interp);
1047 const char * (*tk_SetAppName) (Tk_Window tkwin, const char *name);
1048 void (*tk_SetBackgroundFromBorder) (Tk_Window tkwin, Tk_3DBorder border);
1049 void (*tk_SetClass) (Tk_Window tkwin, const char *className);
1050 void (*tk_SetGrid) (Tk_Window tkwin, int reqWidth, int reqHeight, int gridWidth, int gridHeight);
1051 void (*tk_SetInternalBorder) (Tk_Window tkwin, int width);
1052 void (*tk_SetWindowBackground) (Tk_Window tkwin, unsigned long pixel);
1053 void (*tk_SetWindowBackgroundPixmap) (Tk_Window tkwin, Pixmap pixmap);
1054 void (*tk_SetWindowBorder) (Tk_Window tkwin, unsigned long pixel);
1055 void (*tk_SetWindowBorderWidth) (Tk_Window tkwin, int width);
1056 void (*tk_SetWindowBorderPixmap) (Tk_Window tkwin, Pixmap pixmap);
1057 void (*tk_SetWindowColormap) (Tk_Window tkwin, Colormap colormap);
1058 int (*tk_SetWindowVisual) (Tk_Window tkwin, Visual *visual, int depth, Colormap colormap);
1059 void (*tk_SizeOfBitmap) (Display *display, Pixmap bitmap, int *widthPtr, int *heightPtr);
1060 void (*tk_SizeOfImage) (Tk_Image image, int *widthPtr, int *heightPtr);
1061 int (*tk_StrictMotif) (Tk_Window tkwin);
1062 void (*tk_TextLayoutToPostscript) (Tcl_Interp *interp, Tk_TextLayout layout);
1063 int (*tk_TextWidth) (Tk_Font font, const char *str, int numBytes);
1064 void (*tk_UndefineCursor) (Tk_Window window);
1065 void (*tk_UnderlineChars) (Display *display, Drawable drawable, GC gc, Tk_Font tkfont, const char *source, int x, int y, int firstByte, int lastByte);
1066 void (*tk_UnderlineTextLayout) (Display *display, Drawable drawable, GC gc, Tk_TextLayout layout, int x, int y, int underline);
1067 void (*tk_Ungrab) (Tk_Window tkwin);
1068 void (*tk_UnmaintainGeometry) (Tk_Window window, Tk_Window container);
1069 void (*tk_UnmapWindow) (Tk_Window tkwin);
1070 void (*tk_UnsetGrid) (Tk_Window tkwin);
1071 void (*tk_UpdatePointer) (Tk_Window tkwin, int x, int y, int state);
1072 Pixmap (*tk_AllocBitmapFromObj) (Tcl_Interp *interp, Tk_Window tkwin, Tcl_Obj *objPtr);
1073 Tk_3DBorder (*tk_Alloc3DBorderFromObj) (Tcl_Interp *interp, Tk_Window tkwin, Tcl_Obj *objPtr);
1074 XColor * (*tk_AllocColorFromObj) (Tcl_Interp *interp, Tk_Window tkwin, Tcl_Obj *objPtr);
1075 Tk_Cursor (*tk_AllocCursorFromObj) (Tcl_Interp *interp, Tk_Window tkwin, Tcl_Obj *objPtr);
1076 Tk_Font (*tk_AllocFontFromObj) (Tcl_Interp *interp, Tk_Window tkwin, Tcl_Obj *objPtr);
1077 Tk_OptionTable (*tk_CreateOptionTable) (Tcl_Interp *interp, const Tk_OptionSpec *templatePtr);
1078 void (*tk_DeleteOptionTable) (Tk_OptionTable optionTable);
1079 void (*tk_Free3DBorderFromObj) (Tk_Window tkwin, Tcl_Obj *objPtr);
1080 void (*tk_FreeBitmapFromObj) (Tk_Window tkwin, Tcl_Obj *objPtr);
1081 void (*tk_FreeColorFromObj) (Tk_Window tkwin, Tcl_Obj *objPtr);
1082 void (*tk_FreeConfigOptions) (char *recordPtr, Tk_OptionTable optionToken, Tk_Window tkwin);
1083 void (*tk_FreeSavedOptions) (Tk_SavedOptions *savePtr);
1084 void (*tk_FreeCursorFromObj) (Tk_Window tkwin, Tcl_Obj *objPtr);
1085 void (*tk_FreeFontFromObj) (Tk_Window tkwin, Tcl_Obj *objPtr);
1086 Tk_3DBorder (*tk_Get3DBorderFromObj) (Tk_Window tkwin, Tcl_Obj *objPtr);
1087 int (*tk_GetAnchorFromObj) (Tcl_Interp *interp, Tcl_Obj *objPtr, Tk_Anchor *anchorPtr);
1088 Pixmap (*tk_GetBitmapFromObj) (Tk_Window tkwin, Tcl_Obj *objPtr);
1089 XColor * (*tk_GetColorFromObj) (Tk_Window tkwin, Tcl_Obj *objPtr);
1090 Tk_Cursor (*tk_GetCursorFromObj) (Tk_Window tkwin, Tcl_Obj *objPtr);
1091 Tcl_Obj * (*tk_GetOptionInfo) (Tcl_Interp *interp, char *recordPtr, Tk_OptionTable optionTable, Tcl_Obj *namePtr, Tk_Window tkwin);
1092 Tcl_Obj * (*tk_GetOptionValue) (Tcl_Interp *interp, char *recordPtr, Tk_OptionTable optionTable, Tcl_Obj *namePtr, Tk_Window tkwin);
1093 int (*tk_GetJustifyFromObj) (Tcl_Interp *interp, Tcl_Obj *objPtr, Tk_Justify *justifyPtr);
1094 int (*tk_GetMMFromObj) (Tcl_Interp *interp, Tk_Window tkwin, Tcl_Obj *objPtr, double *doublePtr);
1095 int (*tk_GetPixelsFromObj) (Tcl_Interp *interp, Tk_Window tkwin, Tcl_Obj *objPtr, int *intPtr);
1096 int (*tk_GetReliefFromObj) (Tcl_Interp *interp, Tcl_Obj *objPtr, int *resultPtr);
1097 int (*tk_GetScrollInfoObj) (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], double *dblPtr, int *intPtr);
1098 int (*tk_InitOptions) (Tcl_Interp *interp, char *recordPtr, Tk_OptionTable optionToken, Tk_Window tkwin);
1099 void (*tk_MainEx) (int argc, char **argv, Tcl_AppInitProc *appInitProc, Tcl_Interp *interp);
1100 void (*tk_RestoreSavedOptions) (Tk_SavedOptions *savePtr);
1101 int (*tk_SetOptions) (Tcl_Interp *interp, char *recordPtr, Tk_OptionTable optionTable, int objc, Tcl_Obj *const objv[], Tk_Window tkwin, Tk_SavedOptions *savePtr, int *maskPtr);
1102 void (*tk_InitConsoleChannels) (Tcl_Interp *interp);
1103 int (*tk_CreateConsoleWindow) (Tcl_Interp *interp);
1104 void (*tk_CreateSmoothMethod) (Tcl_Interp *interp, const Tk_SmoothMethod *method);
1105 void (*reserved218)(void);
1106 void (*reserved219)(void);
1107 int (*tk_GetDash) (Tcl_Interp *interp, const char *value, Tk_Dash *dash);
1108 void (*tk_CreateOutline) (Tk_Outline *outline);
1109 void (*tk_DeleteOutline) (Display *display, Tk_Outline *outline);
1110 int (*tk_ConfigOutlineGC) (XGCValues *gcValues, Tk_Canvas canvas, Tk_Item *item, Tk_Outline *outline);
1111 int (*tk_ChangeOutlineGC) (Tk_Canvas canvas, Tk_Item *item, Tk_Outline *outline);
1112 int (*tk_ResetOutlineGC) (Tk_Canvas canvas, Tk_Item *item, Tk_Outline *outline);
1113 int (*tk_CanvasPsOutline) (Tk_Canvas canvas, Tk_Item *item, Tk_Outline *outline);
1114 void (*tk_SetTSOrigin) (Tk_Window tkwin, GC gc, int x, int y);
1115 int (*tk_CanvasGetCoordFromObj) (Tcl_Interp *interp, Tk_Canvas canvas, Tcl_Obj *obj, double *doublePtr);
1116 void (*tk_CanvasSetOffset) (Tk_Canvas canvas, GC gc, Tk_TSOffset *offset);
1117 void (*tk_DitherPhoto) (Tk_PhotoHandle handle, int x, int y, int width, int height);
1118 int (*tk_PostscriptBitmap) (Tcl_Interp *interp, Tk_Window tkwin, Tk_PostscriptInfo psInfo, Pixmap bitmap, int startX, int startY, int width, int height);
1119 int (*tk_PostscriptColor) (Tcl_Interp *interp, Tk_PostscriptInfo psInfo, XColor *colorPtr);
1120 int (*tk_PostscriptFont) (Tcl_Interp *interp, Tk_PostscriptInfo psInfo, Tk_Font font);
1121 int (*tk_PostscriptImage) (Tk_Image image, Tcl_Interp *interp, Tk_Window tkwin, Tk_PostscriptInfo psinfo, int x, int y, int width, int height, int prepass);
1122 void (*tk_PostscriptPath) (Tcl_Interp *interp, Tk_PostscriptInfo psInfo, double *coordPtr, int numPoints);
1123 int (*tk_PostscriptStipple) (Tcl_Interp *interp, Tk_Window tkwin, Tk_PostscriptInfo psInfo, Pixmap bitmap);
1124 double (*tk_PostscriptY) (double y, Tk_PostscriptInfo psInfo);
1125 int (*tk_PostscriptPhoto) (Tcl_Interp *interp, Tk_PhotoImageBlock *blockPtr, Tk_PostscriptInfo psInfo, int width, int height);
1126 void (*tk_CreateClientMessageHandler) (Tk_ClientMessageProc *proc);
1127 void (*tk_DeleteClientMessageHandler) (Tk_ClientMessageProc *proc);
1128 Tk_Window (*tk_CreateAnonymousWindow) (Tcl_Interp *interp, Tk_Window parent, const char *screenName);
1129 void (*tk_SetClassProcs) (Tk_Window tkwin, const Tk_ClassProcs *procs, ClientData instanceData);
1130 void (*tk_SetInternalBorderEx) (Tk_Window tkwin, int left, int right, int top, int bottom);
1131 void (*tk_SetMinimumRequestSize) (Tk_Window tkwin, int minWidth, int minHeight);
1132 void (*tk_SetCaretPos) (Tk_Window tkwin, int x, int y, int height);
1133 void (*tk_PhotoPutBlock_Panic) (Tk_PhotoHandle handle, Tk_PhotoImageBlock *blockPtr, int x, int y, int width, int height, int compRule);
1134 void (*tk_PhotoPutZoomedBlock_Panic) (Tk_PhotoHandle handle, Tk_PhotoImageBlock *blockPtr, int x, int y, int width, int height, int zoomX, int zoomY, int subsampleX, int subsampleY, int compRule);
1135 int (*tk_CollapseMotionEvents) (Display *display, int collapse);
1136 Tk_StyleEngine (*tk_RegisterStyleEngine) (const char *name, Tk_StyleEngine parent);
1137 Tk_StyleEngine (*tk_GetStyleEngine) (const char *name);
1138 int (*tk_RegisterStyledElement) (Tk_StyleEngine engine, Tk_ElementSpec *templatePtr);
1139 int (*tk_GetElementId) (const char *name);
1140 Tk_Style (*tk_CreateStyle) (const char *name, Tk_StyleEngine engine, ClientData clientData);
1141 Tk_Style (*tk_GetStyle) (Tcl_Interp *interp, const char *name);
1142 void (*tk_FreeStyle) (Tk_Style style);
1143 const char * (*tk_NameOfStyle) (Tk_Style style);
1144 Tk_Style (*tk_AllocStyleFromObj) (Tcl_Interp *interp, Tcl_Obj *objPtr);
1145 Tk_Style (*tk_GetStyleFromObj) (Tcl_Obj *objPtr);
1146 void (*tk_FreeStyleFromObj) (Tcl_Obj *objPtr);
1147 Tk_StyledElement (*tk_GetStyledElement) (Tk_Style style, int elementId, Tk_OptionTable optionTable);
1148 void (*tk_GetElementSize) (Tk_Style style, Tk_StyledElement element, char *recordPtr, Tk_Window tkwin, int width, int height, int inner, int *widthPtr, int *heightPtr);
1149 void (*tk_GetElementBox) (Tk_Style style, Tk_StyledElement element, char *recordPtr, Tk_Window tkwin, int x, int y, int width, int height, int inner, int *xPtr, int *yPtr, int *widthPtr, int *heightPtr);
1150 int (*tk_GetElementBorderWidth) (Tk_Style style, Tk_StyledElement element, char *recordPtr, Tk_Window tkwin);
1151 void (*tk_DrawElement) (Tk_Style style, Tk_StyledElement element, char *recordPtr, Tk_Window tkwin, Drawable d, int x, int y, int width, int height, int state);
1152 int (*tk_PhotoExpand) (Tcl_Interp *interp, Tk_PhotoHandle handle, int width, int height);
1153 int (*tk_PhotoPutBlock) (Tcl_Interp *interp, Tk_PhotoHandle handle, Tk_PhotoImageBlock *blockPtr, int x, int y, int width, int height, int compRule);
1154 int (*tk_PhotoPutZoomedBlock) (Tcl_Interp *interp, Tk_PhotoHandle handle, Tk_PhotoImageBlock *blockPtr, int x, int y, int width, int height, int zoomX, int zoomY, int subsampleX, int subsampleY, int compRule);
1155 int (*tk_PhotoSetSize) (Tcl_Interp *interp, Tk_PhotoHandle handle, int width, int height);
1156 long (*tk_GetUserInactiveTime) (Display *dpy);
1157 void (*tk_ResetUserInactiveTime) (Display *dpy);
1158 Tcl_Interp * (*tk_Interp) (Tk_Window tkwin);
1159 void (*tk_CreateOldImageType) (const Tk_ImageType *typePtr);
1160 void (*tk_CreateOldPhotoImageFormat) (const Tk_PhotoImageFormat *formatPtr);
1161 void (*reserved274)(void);
1162 void (*reserved275)(void);
1163 void (*reserved276)(void);
1164 void (*reserved277)(void);
1165 void (*reserved278)(void);
1166 void (*reserved279)(void);
1167 void (*tkUnusedStubEntry) (void);
1168 } TkStubs;
1169
1170 extern const TkStubs *tkStubsPtr;
1171
1172 #ifdef __cplusplus
1173 }
1174 #endif
1175
1176 #if defined(USE_TK_STUBS)
1177
1178
1179
1180
1181
1182 #define Tk_MainLoop \
1183 (tkStubsPtr->tk_MainLoop)
1184 #define Tk_3DBorderColor \
1185 (tkStubsPtr->tk_3DBorderColor)
1186 #define Tk_3DBorderGC \
1187 (tkStubsPtr->tk_3DBorderGC)
1188 #define Tk_3DHorizontalBevel \
1189 (tkStubsPtr->tk_3DHorizontalBevel)
1190 #define Tk_3DVerticalBevel \
1191 (tkStubsPtr->tk_3DVerticalBevel)
1192 #define Tk_AddOption \
1193 (tkStubsPtr->tk_AddOption)
1194 #define Tk_BindEvent \
1195 (tkStubsPtr->tk_BindEvent)
1196 #define Tk_CanvasDrawableCoords \
1197 (tkStubsPtr->tk_CanvasDrawableCoords)
1198 #define Tk_CanvasEventuallyRedraw \
1199 (tkStubsPtr->tk_CanvasEventuallyRedraw)
1200 #define Tk_CanvasGetCoord \
1201 (tkStubsPtr->tk_CanvasGetCoord)
1202 #define Tk_CanvasGetTextInfo \
1203 (tkStubsPtr->tk_CanvasGetTextInfo)
1204 #define Tk_CanvasPsBitmap \
1205 (tkStubsPtr->tk_CanvasPsBitmap)
1206 #define Tk_CanvasPsColor \
1207 (tkStubsPtr->tk_CanvasPsColor)
1208 #define Tk_CanvasPsFont \
1209 (tkStubsPtr->tk_CanvasPsFont)
1210 #define Tk_CanvasPsPath \
1211 (tkStubsPtr->tk_CanvasPsPath)
1212 #define Tk_CanvasPsStipple \
1213 (tkStubsPtr->tk_CanvasPsStipple)
1214 #define Tk_CanvasPsY \
1215 (tkStubsPtr->tk_CanvasPsY)
1216 #define Tk_CanvasSetStippleOrigin \
1217 (tkStubsPtr->tk_CanvasSetStippleOrigin)
1218 #define Tk_CanvasTagsParseProc \
1219 (tkStubsPtr->tk_CanvasTagsParseProc)
1220 #define Tk_CanvasTagsPrintProc \
1221 (tkStubsPtr->tk_CanvasTagsPrintProc)
1222 #define Tk_CanvasTkwin \
1223 (tkStubsPtr->tk_CanvasTkwin)
1224 #define Tk_CanvasWindowCoords \
1225 (tkStubsPtr->tk_CanvasWindowCoords)
1226 #define Tk_ChangeWindowAttributes \
1227 (tkStubsPtr->tk_ChangeWindowAttributes)
1228 #define Tk_CharBbox \
1229 (tkStubsPtr->tk_CharBbox)
1230 #define Tk_ClearSelection \
1231 (tkStubsPtr->tk_ClearSelection)
1232 #define Tk_ClipboardAppend \
1233 (tkStubsPtr->tk_ClipboardAppend)
1234 #define Tk_ClipboardClear \
1235 (tkStubsPtr->tk_ClipboardClear)
1236 #define Tk_ConfigureInfo \
1237 (tkStubsPtr->tk_ConfigureInfo)
1238 #define Tk_ConfigureValue \
1239 (tkStubsPtr->tk_ConfigureValue)
1240 #define Tk_ConfigureWidget \
1241 (tkStubsPtr->tk_ConfigureWidget)
1242 #define Tk_ConfigureWindow \
1243 (tkStubsPtr->tk_ConfigureWindow)
1244 #define Tk_ComputeTextLayout \
1245 (tkStubsPtr->tk_ComputeTextLayout)
1246 #define Tk_CoordsToWindow \
1247 (tkStubsPtr->tk_CoordsToWindow)
1248 #define Tk_CreateBinding \
1249 (tkStubsPtr->tk_CreateBinding)
1250 #define Tk_CreateBindingTable \
1251 (tkStubsPtr->tk_CreateBindingTable)
1252 #define Tk_CreateErrorHandler \
1253 (tkStubsPtr->tk_CreateErrorHandler)
1254 #define Tk_CreateEventHandler \
1255 (tkStubsPtr->tk_CreateEventHandler)
1256 #define Tk_CreateGenericHandler \
1257 (tkStubsPtr->tk_CreateGenericHandler)
1258 #define Tk_CreateImageType \
1259 (tkStubsPtr->tk_CreateImageType)
1260 #define Tk_CreateItemType \
1261 (tkStubsPtr->tk_CreateItemType)
1262 #define Tk_CreatePhotoImageFormat \
1263 (tkStubsPtr->tk_CreatePhotoImageFormat)
1264 #define Tk_CreateSelHandler \
1265 (tkStubsPtr->tk_CreateSelHandler)
1266 #define Tk_CreateWindow \
1267 (tkStubsPtr->tk_CreateWindow)
1268 #define Tk_CreateWindowFromPath \
1269 (tkStubsPtr->tk_CreateWindowFromPath)
1270 #define Tk_DefineBitmap \
1271 (tkStubsPtr->tk_DefineBitmap)
1272 #define Tk_DefineCursor \
1273 (tkStubsPtr->tk_DefineCursor)
1274 #define Tk_DeleteAllBindings \
1275 (tkStubsPtr->tk_DeleteAllBindings)
1276 #define Tk_DeleteBinding \
1277 (tkStubsPtr->tk_DeleteBinding)
1278 #define Tk_DeleteBindingTable \
1279 (tkStubsPtr->tk_DeleteBindingTable)
1280 #define Tk_DeleteErrorHandler \
1281 (tkStubsPtr->tk_DeleteErrorHandler)
1282 #define Tk_DeleteEventHandler \
1283 (tkStubsPtr->tk_DeleteEventHandler)
1284 #define Tk_DeleteGenericHandler \
1285 (tkStubsPtr->tk_DeleteGenericHandler)
1286 #define Tk_DeleteImage \
1287 (tkStubsPtr->tk_DeleteImage)
1288 #define Tk_DeleteSelHandler \
1289 (tkStubsPtr->tk_DeleteSelHandler)
1290 #define Tk_DestroyWindow \
1291 (tkStubsPtr->tk_DestroyWindow)
1292 #define Tk_DisplayName \
1293 (tkStubsPtr->tk_DisplayName)
1294 #define Tk_DistanceToTextLayout \
1295 (tkStubsPtr->tk_DistanceToTextLayout)
1296 #define Tk_Draw3DPolygon \
1297 (tkStubsPtr->tk_Draw3DPolygon)
1298 #define Tk_Draw3DRectangle \
1299 (tkStubsPtr->tk_Draw3DRectangle)
1300 #define Tk_DrawChars \
1301 (tkStubsPtr->tk_DrawChars)
1302 #define Tk_DrawFocusHighlight \
1303 (tkStubsPtr->tk_DrawFocusHighlight)
1304 #define Tk_DrawTextLayout \
1305 (tkStubsPtr->tk_DrawTextLayout)
1306 #define Tk_Fill3DPolygon \
1307 (tkStubsPtr->tk_Fill3DPolygon)
1308 #define Tk_Fill3DRectangle \
1309 (tkStubsPtr->tk_Fill3DRectangle)
1310 #define Tk_FindPhoto \
1311 (tkStubsPtr->tk_FindPhoto)
1312 #define Tk_FontId \
1313 (tkStubsPtr->tk_FontId)
1314 #define Tk_Free3DBorder \
1315 (tkStubsPtr->tk_Free3DBorder)
1316 #define Tk_FreeBitmap \
1317 (tkStubsPtr->tk_FreeBitmap)
1318 #define Tk_FreeColor \
1319 (tkStubsPtr->tk_FreeColor)
1320 #define Tk_FreeColormap \
1321 (tkStubsPtr->tk_FreeColormap)
1322 #define Tk_FreeCursor \
1323 (tkStubsPtr->tk_FreeCursor)
1324 #define Tk_FreeFont \
1325 (tkStubsPtr->tk_FreeFont)
1326 #define Tk_FreeGC \
1327 (tkStubsPtr->tk_FreeGC)
1328 #define Tk_FreeImage \
1329 (tkStubsPtr->tk_FreeImage)
1330 #define Tk_FreeOptions \
1331 (tkStubsPtr->tk_FreeOptions)
1332 #define Tk_FreePixmap \
1333 (tkStubsPtr->tk_FreePixmap)
1334 #define Tk_FreeTextLayout \
1335 (tkStubsPtr->tk_FreeTextLayout)
1336 #define Tk_FreeXId \
1337 (tkStubsPtr->tk_FreeXId)
1338 #define Tk_GCForColor \
1339 (tkStubsPtr->tk_GCForColor)
1340 #define Tk_GeometryRequest \
1341 (tkStubsPtr->tk_GeometryRequest)
1342 #define Tk_Get3DBorder \
1343 (tkStubsPtr->tk_Get3DBorder)
1344 #define Tk_GetAllBindings \
1345 (tkStubsPtr->tk_GetAllBindings)
1346 #define Tk_GetAnchor \
1347 (tkStubsPtr->tk_GetAnchor)
1348 #define Tk_GetAtomName \
1349 (tkStubsPtr->tk_GetAtomName)
1350 #define Tk_GetBinding \
1351 (tkStubsPtr->tk_GetBinding)
1352 #define Tk_GetBitmap \
1353 (tkStubsPtr->tk_GetBitmap)
1354 #define Tk_GetBitmapFromData \
1355 (tkStubsPtr->tk_GetBitmapFromData)
1356 #define Tk_GetCapStyle \
1357 (tkStubsPtr->tk_GetCapStyle)
1358 #define Tk_GetColor \
1359 (tkStubsPtr->tk_GetColor)
1360 #define Tk_GetColorByValue \
1361 (tkStubsPtr->tk_GetColorByValue)
1362 #define Tk_GetColormap \
1363 (tkStubsPtr->tk_GetColormap)
1364 #define Tk_GetCursor \
1365 (tkStubsPtr->tk_GetCursor)
1366 #define Tk_GetCursorFromData \
1367 (tkStubsPtr->tk_GetCursorFromData)
1368 #define Tk_GetFont \
1369 (tkStubsPtr->tk_GetFont)
1370 #define Tk_GetFontFromObj \
1371 (tkStubsPtr->tk_GetFontFromObj)
1372 #define Tk_GetFontMetrics \
1373 (tkStubsPtr->tk_GetFontMetrics)
1374 #define Tk_GetGC \
1375 (tkStubsPtr->tk_GetGC)
1376 #define Tk_GetImage \
1377 (tkStubsPtr->tk_GetImage)
1378 #define Tk_GetImageMasterData \
1379 (tkStubsPtr->tk_GetImageMasterData)
1380 #define Tk_GetItemTypes \
1381 (tkStubsPtr->tk_GetItemTypes)
1382 #define Tk_GetJoinStyle \
1383 (tkStubsPtr->tk_GetJoinStyle)
1384 #define Tk_GetJustify \
1385 (tkStubsPtr->tk_GetJustify)
1386 #define Tk_GetNumMainWindows \
1387 (tkStubsPtr->tk_GetNumMainWindows)
1388 #define Tk_GetOption \
1389 (tkStubsPtr->tk_GetOption)
1390 #define Tk_GetPixels \
1391 (tkStubsPtr->tk_GetPixels)
1392 #define Tk_GetPixmap \
1393 (tkStubsPtr->tk_GetPixmap)
1394 #define Tk_GetRelief \
1395 (tkStubsPtr->tk_GetRelief)
1396 #define Tk_GetRootCoords \
1397 (tkStubsPtr->tk_GetRootCoords)
1398 #define Tk_GetScrollInfo \
1399 (tkStubsPtr->tk_GetScrollInfo)
1400 #define Tk_GetScreenMM \
1401 (tkStubsPtr->tk_GetScreenMM)
1402 #define Tk_GetSelection \
1403 (tkStubsPtr->tk_GetSelection)
1404 #define Tk_GetUid \
1405 (tkStubsPtr->tk_GetUid)
1406 #define Tk_GetVisual \
1407 (tkStubsPtr->tk_GetVisual)
1408 #define Tk_GetVRootGeometry \
1409 (tkStubsPtr->tk_GetVRootGeometry)
1410 #define Tk_Grab \
1411 (tkStubsPtr->tk_Grab)
1412 #define Tk_HandleEvent \
1413 (tkStubsPtr->tk_HandleEvent)
1414 #define Tk_IdToWindow \
1415 (tkStubsPtr->tk_IdToWindow)
1416 #define Tk_ImageChanged \
1417 (tkStubsPtr->tk_ImageChanged)
1418 #define Tk_Init \
1419 (tkStubsPtr->tk_Init)
1420 #define Tk_InternAtom \
1421 (tkStubsPtr->tk_InternAtom)
1422 #define Tk_IntersectTextLayout \
1423 (tkStubsPtr->tk_IntersectTextLayout)
1424 #define Tk_MaintainGeometry \
1425 (tkStubsPtr->tk_MaintainGeometry)
1426 #define Tk_MainWindow \
1427 (tkStubsPtr->tk_MainWindow)
1428 #define Tk_MakeWindowExist \
1429 (tkStubsPtr->tk_MakeWindowExist)
1430 #define Tk_ManageGeometry \
1431 (tkStubsPtr->tk_ManageGeometry)
1432 #define Tk_MapWindow \
1433 (tkStubsPtr->tk_MapWindow)
1434 #define Tk_MeasureChars \
1435 (tkStubsPtr->tk_MeasureChars)
1436 #define Tk_MoveResizeWindow \
1437 (tkStubsPtr->tk_MoveResizeWindow)
1438 #define Tk_MoveWindow \
1439 (tkStubsPtr->tk_MoveWindow)
1440 #define Tk_MoveToplevelWindow \
1441 (tkStubsPtr->tk_MoveToplevelWindow)
1442 #define Tk_NameOf3DBorder \
1443 (tkStubsPtr->tk_NameOf3DBorder)
1444 #define Tk_NameOfAnchor \
1445 (tkStubsPtr->tk_NameOfAnchor)
1446 #define Tk_NameOfBitmap \
1447 (tkStubsPtr->tk_NameOfBitmap)
1448 #define Tk_NameOfCapStyle \
1449 (tkStubsPtr->tk_NameOfCapStyle)
1450 #define Tk_NameOfColor \
1451 (tkStubsPtr->tk_NameOfColor)
1452 #define Tk_NameOfCursor \
1453 (tkStubsPtr->tk_NameOfCursor)
1454 #define Tk_NameOfFont \
1455 (tkStubsPtr->tk_NameOfFont)
1456 #define Tk_NameOfImage \
1457 (tkStubsPtr->tk_NameOfImage)
1458 #define Tk_NameOfJoinStyle \
1459 (tkStubsPtr->tk_NameOfJoinStyle)
1460 #define Tk_NameOfJustify \
1461 (tkStubsPtr->tk_NameOfJustify)
1462 #define Tk_NameOfRelief \
1463 (tkStubsPtr->tk_NameOfRelief)
1464 #define Tk_NameToWindow \
1465 (tkStubsPtr->tk_NameToWindow)
1466 #define Tk_OwnSelection \
1467 (tkStubsPtr->tk_OwnSelection)
1468 #define Tk_ParseArgv \
1469 (tkStubsPtr->tk_ParseArgv)
1470 #define Tk_PhotoPutBlock_NoComposite \
1471 (tkStubsPtr->tk_PhotoPutBlock_NoComposite)
1472 #define Tk_PhotoPutZoomedBlock_NoComposite \
1473 (tkStubsPtr->tk_PhotoPutZoomedBlock_NoComposite)
1474 #define Tk_PhotoGetImage \
1475 (tkStubsPtr->tk_PhotoGetImage)
1476 #define Tk_PhotoBlank \
1477 (tkStubsPtr->tk_PhotoBlank)
1478 #define Tk_PhotoExpand_Panic \
1479 (tkStubsPtr->tk_PhotoExpand_Panic)
1480 #define Tk_PhotoGetSize \
1481 (tkStubsPtr->tk_PhotoGetSize)
1482 #define Tk_PhotoSetSize_Panic \
1483 (tkStubsPtr->tk_PhotoSetSize_Panic)
1484 #define Tk_PointToChar \
1485 (tkStubsPtr->tk_PointToChar)
1486 #define Tk_PostscriptFontName \
1487 (tkStubsPtr->tk_PostscriptFontName)
1488 #define Tk_PreserveColormap \
1489 (tkStubsPtr->tk_PreserveColormap)
1490 #define Tk_QueueWindowEvent \
1491 (tkStubsPtr->tk_QueueWindowEvent)
1492 #define Tk_RedrawImage \
1493 (tkStubsPtr->tk_RedrawImage)
1494 #define Tk_ResizeWindow \
1495 (tkStubsPtr->tk_ResizeWindow)
1496 #define Tk_RestackWindow \
1497 (tkStubsPtr->tk_RestackWindow)
1498 #define Tk_RestrictEvents \
1499 (tkStubsPtr->tk_RestrictEvents)
1500 #define Tk_SafeInit \
1501 (tkStubsPtr->tk_SafeInit)
1502 #define Tk_SetAppName \
1503 (tkStubsPtr->tk_SetAppName)
1504 #define Tk_SetBackgroundFromBorder \
1505 (tkStubsPtr->tk_SetBackgroundFromBorder)
1506 #define Tk_SetClass \
1507 (tkStubsPtr->tk_SetClass)
1508 #define Tk_SetGrid \
1509 (tkStubsPtr->tk_SetGrid)
1510 #define Tk_SetInternalBorder \
1511 (tkStubsPtr->tk_SetInternalBorder)
1512 #define Tk_SetWindowBackground \
1513 (tkStubsPtr->tk_SetWindowBackground)
1514 #define Tk_SetWindowBackgroundPixmap \
1515 (tkStubsPtr->tk_SetWindowBackgroundPixmap)
1516 #define Tk_SetWindowBorder \
1517 (tkStubsPtr->tk_SetWindowBorder)
1518 #define Tk_SetWindowBorderWidth \
1519 (tkStubsPtr->tk_SetWindowBorderWidth)
1520 #define Tk_SetWindowBorderPixmap \
1521 (tkStubsPtr->tk_SetWindowBorderPixmap)
1522 #define Tk_SetWindowColormap \
1523 (tkStubsPtr->tk_SetWindowColormap)
1524 #define Tk_SetWindowVisual \
1525 (tkStubsPtr->tk_SetWindowVisual)
1526 #define Tk_SizeOfBitmap \
1527 (tkStubsPtr->tk_SizeOfBitmap)
1528 #define Tk_SizeOfImage \
1529 (tkStubsPtr->tk_SizeOfImage)
1530 #define Tk_StrictMotif \
1531 (tkStubsPtr->tk_StrictMotif)
1532 #define Tk_TextLayoutToPostscript \
1533 (tkStubsPtr->tk_TextLayoutToPostscript)
1534 #define Tk_TextWidth \
1535 (tkStubsPtr->tk_TextWidth)
1536 #define Tk_UndefineCursor \
1537 (tkStubsPtr->tk_UndefineCursor)
1538 #define Tk_UnderlineChars \
1539 (tkStubsPtr->tk_UnderlineChars)
1540 #define Tk_UnderlineTextLayout \
1541 (tkStubsPtr->tk_UnderlineTextLayout)
1542 #define Tk_Ungrab \
1543 (tkStubsPtr->tk_Ungrab)
1544 #define Tk_UnmaintainGeometry \
1545 (tkStubsPtr->tk_UnmaintainGeometry)
1546 #define Tk_UnmapWindow \
1547 (tkStubsPtr->tk_UnmapWindow)
1548 #define Tk_UnsetGrid \
1549 (tkStubsPtr->tk_UnsetGrid)
1550 #define Tk_UpdatePointer \
1551 (tkStubsPtr->tk_UpdatePointer)
1552 #define Tk_AllocBitmapFromObj \
1553 (tkStubsPtr->tk_AllocBitmapFromObj)
1554 #define Tk_Alloc3DBorderFromObj \
1555 (tkStubsPtr->tk_Alloc3DBorderFromObj)
1556 #define Tk_AllocColorFromObj \
1557 (tkStubsPtr->tk_AllocColorFromObj)
1558 #define Tk_AllocCursorFromObj \
1559 (tkStubsPtr->tk_AllocCursorFromObj)
1560 #define Tk_AllocFontFromObj \
1561 (tkStubsPtr->tk_AllocFontFromObj)
1562 #define Tk_CreateOptionTable \
1563 (tkStubsPtr->tk_CreateOptionTable)
1564 #define Tk_DeleteOptionTable \
1565 (tkStubsPtr->tk_DeleteOptionTable)
1566 #define Tk_Free3DBorderFromObj \
1567 (tkStubsPtr->tk_Free3DBorderFromObj)
1568 #define Tk_FreeBitmapFromObj \
1569 (tkStubsPtr->tk_FreeBitmapFromObj)
1570 #define Tk_FreeColorFromObj \
1571 (tkStubsPtr->tk_FreeColorFromObj)
1572 #define Tk_FreeConfigOptions \
1573 (tkStubsPtr->tk_FreeConfigOptions)
1574 #define Tk_FreeSavedOptions \
1575 (tkStubsPtr->tk_FreeSavedOptions)
1576 #define Tk_FreeCursorFromObj \
1577 (tkStubsPtr->tk_FreeCursorFromObj)
1578 #define Tk_FreeFontFromObj \
1579 (tkStubsPtr->tk_FreeFontFromObj)
1580 #define Tk_Get3DBorderFromObj \
1581 (tkStubsPtr->tk_Get3DBorderFromObj)
1582 #define Tk_GetAnchorFromObj \
1583 (tkStubsPtr->tk_GetAnchorFromObj)
1584 #define Tk_GetBitmapFromObj \
1585 (tkStubsPtr->tk_GetBitmapFromObj)
1586 #define Tk_GetColorFromObj \
1587 (tkStubsPtr->tk_GetColorFromObj)
1588 #define Tk_GetCursorFromObj \
1589 (tkStubsPtr->tk_GetCursorFromObj)
1590 #define Tk_GetOptionInfo \
1591 (tkStubsPtr->tk_GetOptionInfo)
1592 #define Tk_GetOptionValue \
1593 (tkStubsPtr->tk_GetOptionValue)
1594 #define Tk_GetJustifyFromObj \
1595 (tkStubsPtr->tk_GetJustifyFromObj)
1596 #define Tk_GetMMFromObj \
1597 (tkStubsPtr->tk_GetMMFromObj)
1598 #define Tk_GetPixelsFromObj \
1599 (tkStubsPtr->tk_GetPixelsFromObj)
1600 #define Tk_GetReliefFromObj \
1601 (tkStubsPtr->tk_GetReliefFromObj)
1602 #define Tk_GetScrollInfoObj \
1603 (tkStubsPtr->tk_GetScrollInfoObj)
1604 #define Tk_InitOptions \
1605 (tkStubsPtr->tk_InitOptions)
1606 #define Tk_MainEx \
1607 (tkStubsPtr->tk_MainEx)
1608 #define Tk_RestoreSavedOptions \
1609 (tkStubsPtr->tk_RestoreSavedOptions)
1610 #define Tk_SetOptions \
1611 (tkStubsPtr->tk_SetOptions)
1612 #define Tk_InitConsoleChannels \
1613 (tkStubsPtr->tk_InitConsoleChannels)
1614 #define Tk_CreateConsoleWindow \
1615 (tkStubsPtr->tk_CreateConsoleWindow)
1616 #define Tk_CreateSmoothMethod \
1617 (tkStubsPtr->tk_CreateSmoothMethod)
1618
1619
1620 #define Tk_GetDash \
1621 (tkStubsPtr->tk_GetDash)
1622 #define Tk_CreateOutline \
1623 (tkStubsPtr->tk_CreateOutline)
1624 #define Tk_DeleteOutline \
1625 (tkStubsPtr->tk_DeleteOutline)
1626 #define Tk_ConfigOutlineGC \
1627 (tkStubsPtr->tk_ConfigOutlineGC)
1628 #define Tk_ChangeOutlineGC \
1629 (tkStubsPtr->tk_ChangeOutlineGC)
1630 #define Tk_ResetOutlineGC \
1631 (tkStubsPtr->tk_ResetOutlineGC)
1632 #define Tk_CanvasPsOutline \
1633 (tkStubsPtr->tk_CanvasPsOutline)
1634 #define Tk_SetTSOrigin \
1635 (tkStubsPtr->tk_SetTSOrigin)
1636 #define Tk_CanvasGetCoordFromObj \
1637 (tkStubsPtr->tk_CanvasGetCoordFromObj)
1638 #define Tk_CanvasSetOffset \
1639 (tkStubsPtr->tk_CanvasSetOffset)
1640 #define Tk_DitherPhoto \
1641 (tkStubsPtr->tk_DitherPhoto)
1642 #define Tk_PostscriptBitmap \
1643 (tkStubsPtr->tk_PostscriptBitmap)
1644 #define Tk_PostscriptColor \
1645 (tkStubsPtr->tk_PostscriptColor)
1646 #define Tk_PostscriptFont \
1647 (tkStubsPtr->tk_PostscriptFont)
1648 #define Tk_PostscriptImage \
1649 (tkStubsPtr->tk_PostscriptImage)
1650 #define Tk_PostscriptPath \
1651 (tkStubsPtr->tk_PostscriptPath)
1652 #define Tk_PostscriptStipple \
1653 (tkStubsPtr->tk_PostscriptStipple)
1654 #define Tk_PostscriptY \
1655 (tkStubsPtr->tk_PostscriptY)
1656 #define Tk_PostscriptPhoto \
1657 (tkStubsPtr->tk_PostscriptPhoto)
1658 #define Tk_CreateClientMessageHandler \
1659 (tkStubsPtr->tk_CreateClientMessageHandler)
1660 #define Tk_DeleteClientMessageHandler \
1661 (tkStubsPtr->tk_DeleteClientMessageHandler)
1662 #define Tk_CreateAnonymousWindow \
1663 (tkStubsPtr->tk_CreateAnonymousWindow)
1664 #define Tk_SetClassProcs \
1665 (tkStubsPtr->tk_SetClassProcs)
1666 #define Tk_SetInternalBorderEx \
1667 (tkStubsPtr->tk_SetInternalBorderEx)
1668 #define Tk_SetMinimumRequestSize \
1669 (tkStubsPtr->tk_SetMinimumRequestSize)
1670 #define Tk_SetCaretPos \
1671 (tkStubsPtr->tk_SetCaretPos)
1672 #define Tk_PhotoPutBlock_Panic \
1673 (tkStubsPtr->tk_PhotoPutBlock_Panic)
1674 #define Tk_PhotoPutZoomedBlock_Panic \
1675 (tkStubsPtr->tk_PhotoPutZoomedBlock_Panic)
1676 #define Tk_CollapseMotionEvents \
1677 (tkStubsPtr->tk_CollapseMotionEvents)
1678 #define Tk_RegisterStyleEngine \
1679 (tkStubsPtr->tk_RegisterStyleEngine)
1680 #define Tk_GetStyleEngine \
1681 (tkStubsPtr->tk_GetStyleEngine)
1682 #define Tk_RegisterStyledElement \
1683 (tkStubsPtr->tk_RegisterStyledElement)
1684 #define Tk_GetElementId \
1685 (tkStubsPtr->tk_GetElementId)
1686 #define Tk_CreateStyle \
1687 (tkStubsPtr->tk_CreateStyle)
1688 #define Tk_GetStyle \
1689 (tkStubsPtr->tk_GetStyle)
1690 #define Tk_FreeStyle \
1691 (tkStubsPtr->tk_FreeStyle)
1692 #define Tk_NameOfStyle \
1693 (tkStubsPtr->tk_NameOfStyle)
1694 #define Tk_AllocStyleFromObj \
1695 (tkStubsPtr->tk_AllocStyleFromObj)
1696 #define Tk_GetStyleFromObj \
1697 (tkStubsPtr->tk_GetStyleFromObj)
1698 #define Tk_FreeStyleFromObj \
1699 (tkStubsPtr->tk_FreeStyleFromObj)
1700 #define Tk_GetStyledElement \
1701 (tkStubsPtr->tk_GetStyledElement)
1702 #define Tk_GetElementSize \
1703 (tkStubsPtr->tk_GetElementSize)
1704 #define Tk_GetElementBox \
1705 (tkStubsPtr->tk_GetElementBox)
1706 #define Tk_GetElementBorderWidth \
1707 (tkStubsPtr->tk_GetElementBorderWidth)
1708 #define Tk_DrawElement \
1709 (tkStubsPtr->tk_DrawElement)
1710 #define Tk_PhotoExpand \
1711 (tkStubsPtr->tk_PhotoExpand)
1712 #define Tk_PhotoPutBlock \
1713 (tkStubsPtr->tk_PhotoPutBlock)
1714 #define Tk_PhotoPutZoomedBlock \
1715 (tkStubsPtr->tk_PhotoPutZoomedBlock)
1716 #define Tk_PhotoSetSize \
1717 (tkStubsPtr->tk_PhotoSetSize)
1718 #define Tk_GetUserInactiveTime \
1719 (tkStubsPtr->tk_GetUserInactiveTime)
1720 #define Tk_ResetUserInactiveTime \
1721 (tkStubsPtr->tk_ResetUserInactiveTime)
1722 #define Tk_Interp \
1723 (tkStubsPtr->tk_Interp)
1724 #define Tk_CreateOldImageType \
1725 (tkStubsPtr->tk_CreateOldImageType)
1726 #define Tk_CreateOldPhotoImageFormat \
1727 (tkStubsPtr->tk_CreateOldPhotoImageFormat)
1728
1729
1730
1731
1732
1733
1734 #define TkUnusedStubEntry \
1735 (tkStubsPtr->tkUnusedStubEntry)
1736
1737 #endif
1738
1739
1740
1741
1742 #undef Tk_MainEx
1743 #undef Tk_Init
1744 #undef Tk_SafeInit
1745 #undef Tk_CreateConsoleWindow
1746 #define Tk_GetImageModelData Tk_GetImageMasterData
1747
1748 #if defined(_WIN32) && defined(UNICODE)
1749 # define Tk_MainEx Tk_MainExW
1750 EXTERN void Tk_MainExW(int argc, wchar_t **argv,
1751 Tcl_AppInitProc *appInitProc, Tcl_Interp *interp);
1752 #endif
1753
1754 #undef TCL_STORAGE_CLASS
1755 #define TCL_STORAGE_CLASS DLLIMPORT
1756
1757 #undef TkUnusedStubEntry
1758
1759 #endif