File indexing completed on 2025-01-17 09:56:11
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef _TKINTDECLS
0016 #define _TKINTDECLS
0017
0018 #ifdef BUILD_tk
0019 #undef TCL_STORAGE_CLASS
0020 #define TCL_STORAGE_CLASS DLLEXPORT
0021 #endif
0022
0023 struct TkText;
0024 typedef struct TkTextBTree_ *TkTextBTree;
0025 struct TkTextDispChunk;
0026 struct TkTextIndex;
0027 struct TkTextSegment;
0028 struct TkSharedText;
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 #ifdef __cplusplus
0039 extern "C" {
0040 #endif
0041
0042
0043
0044
0045
0046
0047 EXTERN TkWindow * TkAllocWindow(TkDisplay *dispPtr, int screenNum,
0048 TkWindow *parentPtr);
0049
0050 EXTERN void TkBezierPoints(double control[], int numSteps,
0051 double *coordPtr);
0052
0053 EXTERN void TkBezierScreenPoints(Tk_Canvas canvas,
0054 double control[], int numSteps,
0055 XPoint *xPointPtr);
0056
0057
0058 EXTERN void TkBindEventProc(TkWindow *winPtr, XEvent *eventPtr);
0059
0060 EXTERN void TkBindFree(TkMainInfo *mainPtr);
0061
0062 EXTERN void TkBindInit(TkMainInfo *mainPtr);
0063
0064 EXTERN void TkChangeEventWindow(XEvent *eventPtr,
0065 TkWindow *winPtr);
0066
0067 EXTERN int TkClipInit(Tcl_Interp *interp, TkDisplay *dispPtr);
0068
0069 EXTERN void TkComputeAnchor(Tk_Anchor anchor, Tk_Window tkwin,
0070 int padX, int padY, int innerWidth,
0071 int innerHeight, int *xPtr, int *yPtr);
0072
0073
0074
0075 EXTERN TkCursor * TkCreateCursorFromData(Tk_Window tkwin,
0076 const char *source, const char *mask,
0077 int width, int height, int xHot, int yHot,
0078 XColor fg, XColor bg);
0079
0080 EXTERN int TkCreateFrame(ClientData clientData,
0081 Tcl_Interp *interp, int argc,
0082 const char *const *argv, int toplevel,
0083 const char *appName);
0084
0085 EXTERN Tk_Window TkCreateMainWindow(Tcl_Interp *interp,
0086 const char *screenName, const char *baseName);
0087
0088 EXTERN Time TkCurrentTime(TkDisplay *dispPtr);
0089
0090 EXTERN void TkDeleteAllImages(TkMainInfo *mainPtr);
0091
0092 EXTERN void TkDoConfigureNotify(TkWindow *winPtr);
0093
0094 EXTERN void TkDrawInsetFocusHighlight(Tk_Window tkwin, GC gc,
0095 int width, Drawable drawable, int padding);
0096
0097 EXTERN void TkEventDeadWindow(TkWindow *winPtr);
0098
0099 EXTERN void TkFillPolygon(Tk_Canvas canvas, double *coordPtr,
0100 int numPoints, Display *display,
0101 Drawable drawable, GC gc, GC outlineGC);
0102
0103 EXTERN int TkFindStateNum(Tcl_Interp *interp,
0104 const char *option, const TkStateMap *mapPtr,
0105 const char *strKey);
0106
0107 EXTERN CONST86 char * TkFindStateString(const TkStateMap *mapPtr,
0108 int numKey);
0109
0110 EXTERN void TkFocusDeadWindow(TkWindow *winPtr);
0111
0112 EXTERN int TkFocusFilterEvent(TkWindow *winPtr,
0113 XEvent *eventPtr);
0114
0115 EXTERN TkWindow * TkFocusKeyEvent(TkWindow *winPtr, XEvent *eventPtr);
0116
0117 EXTERN void TkFontPkgInit(TkMainInfo *mainPtr);
0118
0119 EXTERN void TkFontPkgFree(TkMainInfo *mainPtr);
0120
0121 EXTERN void TkFreeBindingTags(TkWindow *winPtr);
0122
0123 EXTERN void TkpFreeCursor(TkCursor *cursorPtr);
0124
0125 EXTERN char * TkGetBitmapData(Tcl_Interp *interp,
0126 const char *string, const char *fileName,
0127 int *widthPtr, int *heightPtr, int *hotXPtr,
0128 int *hotYPtr);
0129
0130 EXTERN void TkGetButtPoints(double p1[], double p2[],
0131 double width, int project, double m1[],
0132 double m2[]);
0133
0134 EXTERN TkCursor * TkGetCursorByName(Tcl_Interp *interp,
0135 Tk_Window tkwin, Tk_Uid string);
0136
0137 EXTERN const char * TkGetDefaultScreenName(Tcl_Interp *interp,
0138 const char *screenName);
0139
0140 EXTERN TkDisplay * TkGetDisplay(Display *display);
0141
0142 EXTERN int TkGetDisplayOf(Tcl_Interp *interp, int objc,
0143 Tcl_Obj *const objv[], Tk_Window *tkwinPtr);
0144
0145 EXTERN TkWindow * TkGetFocusWin(TkWindow *winPtr);
0146
0147 EXTERN int TkGetInterpNames(Tcl_Interp *interp, Tk_Window tkwin);
0148
0149 EXTERN int TkGetMiterPoints(double p1[], double p2[],
0150 double p3[], double width, double m1[],
0151 double m2[]);
0152
0153 EXTERN void TkGetPointerCoords(Tk_Window tkwin, int *xPtr,
0154 int *yPtr);
0155
0156 EXTERN void TkGetServerInfo(Tcl_Interp *interp, Tk_Window tkwin);
0157
0158 EXTERN void TkGrabDeadWindow(TkWindow *winPtr);
0159
0160 EXTERN int TkGrabState(TkWindow *winPtr);
0161
0162 EXTERN void TkIncludePoint(Tk_Item *itemPtr, double *pointPtr);
0163
0164 EXTERN void TkInOutEvents(XEvent *eventPtr, TkWindow *sourcePtr,
0165 TkWindow *destPtr, int leaveType,
0166 int enterType, Tcl_QueuePosition position);
0167
0168 EXTERN void TkInstallFrameMenu(Tk_Window tkwin);
0169
0170 EXTERN CONST86 char * TkKeysymToString(KeySym keysym);
0171
0172 EXTERN int TkLineToArea(double end1Ptr[], double end2Ptr[],
0173 double rectPtr[]);
0174
0175 EXTERN double TkLineToPoint(double end1Ptr[], double end2Ptr[],
0176 double pointPtr[]);
0177
0178 EXTERN int TkMakeBezierCurve(Tk_Canvas canvas, double *pointPtr,
0179 int numPoints, int numSteps,
0180 XPoint xPoints[], double dblPoints[]);
0181
0182 EXTERN void TkMakeBezierPostscript(Tcl_Interp *interp,
0183 Tk_Canvas canvas, double *pointPtr,
0184 int numPoints);
0185
0186 EXTERN void TkOptionClassChanged(TkWindow *winPtr);
0187
0188 EXTERN void TkOptionDeadWindow(TkWindow *winPtr);
0189
0190 EXTERN int TkOvalToArea(double *ovalPtr, double *rectPtr);
0191
0192 EXTERN double TkOvalToPoint(double ovalPtr[], double width,
0193 int filled, double pointPtr[]);
0194
0195 EXTERN int TkpChangeFocus(TkWindow *winPtr, int force);
0196
0197 EXTERN void TkpCloseDisplay(TkDisplay *dispPtr);
0198
0199 EXTERN void TkpClaimFocus(TkWindow *topLevelPtr, int force);
0200
0201 EXTERN void TkpDisplayWarning(const char *msg, const char *title);
0202
0203 EXTERN void TkpGetAppName(Tcl_Interp *interp, Tcl_DString *name);
0204
0205 EXTERN TkWindow * TkpGetOtherWindow(TkWindow *winPtr);
0206
0207 EXTERN TkWindow * TkpGetWrapperWindow(TkWindow *winPtr);
0208
0209 EXTERN int TkpInit(Tcl_Interp *interp);
0210
0211 EXTERN void TkpInitializeMenuBindings(Tcl_Interp *interp,
0212 Tk_BindingTable bindingTable);
0213
0214 EXTERN void TkpMakeContainer(Tk_Window tkwin);
0215
0216 EXTERN void TkpMakeMenuWindow(Tk_Window tkwin, int transient);
0217
0218 EXTERN Window TkpMakeWindow(TkWindow *winPtr, Window parent);
0219
0220 EXTERN void TkpMenuNotifyToplevelCreate(Tcl_Interp *interp,
0221 const char *menuName);
0222
0223 EXTERN TkDisplay * TkpOpenDisplay(const char *display_name);
0224
0225 EXTERN int TkPointerEvent(XEvent *eventPtr, TkWindow *winPtr);
0226
0227 EXTERN int TkPolygonToArea(double *polyPtr, int numPoints,
0228 double *rectPtr);
0229
0230 EXTERN double TkPolygonToPoint(double *polyPtr, int numPoints,
0231 double *pointPtr);
0232
0233 EXTERN int TkPositionInTree(TkWindow *winPtr, TkWindow *treePtr);
0234
0235 EXTERN void TkpRedirectKeyEvent(TkWindow *winPtr,
0236 XEvent *eventPtr);
0237
0238 EXTERN void TkpSetMainMenubar(Tcl_Interp *interp,
0239 Tk_Window tkwin, const char *menuName);
0240
0241 EXTERN int TkpUseWindow(Tcl_Interp *interp, Tk_Window tkwin,
0242 const char *string);
0243
0244
0245 EXTERN void TkQueueEventForAllChildren(TkWindow *winPtr,
0246 XEvent *eventPtr);
0247
0248 EXTERN int TkReadBitmapFile(Display *display, Drawable d,
0249 const char *filename,
0250 unsigned int *width_return,
0251 unsigned int *height_return,
0252 Pixmap *bitmap_return, int *x_hot_return,
0253 int *y_hot_return);
0254
0255 EXTERN int TkScrollWindow(Tk_Window tkwin, GC gc, int x, int y,
0256 int width, int height, int dx, int dy,
0257 TkRegion damageRgn);
0258
0259 EXTERN void TkSelDeadWindow(TkWindow *winPtr);
0260
0261 EXTERN void TkSelEventProc(Tk_Window tkwin, XEvent *eventPtr);
0262
0263 EXTERN void TkSelInit(Tk_Window tkwin);
0264
0265 EXTERN void TkSelPropProc(XEvent *eventPtr);
0266
0267
0268 EXTERN void TkSetWindowMenuBar(Tcl_Interp *interp,
0269 Tk_Window tkwin, const char *oldMenuName,
0270 const char *menuName);
0271
0272 EXTERN KeySym TkStringToKeysym(const char *name);
0273
0274 EXTERN int TkThickPolyLineToArea(double *coordPtr,
0275 int numPoints, double width, int capStyle,
0276 int joinStyle, double *rectPtr);
0277
0278 EXTERN void TkWmAddToColormapWindows(TkWindow *winPtr);
0279
0280 EXTERN void TkWmDeadWindow(TkWindow *winPtr);
0281
0282 EXTERN TkWindow * TkWmFocusToplevel(TkWindow *winPtr);
0283
0284 EXTERN void TkWmMapWindow(TkWindow *winPtr);
0285
0286 EXTERN void TkWmNewWindow(TkWindow *winPtr);
0287
0288 EXTERN void TkWmProtocolEventProc(TkWindow *winPtr,
0289 XEvent *evenvPtr);
0290
0291 EXTERN void TkWmRemoveFromColormapWindows(TkWindow *winPtr);
0292
0293 EXTERN void TkWmRestackToplevel(TkWindow *winPtr, int aboveBelow,
0294 TkWindow *otherPtr);
0295
0296 EXTERN void TkWmSetClass(TkWindow *winPtr);
0297
0298 EXTERN void TkWmUnmapWindow(TkWindow *winPtr);
0299
0300 EXTERN Tcl_Obj * TkDebugBitmap(Tk_Window tkwin, const char *name);
0301
0302 EXTERN Tcl_Obj * TkDebugBorder(Tk_Window tkwin, const char *name);
0303
0304 EXTERN Tcl_Obj * TkDebugCursor(Tk_Window tkwin, const char *name);
0305
0306 EXTERN Tcl_Obj * TkDebugColor(Tk_Window tkwin, const char *name);
0307
0308 EXTERN Tcl_Obj * TkDebugConfig(Tcl_Interp *interp,
0309 Tk_OptionTable table);
0310
0311 EXTERN Tcl_Obj * TkDebugFont(Tk_Window tkwin, const char *name);
0312
0313 EXTERN int TkFindStateNumObj(Tcl_Interp *interp,
0314 Tcl_Obj *optionPtr, const TkStateMap *mapPtr,
0315 Tcl_Obj *keyPtr);
0316
0317 EXTERN Tcl_HashTable * TkGetBitmapPredefTable(void);
0318
0319 EXTERN TkDisplay * TkGetDisplayList(void);
0320
0321 EXTERN TkMainInfo * TkGetMainInfoList(void);
0322
0323 EXTERN int TkGetWindowFromObj(Tcl_Interp *interp,
0324 Tk_Window tkwin, Tcl_Obj *objPtr,
0325 Tk_Window *windowPtr);
0326
0327 EXTERN CONST86 char * TkpGetString(TkWindow *winPtr, XEvent *eventPtr,
0328 Tcl_DString *dsPtr);
0329
0330 EXTERN void TkpGetSubFonts(Tcl_Interp *interp, Tk_Font tkfont);
0331
0332 EXTERN Tcl_Obj * TkpGetSystemDefault(Tk_Window tkwin,
0333 const char *dbName, const char *className);
0334
0335 EXTERN void TkpMenuThreadInit(void);
0336
0337 EXTERN int TkClipBox(TkRegion rgn, XRectangle *rect_return);
0338
0339 EXTERN TkRegion TkCreateRegion(void);
0340
0341 EXTERN int TkDestroyRegion(TkRegion rgn);
0342
0343 EXTERN int TkIntersectRegion(TkRegion sra, TkRegion srcb,
0344 TkRegion dr_return);
0345
0346 EXTERN int TkRectInRegion(TkRegion rgn, int x, int y,
0347 unsigned int width, unsigned int height);
0348
0349 EXTERN int TkSetRegion(Display *display, GC gc, TkRegion rgn);
0350
0351 EXTERN int TkUnionRectWithRegion(XRectangle *rect, TkRegion src,
0352 TkRegion dr_return);
0353
0354 #ifdef MAC_OSX_TK
0355
0356 EXTERN Pixmap TkpCreateNativeBitmap(Display *display,
0357 const void *source);
0358 #endif
0359 #ifdef MAC_OSX_TK
0360
0361 EXTERN void TkpDefineNativeBitmaps(void);
0362 #endif
0363
0364 #ifdef MAC_OSX_TK
0365
0366 EXTERN Pixmap TkpGetNativeAppBitmap(Display *display,
0367 const char *name, int *width, int *height);
0368 #endif
0369
0370
0371
0372
0373
0374
0375
0376
0377
0378
0379
0380 EXTERN void TkpDrawHighlightBorder(Tk_Window tkwin, GC fgGC,
0381 GC bgGC, int highlightWidth,
0382 Drawable drawable);
0383
0384 EXTERN void TkSetFocusWin(TkWindow *winPtr, int force);
0385
0386 EXTERN void TkpSetKeycodeAndState(Tk_Window tkwin, KeySym keySym,
0387 XEvent *eventPtr);
0388
0389 EXTERN KeySym TkpGetKeySym(TkDisplay *dispPtr, XEvent *eventPtr);
0390
0391 EXTERN void TkpInitKeymapInfo(TkDisplay *dispPtr);
0392
0393 EXTERN TkRegion TkPhotoGetValidRegion(Tk_PhotoHandle handle);
0394
0395 EXTERN TkWindow ** TkWmStackorderToplevel(TkWindow *parentPtr);
0396
0397 EXTERN void TkFocusFree(TkMainInfo *mainPtr);
0398
0399 EXTERN void TkClipCleanup(TkDisplay *dispPtr);
0400
0401 EXTERN void TkGCCleanup(TkDisplay *dispPtr);
0402
0403 EXTERN int TkSubtractRegion(TkRegion sra, TkRegion srcb,
0404 TkRegion dr_return);
0405
0406 EXTERN void TkStylePkgInit(TkMainInfo *mainPtr);
0407
0408 EXTERN void TkStylePkgFree(TkMainInfo *mainPtr);
0409
0410 EXTERN Tk_Window TkToplevelWindowForCommand(Tcl_Interp *interp,
0411 const char *cmdName);
0412
0413 EXTERN const Tk_OptionSpec * TkGetOptionSpec(const char *name,
0414 Tk_OptionTable optionTable);
0415
0416 EXTERN int TkMakeRawCurve(Tk_Canvas canvas, double *pointPtr,
0417 int numPoints, int numSteps,
0418 XPoint xPoints[], double dblPoints[]);
0419
0420 EXTERN void TkMakeRawCurvePostscript(Tcl_Interp *interp,
0421 Tk_Canvas canvas, double *pointPtr,
0422 int numPoints);
0423
0424 EXTERN void TkpDrawFrame(Tk_Window tkwin, Tk_3DBorder border,
0425 int highlightWidth, int borderWidth,
0426 int relief);
0427
0428 EXTERN void TkCreateThreadExitHandler(Tcl_ExitProc *proc,
0429 ClientData clientData);
0430
0431 EXTERN void TkDeleteThreadExitHandler(Tcl_ExitProc *proc,
0432 ClientData clientData);
0433
0434
0435 EXTERN int TkpTestembedCmd(ClientData clientData,
0436 Tcl_Interp *interp, int objc,
0437 Tcl_Obj *const objv[]);
0438
0439 EXTERN int TkpTesttextCmd(ClientData dummy, Tcl_Interp *interp,
0440 int objc, Tcl_Obj *const objv[]);
0441
0442 EXTERN int TkSelGetSelection(Tcl_Interp *interp,
0443 Tk_Window tkwin, Atom selection, Atom target,
0444 Tk_GetSelProc *proc, ClientData clientData);
0445
0446 EXTERN int TkTextGetIndex(Tcl_Interp *interp,
0447 struct TkText *textPtr, const char *string,
0448 struct TkTextIndex *indexPtr);
0449
0450 EXTERN int TkTextIndexBackBytes(const struct TkText *textPtr,
0451 const struct TkTextIndex *srcPtr, int count,
0452 struct TkTextIndex *dstPtr);
0453
0454 EXTERN int TkTextIndexForwBytes(const struct TkText *textPtr,
0455 const struct TkTextIndex *srcPtr, int count,
0456 struct TkTextIndex *dstPtr);
0457
0458 EXTERN struct TkTextIndex * TkTextMakeByteIndex(TkTextBTree tree,
0459 const struct TkText *textPtr, int lineIndex,
0460 int byteIndex, struct TkTextIndex *indexPtr);
0461
0462 EXTERN int TkTextPrintIndex(const struct TkText *textPtr,
0463 const struct TkTextIndex *indexPtr,
0464 char *string);
0465
0466 EXTERN struct TkTextSegment * TkTextSetMark(struct TkText *textPtr,
0467 const char *name,
0468 struct TkTextIndex *indexPtr);
0469
0470 EXTERN int TkTextXviewCmd(struct TkText *textPtr,
0471 Tcl_Interp *interp, int objc,
0472 Tcl_Obj *const objv[]);
0473
0474 EXTERN void TkTextChanged(struct TkSharedText *sharedTextPtr,
0475 struct TkText *textPtr,
0476 const struct TkTextIndex *index1Ptr,
0477 const struct TkTextIndex *index2Ptr);
0478
0479 EXTERN int TkBTreeNumLines(TkTextBTree tree,
0480 const struct TkText *textPtr);
0481
0482 EXTERN void TkTextInsertDisplayProc(struct TkText *textPtr,
0483 struct TkTextDispChunk *chunkPtr, int x,
0484 int y, int height, int baseline,
0485 Display *display, Drawable dst, int screenY);
0486
0487 EXTERN int TkStateParseProc(ClientData clientData,
0488 Tcl_Interp *interp, Tk_Window tkwin,
0489 const char *value, char *widgRec, int offset);
0490
0491 EXTERN CONST86 char * TkStatePrintProc(ClientData clientData,
0492 Tk_Window tkwin, char *widgRec, int offset,
0493 Tcl_FreeProc **freeProcPtr);
0494
0495 EXTERN int TkCanvasDashParseProc(ClientData clientData,
0496 Tcl_Interp *interp, Tk_Window tkwin,
0497 const char *value, char *widgRec, int offset);
0498
0499 EXTERN CONST86 char * TkCanvasDashPrintProc(ClientData clientData,
0500 Tk_Window tkwin, char *widgRec, int offset,
0501 Tcl_FreeProc **freeProcPtr);
0502
0503 EXTERN int TkOffsetParseProc(ClientData clientData,
0504 Tcl_Interp *interp, Tk_Window tkwin,
0505 const char *value, char *widgRec, int offset);
0506
0507 EXTERN CONST86 char * TkOffsetPrintProc(ClientData clientData,
0508 Tk_Window tkwin, char *widgRec, int offset,
0509 Tcl_FreeProc **freeProcPtr);
0510
0511 EXTERN int TkPixelParseProc(ClientData clientData,
0512 Tcl_Interp *interp, Tk_Window tkwin,
0513 const char *value, char *widgRec, int offset);
0514
0515 EXTERN CONST86 char * TkPixelPrintProc(ClientData clientData,
0516 Tk_Window tkwin, char *widgRec, int offset,
0517 Tcl_FreeProc **freeProcPtr);
0518
0519 EXTERN int TkOrientParseProc(ClientData clientData,
0520 Tcl_Interp *interp, Tk_Window tkwin,
0521 const char *value, char *widgRec, int offset);
0522
0523 EXTERN CONST86 char * TkOrientPrintProc(ClientData clientData,
0524 Tk_Window tkwin, char *widgRec, int offset,
0525 Tcl_FreeProc **freeProcPtr);
0526
0527 EXTERN int TkSmoothParseProc(ClientData clientData,
0528 Tcl_Interp *interp, Tk_Window tkwin,
0529 const char *value, char *widgRec, int offset);
0530
0531 EXTERN CONST86 char * TkSmoothPrintProc(ClientData clientData,
0532 Tk_Window tkwin, char *widgRec, int offset,
0533 Tcl_FreeProc **freeProcPtr);
0534
0535 EXTERN void TkDrawAngledTextLayout(Display *display,
0536 Drawable drawable, GC gc,
0537 Tk_TextLayout layout, int x, int y,
0538 double angle, int firstChar, int lastChar);
0539
0540 EXTERN void TkUnderlineAngledTextLayout(Display *display,
0541 Drawable drawable, GC gc,
0542 Tk_TextLayout layout, int x, int y,
0543 double angle, int underline);
0544
0545 EXTERN int TkIntersectAngledTextLayout(Tk_TextLayout layout,
0546 int x, int y, int width, int height,
0547 double angle);
0548
0549 EXTERN void TkDrawAngledChars(Display *display,
0550 Drawable drawable, GC gc, Tk_Font tkfont,
0551 const char *source, int numBytes, double x,
0552 double y, double angle);
0553 #ifdef MAC_OSX_TCL
0554
0555 EXTERN void TkpRedrawWidget(Tk_Window tkwin);
0556 #endif
0557 #ifdef MAC_OSX_TCL
0558
0559 EXTERN int TkpWillDrawWidget(Tk_Window tkwin);
0560 #endif
0561
0562 typedef struct TkIntStubs {
0563 int magic;
0564 void *hooks;
0565
0566 TkWindow * (*tkAllocWindow) (TkDisplay *dispPtr, int screenNum, TkWindow *parentPtr);
0567 void (*tkBezierPoints) (double control[], int numSteps, double *coordPtr);
0568 void (*tkBezierScreenPoints) (Tk_Canvas canvas, double control[], int numSteps, XPoint *xPointPtr);
0569 void (*reserved3)(void);
0570 void (*tkBindEventProc) (TkWindow *winPtr, XEvent *eventPtr);
0571 void (*tkBindFree) (TkMainInfo *mainPtr);
0572 void (*tkBindInit) (TkMainInfo *mainPtr);
0573 void (*tkChangeEventWindow) (XEvent *eventPtr, TkWindow *winPtr);
0574 int (*tkClipInit) (Tcl_Interp *interp, TkDisplay *dispPtr);
0575 void (*tkComputeAnchor) (Tk_Anchor anchor, Tk_Window tkwin, int padX, int padY, int innerWidth, int innerHeight, int *xPtr, int *yPtr);
0576 void (*reserved10)(void);
0577 void (*reserved11)(void);
0578 TkCursor * (*tkCreateCursorFromData) (Tk_Window tkwin, const char *source, const char *mask, int width, int height, int xHot, int yHot, XColor fg, XColor bg);
0579 int (*tkCreateFrame) (ClientData clientData, Tcl_Interp *interp, int argc, const char *const *argv, int toplevel, const char *appName);
0580 Tk_Window (*tkCreateMainWindow) (Tcl_Interp *interp, const char *screenName, const char *baseName);
0581 Time (*tkCurrentTime) (TkDisplay *dispPtr);
0582 void (*tkDeleteAllImages) (TkMainInfo *mainPtr);
0583 void (*tkDoConfigureNotify) (TkWindow *winPtr);
0584 void (*tkDrawInsetFocusHighlight) (Tk_Window tkwin, GC gc, int width, Drawable drawable, int padding);
0585 void (*tkEventDeadWindow) (TkWindow *winPtr);
0586 void (*tkFillPolygon) (Tk_Canvas canvas, double *coordPtr, int numPoints, Display *display, Drawable drawable, GC gc, GC outlineGC);
0587 int (*tkFindStateNum) (Tcl_Interp *interp, const char *option, const TkStateMap *mapPtr, const char *strKey);
0588 CONST86 char * (*tkFindStateString) (const TkStateMap *mapPtr, int numKey);
0589 void (*tkFocusDeadWindow) (TkWindow *winPtr);
0590 int (*tkFocusFilterEvent) (TkWindow *winPtr, XEvent *eventPtr);
0591 TkWindow * (*tkFocusKeyEvent) (TkWindow *winPtr, XEvent *eventPtr);
0592 void (*tkFontPkgInit) (TkMainInfo *mainPtr);
0593 void (*tkFontPkgFree) (TkMainInfo *mainPtr);
0594 void (*tkFreeBindingTags) (TkWindow *winPtr);
0595 void (*tkpFreeCursor) (TkCursor *cursorPtr);
0596 char * (*tkGetBitmapData) (Tcl_Interp *interp, const char *string, const char *fileName, int *widthPtr, int *heightPtr, int *hotXPtr, int *hotYPtr);
0597 void (*tkGetButtPoints) (double p1[], double p2[], double width, int project, double m1[], double m2[]);
0598 TkCursor * (*tkGetCursorByName) (Tcl_Interp *interp, Tk_Window tkwin, Tk_Uid string);
0599 const char * (*tkGetDefaultScreenName) (Tcl_Interp *interp, const char *screenName);
0600 TkDisplay * (*tkGetDisplay) (Display *display);
0601 int (*tkGetDisplayOf) (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], Tk_Window *tkwinPtr);
0602 TkWindow * (*tkGetFocusWin) (TkWindow *winPtr);
0603 int (*tkGetInterpNames) (Tcl_Interp *interp, Tk_Window tkwin);
0604 int (*tkGetMiterPoints) (double p1[], double p2[], double p3[], double width, double m1[], double m2[]);
0605 void (*tkGetPointerCoords) (Tk_Window tkwin, int *xPtr, int *yPtr);
0606 void (*tkGetServerInfo) (Tcl_Interp *interp, Tk_Window tkwin);
0607 void (*tkGrabDeadWindow) (TkWindow *winPtr);
0608 int (*tkGrabState) (TkWindow *winPtr);
0609 void (*tkIncludePoint) (Tk_Item *itemPtr, double *pointPtr);
0610 void (*tkInOutEvents) (XEvent *eventPtr, TkWindow *sourcePtr, TkWindow *destPtr, int leaveType, int enterType, Tcl_QueuePosition position);
0611 void (*tkInstallFrameMenu) (Tk_Window tkwin);
0612 CONST86 char * (*tkKeysymToString) (KeySym keysym);
0613 int (*tkLineToArea) (double end1Ptr[], double end2Ptr[], double rectPtr[]);
0614 double (*tkLineToPoint) (double end1Ptr[], double end2Ptr[], double pointPtr[]);
0615 int (*tkMakeBezierCurve) (Tk_Canvas canvas, double *pointPtr, int numPoints, int numSteps, XPoint xPoints[], double dblPoints[]);
0616 void (*tkMakeBezierPostscript) (Tcl_Interp *interp, Tk_Canvas canvas, double *pointPtr, int numPoints);
0617 void (*tkOptionClassChanged) (TkWindow *winPtr);
0618 void (*tkOptionDeadWindow) (TkWindow *winPtr);
0619 int (*tkOvalToArea) (double *ovalPtr, double *rectPtr);
0620 double (*tkOvalToPoint) (double ovalPtr[], double width, int filled, double pointPtr[]);
0621 int (*tkpChangeFocus) (TkWindow *winPtr, int force);
0622 void (*tkpCloseDisplay) (TkDisplay *dispPtr);
0623 void (*tkpClaimFocus) (TkWindow *topLevelPtr, int force);
0624 void (*tkpDisplayWarning) (const char *msg, const char *title);
0625 void (*tkpGetAppName) (Tcl_Interp *interp, Tcl_DString *name);
0626 TkWindow * (*tkpGetOtherWindow) (TkWindow *winPtr);
0627 TkWindow * (*tkpGetWrapperWindow) (TkWindow *winPtr);
0628 int (*tkpInit) (Tcl_Interp *interp);
0629 void (*tkpInitializeMenuBindings) (Tcl_Interp *interp, Tk_BindingTable bindingTable);
0630 void (*tkpMakeContainer) (Tk_Window tkwin);
0631 void (*tkpMakeMenuWindow) (Tk_Window tkwin, int transient);
0632 Window (*tkpMakeWindow) (TkWindow *winPtr, Window parent);
0633 void (*tkpMenuNotifyToplevelCreate) (Tcl_Interp *interp, const char *menuName);
0634 TkDisplay * (*tkpOpenDisplay) (const char *display_name);
0635 int (*tkPointerEvent) (XEvent *eventPtr, TkWindow *winPtr);
0636 int (*tkPolygonToArea) (double *polyPtr, int numPoints, double *rectPtr);
0637 double (*tkPolygonToPoint) (double *polyPtr, int numPoints, double *pointPtr);
0638 int (*tkPositionInTree) (TkWindow *winPtr, TkWindow *treePtr);
0639 void (*tkpRedirectKeyEvent) (TkWindow *winPtr, XEvent *eventPtr);
0640 void (*tkpSetMainMenubar) (Tcl_Interp *interp, Tk_Window tkwin, const char *menuName);
0641 int (*tkpUseWindow) (Tcl_Interp *interp, Tk_Window tkwin, const char *string);
0642 void (*reserved76)(void);
0643 void (*tkQueueEventForAllChildren) (TkWindow *winPtr, XEvent *eventPtr);
0644 int (*tkReadBitmapFile) (Display *display, Drawable d, const char *filename, unsigned int *width_return, unsigned int *height_return, Pixmap *bitmap_return, int *x_hot_return, int *y_hot_return);
0645 int (*tkScrollWindow) (Tk_Window tkwin, GC gc, int x, int y, int width, int height, int dx, int dy, TkRegion damageRgn);
0646 void (*tkSelDeadWindow) (TkWindow *winPtr);
0647 void (*tkSelEventProc) (Tk_Window tkwin, XEvent *eventPtr);
0648 void (*tkSelInit) (Tk_Window tkwin);
0649 void (*tkSelPropProc) (XEvent *eventPtr);
0650 void (*reserved84)(void);
0651 void (*tkSetWindowMenuBar) (Tcl_Interp *interp, Tk_Window tkwin, const char *oldMenuName, const char *menuName);
0652 KeySym (*tkStringToKeysym) (const char *name);
0653 int (*tkThickPolyLineToArea) (double *coordPtr, int numPoints, double width, int capStyle, int joinStyle, double *rectPtr);
0654 void (*tkWmAddToColormapWindows) (TkWindow *winPtr);
0655 void (*tkWmDeadWindow) (TkWindow *winPtr);
0656 TkWindow * (*tkWmFocusToplevel) (TkWindow *winPtr);
0657 void (*tkWmMapWindow) (TkWindow *winPtr);
0658 void (*tkWmNewWindow) (TkWindow *winPtr);
0659 void (*tkWmProtocolEventProc) (TkWindow *winPtr, XEvent *evenvPtr);
0660 void (*tkWmRemoveFromColormapWindows) (TkWindow *winPtr);
0661 void (*tkWmRestackToplevel) (TkWindow *winPtr, int aboveBelow, TkWindow *otherPtr);
0662 void (*tkWmSetClass) (TkWindow *winPtr);
0663 void (*tkWmUnmapWindow) (TkWindow *winPtr);
0664 Tcl_Obj * (*tkDebugBitmap) (Tk_Window tkwin, const char *name);
0665 Tcl_Obj * (*tkDebugBorder) (Tk_Window tkwin, const char *name);
0666 Tcl_Obj * (*tkDebugCursor) (Tk_Window tkwin, const char *name);
0667 Tcl_Obj * (*tkDebugColor) (Tk_Window tkwin, const char *name);
0668 Tcl_Obj * (*tkDebugConfig) (Tcl_Interp *interp, Tk_OptionTable table);
0669 Tcl_Obj * (*tkDebugFont) (Tk_Window tkwin, const char *name);
0670 int (*tkFindStateNumObj) (Tcl_Interp *interp, Tcl_Obj *optionPtr, const TkStateMap *mapPtr, Tcl_Obj *keyPtr);
0671 Tcl_HashTable * (*tkGetBitmapPredefTable) (void);
0672 TkDisplay * (*tkGetDisplayList) (void);
0673 TkMainInfo * (*tkGetMainInfoList) (void);
0674 int (*tkGetWindowFromObj) (Tcl_Interp *interp, Tk_Window tkwin, Tcl_Obj *objPtr, Tk_Window *windowPtr);
0675 CONST86 char * (*tkpGetString) (TkWindow *winPtr, XEvent *eventPtr, Tcl_DString *dsPtr);
0676 void (*tkpGetSubFonts) (Tcl_Interp *interp, Tk_Font tkfont);
0677 Tcl_Obj * (*tkpGetSystemDefault) (Tk_Window tkwin, const char *dbName, const char *className);
0678 void (*tkpMenuThreadInit) (void);
0679 int (*tkClipBox) (TkRegion rgn, XRectangle *rect_return);
0680 TkRegion (*tkCreateRegion) (void);
0681 int (*tkDestroyRegion) (TkRegion rgn);
0682 int (*tkIntersectRegion) (TkRegion sra, TkRegion srcb, TkRegion dr_return);
0683 int (*tkRectInRegion) (TkRegion rgn, int x, int y, unsigned int width, unsigned int height);
0684 int (*tkSetRegion) (Display *display, GC gc, TkRegion rgn);
0685 int (*tkUnionRectWithRegion) (XRectangle *rect, TkRegion src, TkRegion dr_return);
0686 void (*reserved120)(void);
0687 #if !(defined(_WIN32) || defined(MAC_OSX_TK))
0688 void (*reserved121)(void);
0689 #endif
0690 #if defined(_WIN32)
0691 void (*reserved121)(void);
0692 #endif
0693 #ifdef MAC_OSX_TK
0694 void (*reserved121)(void);
0695 Pixmap (*tkpCreateNativeBitmap) (Display *display, const void *source);
0696 #endif
0697 #if !(defined(_WIN32) || defined(MAC_OSX_TK))
0698 void (*reserved122)(void);
0699 #endif
0700 #if defined(_WIN32)
0701 void (*reserved122)(void);
0702 #endif
0703 #ifdef MAC_OSX_TK
0704 void (*reserved122)(void);
0705 void (*tkpDefineNativeBitmaps) (void);
0706 #endif
0707 void (*reserved123)(void);
0708 #if !(defined(_WIN32) || defined(MAC_OSX_TK))
0709 void (*reserved124)(void);
0710 #endif
0711 #if defined(_WIN32)
0712 void (*reserved124)(void);
0713 #endif
0714 #ifdef MAC_OSX_TK
0715 void (*reserved124)(void);
0716 Pixmap (*tkpGetNativeAppBitmap) (Display *display, const char *name, int *width, int *height);
0717 #endif
0718 void (*reserved125)(void);
0719 void (*reserved126)(void);
0720 void (*reserved127)(void);
0721 void (*reserved128)(void);
0722 void (*reserved129)(void);
0723 void (*reserved130)(void);
0724 void (*reserved131)(void);
0725 void (*reserved132)(void);
0726 void (*reserved133)(void);
0727 void (*reserved134)(void);
0728 void (*tkpDrawHighlightBorder) (Tk_Window tkwin, GC fgGC, GC bgGC, int highlightWidth, Drawable drawable);
0729 void (*tkSetFocusWin) (TkWindow *winPtr, int force);
0730 void (*tkpSetKeycodeAndState) (Tk_Window tkwin, KeySym keySym, XEvent *eventPtr);
0731 KeySym (*tkpGetKeySym) (TkDisplay *dispPtr, XEvent *eventPtr);
0732 void (*tkpInitKeymapInfo) (TkDisplay *dispPtr);
0733 TkRegion (*tkPhotoGetValidRegion) (Tk_PhotoHandle handle);
0734 TkWindow ** (*tkWmStackorderToplevel) (TkWindow *parentPtr);
0735 void (*tkFocusFree) (TkMainInfo *mainPtr);
0736 void (*tkClipCleanup) (TkDisplay *dispPtr);
0737 void (*tkGCCleanup) (TkDisplay *dispPtr);
0738 int (*tkSubtractRegion) (TkRegion sra, TkRegion srcb, TkRegion dr_return);
0739 void (*tkStylePkgInit) (TkMainInfo *mainPtr);
0740 void (*tkStylePkgFree) (TkMainInfo *mainPtr);
0741 Tk_Window (*tkToplevelWindowForCommand) (Tcl_Interp *interp, const char *cmdName);
0742 const Tk_OptionSpec * (*tkGetOptionSpec) (const char *name, Tk_OptionTable optionTable);
0743 int (*tkMakeRawCurve) (Tk_Canvas canvas, double *pointPtr, int numPoints, int numSteps, XPoint xPoints[], double dblPoints[]);
0744 void (*tkMakeRawCurvePostscript) (Tcl_Interp *interp, Tk_Canvas canvas, double *pointPtr, int numPoints);
0745 void (*tkpDrawFrame) (Tk_Window tkwin, Tk_3DBorder border, int highlightWidth, int borderWidth, int relief);
0746 void (*tkCreateThreadExitHandler) (Tcl_ExitProc *proc, ClientData clientData);
0747 void (*tkDeleteThreadExitHandler) (Tcl_ExitProc *proc, ClientData clientData);
0748 void (*reserved155)(void);
0749 int (*tkpTestembedCmd) (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]);
0750 int (*tkpTesttextCmd) (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]);
0751 int (*tkSelGetSelection) (Tcl_Interp *interp, Tk_Window tkwin, Atom selection, Atom target, Tk_GetSelProc *proc, ClientData clientData);
0752 int (*tkTextGetIndex) (Tcl_Interp *interp, struct TkText *textPtr, const char *string, struct TkTextIndex *indexPtr);
0753 int (*tkTextIndexBackBytes) (const struct TkText *textPtr, const struct TkTextIndex *srcPtr, int count, struct TkTextIndex *dstPtr);
0754 int (*tkTextIndexForwBytes) (const struct TkText *textPtr, const struct TkTextIndex *srcPtr, int count, struct TkTextIndex *dstPtr);
0755 struct TkTextIndex * (*tkTextMakeByteIndex) (TkTextBTree tree, const struct TkText *textPtr, int lineIndex, int byteIndex, struct TkTextIndex *indexPtr);
0756 int (*tkTextPrintIndex) (const struct TkText *textPtr, const struct TkTextIndex *indexPtr, char *string);
0757 struct TkTextSegment * (*tkTextSetMark) (struct TkText *textPtr, const char *name, struct TkTextIndex *indexPtr);
0758 int (*tkTextXviewCmd) (struct TkText *textPtr, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]);
0759 void (*tkTextChanged) (struct TkSharedText *sharedTextPtr, struct TkText *textPtr, const struct TkTextIndex *index1Ptr, const struct TkTextIndex *index2Ptr);
0760 int (*tkBTreeNumLines) (TkTextBTree tree, const struct TkText *textPtr);
0761 void (*tkTextInsertDisplayProc) (struct TkText *textPtr, struct TkTextDispChunk *chunkPtr, int x, int y, int height, int baseline, Display *display, Drawable dst, int screenY);
0762 int (*tkStateParseProc) (ClientData clientData, Tcl_Interp *interp, Tk_Window tkwin, const char *value, char *widgRec, int offset);
0763 CONST86 char * (*tkStatePrintProc) (ClientData clientData, Tk_Window tkwin, char *widgRec, int offset, Tcl_FreeProc **freeProcPtr);
0764 int (*tkCanvasDashParseProc) (ClientData clientData, Tcl_Interp *interp, Tk_Window tkwin, const char *value, char *widgRec, int offset);
0765 CONST86 char * (*tkCanvasDashPrintProc) (ClientData clientData, Tk_Window tkwin, char *widgRec, int offset, Tcl_FreeProc **freeProcPtr);
0766 int (*tkOffsetParseProc) (ClientData clientData, Tcl_Interp *interp, Tk_Window tkwin, const char *value, char *widgRec, int offset);
0767 CONST86 char * (*tkOffsetPrintProc) (ClientData clientData, Tk_Window tkwin, char *widgRec, int offset, Tcl_FreeProc **freeProcPtr);
0768 int (*tkPixelParseProc) (ClientData clientData, Tcl_Interp *interp, Tk_Window tkwin, const char *value, char *widgRec, int offset);
0769 CONST86 char * (*tkPixelPrintProc) (ClientData clientData, Tk_Window tkwin, char *widgRec, int offset, Tcl_FreeProc **freeProcPtr);
0770 int (*tkOrientParseProc) (ClientData clientData, Tcl_Interp *interp, Tk_Window tkwin, const char *value, char *widgRec, int offset);
0771 CONST86 char * (*tkOrientPrintProc) (ClientData clientData, Tk_Window tkwin, char *widgRec, int offset, Tcl_FreeProc **freeProcPtr);
0772 int (*tkSmoothParseProc) (ClientData clientData, Tcl_Interp *interp, Tk_Window tkwin, const char *value, char *widgRec, int offset);
0773 CONST86 char * (*tkSmoothPrintProc) (ClientData clientData, Tk_Window tkwin, char *widgRec, int offset, Tcl_FreeProc **freeProcPtr);
0774 void (*tkDrawAngledTextLayout) (Display *display, Drawable drawable, GC gc, Tk_TextLayout layout, int x, int y, double angle, int firstChar, int lastChar);
0775 void (*tkUnderlineAngledTextLayout) (Display *display, Drawable drawable, GC gc, Tk_TextLayout layout, int x, int y, double angle, int underline);
0776 int (*tkIntersectAngledTextLayout) (Tk_TextLayout layout, int x, int y, int width, int height, double angle);
0777 void (*tkDrawAngledChars) (Display *display, Drawable drawable, GC gc, Tk_Font tkfont, const char *source, int numBytes, double x, double y, double angle);
0778 #if !defined(_WIN32) && !defined(MAC_OSX_TCL)
0779 void (*reserved185)(void);
0780 #endif
0781 #if defined(_WIN32)
0782 void (*reserved185)(void);
0783 #endif
0784 #ifdef MAC_OSX_TCL
0785 void (*tkpRedrawWidget) (Tk_Window tkwin);
0786 #endif
0787 #if !defined(_WIN32) && !defined(MAC_OSX_TCL)
0788 void (*reserved186)(void);
0789 #endif
0790 #if defined(_WIN32)
0791 void (*reserved186)(void);
0792 #endif
0793 #ifdef MAC_OSX_TCL
0794 int (*tkpWillDrawWidget) (Tk_Window tkwin);
0795 #endif
0796 } TkIntStubs;
0797
0798 extern const TkIntStubs *tkIntStubsPtr;
0799
0800 #ifdef __cplusplus
0801 }
0802 #endif
0803
0804 #if defined(USE_TK_STUBS)
0805
0806
0807
0808
0809
0810 #define TkAllocWindow \
0811 (tkIntStubsPtr->tkAllocWindow)
0812 #define TkBezierPoints \
0813 (tkIntStubsPtr->tkBezierPoints)
0814 #define TkBezierScreenPoints \
0815 (tkIntStubsPtr->tkBezierScreenPoints)
0816
0817 #define TkBindEventProc \
0818 (tkIntStubsPtr->tkBindEventProc)
0819 #define TkBindFree \
0820 (tkIntStubsPtr->tkBindFree)
0821 #define TkBindInit \
0822 (tkIntStubsPtr->tkBindInit)
0823 #define TkChangeEventWindow \
0824 (tkIntStubsPtr->tkChangeEventWindow)
0825 #define TkClipInit \
0826 (tkIntStubsPtr->tkClipInit)
0827 #define TkComputeAnchor \
0828 (tkIntStubsPtr->tkComputeAnchor)
0829
0830
0831 #define TkCreateCursorFromData \
0832 (tkIntStubsPtr->tkCreateCursorFromData)
0833 #define TkCreateFrame \
0834 (tkIntStubsPtr->tkCreateFrame)
0835 #define TkCreateMainWindow \
0836 (tkIntStubsPtr->tkCreateMainWindow)
0837 #define TkCurrentTime \
0838 (tkIntStubsPtr->tkCurrentTime)
0839 #define TkDeleteAllImages \
0840 (tkIntStubsPtr->tkDeleteAllImages)
0841 #define TkDoConfigureNotify \
0842 (tkIntStubsPtr->tkDoConfigureNotify)
0843 #define TkDrawInsetFocusHighlight \
0844 (tkIntStubsPtr->tkDrawInsetFocusHighlight)
0845 #define TkEventDeadWindow \
0846 (tkIntStubsPtr->tkEventDeadWindow)
0847 #define TkFillPolygon \
0848 (tkIntStubsPtr->tkFillPolygon)
0849 #define TkFindStateNum \
0850 (tkIntStubsPtr->tkFindStateNum)
0851 #define TkFindStateString \
0852 (tkIntStubsPtr->tkFindStateString)
0853 #define TkFocusDeadWindow \
0854 (tkIntStubsPtr->tkFocusDeadWindow)
0855 #define TkFocusFilterEvent \
0856 (tkIntStubsPtr->tkFocusFilterEvent)
0857 #define TkFocusKeyEvent \
0858 (tkIntStubsPtr->tkFocusKeyEvent)
0859 #define TkFontPkgInit \
0860 (tkIntStubsPtr->tkFontPkgInit)
0861 #define TkFontPkgFree \
0862 (tkIntStubsPtr->tkFontPkgFree)
0863 #define TkFreeBindingTags \
0864 (tkIntStubsPtr->tkFreeBindingTags)
0865 #define TkpFreeCursor \
0866 (tkIntStubsPtr->tkpFreeCursor)
0867 #define TkGetBitmapData \
0868 (tkIntStubsPtr->tkGetBitmapData)
0869 #define TkGetButtPoints \
0870 (tkIntStubsPtr->tkGetButtPoints)
0871 #define TkGetCursorByName \
0872 (tkIntStubsPtr->tkGetCursorByName)
0873 #define TkGetDefaultScreenName \
0874 (tkIntStubsPtr->tkGetDefaultScreenName)
0875 #define TkGetDisplay \
0876 (tkIntStubsPtr->tkGetDisplay)
0877 #define TkGetDisplayOf \
0878 (tkIntStubsPtr->tkGetDisplayOf)
0879 #define TkGetFocusWin \
0880 (tkIntStubsPtr->tkGetFocusWin)
0881 #define TkGetInterpNames \
0882 (tkIntStubsPtr->tkGetInterpNames)
0883 #define TkGetMiterPoints \
0884 (tkIntStubsPtr->tkGetMiterPoints)
0885 #define TkGetPointerCoords \
0886 (tkIntStubsPtr->tkGetPointerCoords)
0887 #define TkGetServerInfo \
0888 (tkIntStubsPtr->tkGetServerInfo)
0889 #define TkGrabDeadWindow \
0890 (tkIntStubsPtr->tkGrabDeadWindow)
0891 #define TkGrabState \
0892 (tkIntStubsPtr->tkGrabState)
0893 #define TkIncludePoint \
0894 (tkIntStubsPtr->tkIncludePoint)
0895 #define TkInOutEvents \
0896 (tkIntStubsPtr->tkInOutEvents)
0897 #define TkInstallFrameMenu \
0898 (tkIntStubsPtr->tkInstallFrameMenu)
0899 #define TkKeysymToString \
0900 (tkIntStubsPtr->tkKeysymToString)
0901 #define TkLineToArea \
0902 (tkIntStubsPtr->tkLineToArea)
0903 #define TkLineToPoint \
0904 (tkIntStubsPtr->tkLineToPoint)
0905 #define TkMakeBezierCurve \
0906 (tkIntStubsPtr->tkMakeBezierCurve)
0907 #define TkMakeBezierPostscript \
0908 (tkIntStubsPtr->tkMakeBezierPostscript)
0909 #define TkOptionClassChanged \
0910 (tkIntStubsPtr->tkOptionClassChanged)
0911 #define TkOptionDeadWindow \
0912 (tkIntStubsPtr->tkOptionDeadWindow)
0913 #define TkOvalToArea \
0914 (tkIntStubsPtr->tkOvalToArea)
0915 #define TkOvalToPoint \
0916 (tkIntStubsPtr->tkOvalToPoint)
0917 #define TkpChangeFocus \
0918 (tkIntStubsPtr->tkpChangeFocus)
0919 #define TkpCloseDisplay \
0920 (tkIntStubsPtr->tkpCloseDisplay)
0921 #define TkpClaimFocus \
0922 (tkIntStubsPtr->tkpClaimFocus)
0923 #define TkpDisplayWarning \
0924 (tkIntStubsPtr->tkpDisplayWarning)
0925 #define TkpGetAppName \
0926 (tkIntStubsPtr->tkpGetAppName)
0927 #define TkpGetOtherWindow \
0928 (tkIntStubsPtr->tkpGetOtherWindow)
0929 #define TkpGetWrapperWindow \
0930 (tkIntStubsPtr->tkpGetWrapperWindow)
0931 #define TkpInit \
0932 (tkIntStubsPtr->tkpInit)
0933 #define TkpInitializeMenuBindings \
0934 (tkIntStubsPtr->tkpInitializeMenuBindings)
0935 #define TkpMakeContainer \
0936 (tkIntStubsPtr->tkpMakeContainer)
0937 #define TkpMakeMenuWindow \
0938 (tkIntStubsPtr->tkpMakeMenuWindow)
0939 #define TkpMakeWindow \
0940 (tkIntStubsPtr->tkpMakeWindow)
0941 #define TkpMenuNotifyToplevelCreate \
0942 (tkIntStubsPtr->tkpMenuNotifyToplevelCreate)
0943 #define TkpOpenDisplay \
0944 (tkIntStubsPtr->tkpOpenDisplay)
0945 #define TkPointerEvent \
0946 (tkIntStubsPtr->tkPointerEvent)
0947 #define TkPolygonToArea \
0948 (tkIntStubsPtr->tkPolygonToArea)
0949 #define TkPolygonToPoint \
0950 (tkIntStubsPtr->tkPolygonToPoint)
0951 #define TkPositionInTree \
0952 (tkIntStubsPtr->tkPositionInTree)
0953 #define TkpRedirectKeyEvent \
0954 (tkIntStubsPtr->tkpRedirectKeyEvent)
0955 #define TkpSetMainMenubar \
0956 (tkIntStubsPtr->tkpSetMainMenubar)
0957 #define TkpUseWindow \
0958 (tkIntStubsPtr->tkpUseWindow)
0959
0960 #define TkQueueEventForAllChildren \
0961 (tkIntStubsPtr->tkQueueEventForAllChildren)
0962 #define TkReadBitmapFile \
0963 (tkIntStubsPtr->tkReadBitmapFile)
0964 #define TkScrollWindow \
0965 (tkIntStubsPtr->tkScrollWindow)
0966 #define TkSelDeadWindow \
0967 (tkIntStubsPtr->tkSelDeadWindow)
0968 #define TkSelEventProc \
0969 (tkIntStubsPtr->tkSelEventProc)
0970 #define TkSelInit \
0971 (tkIntStubsPtr->tkSelInit)
0972 #define TkSelPropProc \
0973 (tkIntStubsPtr->tkSelPropProc)
0974
0975 #define TkSetWindowMenuBar \
0976 (tkIntStubsPtr->tkSetWindowMenuBar)
0977 #define TkStringToKeysym \
0978 (tkIntStubsPtr->tkStringToKeysym)
0979 #define TkThickPolyLineToArea \
0980 (tkIntStubsPtr->tkThickPolyLineToArea)
0981 #define TkWmAddToColormapWindows \
0982 (tkIntStubsPtr->tkWmAddToColormapWindows)
0983 #define TkWmDeadWindow \
0984 (tkIntStubsPtr->tkWmDeadWindow)
0985 #define TkWmFocusToplevel \
0986 (tkIntStubsPtr->tkWmFocusToplevel)
0987 #define TkWmMapWindow \
0988 (tkIntStubsPtr->tkWmMapWindow)
0989 #define TkWmNewWindow \
0990 (tkIntStubsPtr->tkWmNewWindow)
0991 #define TkWmProtocolEventProc \
0992 (tkIntStubsPtr->tkWmProtocolEventProc)
0993 #define TkWmRemoveFromColormapWindows \
0994 (tkIntStubsPtr->tkWmRemoveFromColormapWindows)
0995 #define TkWmRestackToplevel \
0996 (tkIntStubsPtr->tkWmRestackToplevel)
0997 #define TkWmSetClass \
0998 (tkIntStubsPtr->tkWmSetClass)
0999 #define TkWmUnmapWindow \
1000 (tkIntStubsPtr->tkWmUnmapWindow)
1001 #define TkDebugBitmap \
1002 (tkIntStubsPtr->tkDebugBitmap)
1003 #define TkDebugBorder \
1004 (tkIntStubsPtr->tkDebugBorder)
1005 #define TkDebugCursor \
1006 (tkIntStubsPtr->tkDebugCursor)
1007 #define TkDebugColor \
1008 (tkIntStubsPtr->tkDebugColor)
1009 #define TkDebugConfig \
1010 (tkIntStubsPtr->tkDebugConfig)
1011 #define TkDebugFont \
1012 (tkIntStubsPtr->tkDebugFont)
1013 #define TkFindStateNumObj \
1014 (tkIntStubsPtr->tkFindStateNumObj)
1015 #define TkGetBitmapPredefTable \
1016 (tkIntStubsPtr->tkGetBitmapPredefTable)
1017 #define TkGetDisplayList \
1018 (tkIntStubsPtr->tkGetDisplayList)
1019 #define TkGetMainInfoList \
1020 (tkIntStubsPtr->tkGetMainInfoList)
1021 #define TkGetWindowFromObj \
1022 (tkIntStubsPtr->tkGetWindowFromObj)
1023 #define TkpGetString \
1024 (tkIntStubsPtr->tkpGetString)
1025 #define TkpGetSubFonts \
1026 (tkIntStubsPtr->tkpGetSubFonts)
1027 #define TkpGetSystemDefault \
1028 (tkIntStubsPtr->tkpGetSystemDefault)
1029 #define TkpMenuThreadInit \
1030 (tkIntStubsPtr->tkpMenuThreadInit)
1031 #define TkClipBox \
1032 (tkIntStubsPtr->tkClipBox)
1033 #define TkCreateRegion \
1034 (tkIntStubsPtr->tkCreateRegion)
1035 #define TkDestroyRegion \
1036 (tkIntStubsPtr->tkDestroyRegion)
1037 #define TkIntersectRegion \
1038 (tkIntStubsPtr->tkIntersectRegion)
1039 #define TkRectInRegion \
1040 (tkIntStubsPtr->tkRectInRegion)
1041 #define TkSetRegion \
1042 (tkIntStubsPtr->tkSetRegion)
1043 #define TkUnionRectWithRegion \
1044 (tkIntStubsPtr->tkUnionRectWithRegion)
1045
1046 #ifdef MAC_OSX_TK
1047 #define TkpCreateNativeBitmap \
1048 (tkIntStubsPtr->tkpCreateNativeBitmap)
1049 #endif
1050 #ifdef MAC_OSX_TK
1051 #define TkpDefineNativeBitmaps \
1052 (tkIntStubsPtr->tkpDefineNativeBitmaps)
1053 #endif
1054
1055 #ifdef MAC_OSX_TK
1056 #define TkpGetNativeAppBitmap \
1057 (tkIntStubsPtr->tkpGetNativeAppBitmap)
1058 #endif
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069 #define TkpDrawHighlightBorder \
1070 (tkIntStubsPtr->tkpDrawHighlightBorder)
1071 #define TkSetFocusWin \
1072 (tkIntStubsPtr->tkSetFocusWin)
1073 #define TkpSetKeycodeAndState \
1074 (tkIntStubsPtr->tkpSetKeycodeAndState)
1075 #define TkpGetKeySym \
1076 (tkIntStubsPtr->tkpGetKeySym)
1077 #define TkpInitKeymapInfo \
1078 (tkIntStubsPtr->tkpInitKeymapInfo)
1079 #define TkPhotoGetValidRegion \
1080 (tkIntStubsPtr->tkPhotoGetValidRegion)
1081 #define TkWmStackorderToplevel \
1082 (tkIntStubsPtr->tkWmStackorderToplevel)
1083 #define TkFocusFree \
1084 (tkIntStubsPtr->tkFocusFree)
1085 #define TkClipCleanup \
1086 (tkIntStubsPtr->tkClipCleanup)
1087 #define TkGCCleanup \
1088 (tkIntStubsPtr->tkGCCleanup)
1089 #define TkSubtractRegion \
1090 (tkIntStubsPtr->tkSubtractRegion)
1091 #define TkStylePkgInit \
1092 (tkIntStubsPtr->tkStylePkgInit)
1093 #define TkStylePkgFree \
1094 (tkIntStubsPtr->tkStylePkgFree)
1095 #define TkToplevelWindowForCommand \
1096 (tkIntStubsPtr->tkToplevelWindowForCommand)
1097 #define TkGetOptionSpec \
1098 (tkIntStubsPtr->tkGetOptionSpec)
1099 #define TkMakeRawCurve \
1100 (tkIntStubsPtr->tkMakeRawCurve)
1101 #define TkMakeRawCurvePostscript \
1102 (tkIntStubsPtr->tkMakeRawCurvePostscript)
1103 #define TkpDrawFrame \
1104 (tkIntStubsPtr->tkpDrawFrame)
1105 #define TkCreateThreadExitHandler \
1106 (tkIntStubsPtr->tkCreateThreadExitHandler)
1107 #define TkDeleteThreadExitHandler \
1108 (tkIntStubsPtr->tkDeleteThreadExitHandler)
1109
1110 #define TkpTestembedCmd \
1111 (tkIntStubsPtr->tkpTestembedCmd)
1112 #define TkpTesttextCmd \
1113 (tkIntStubsPtr->tkpTesttextCmd)
1114 #define TkSelGetSelection \
1115 (tkIntStubsPtr->tkSelGetSelection)
1116 #define TkTextGetIndex \
1117 (tkIntStubsPtr->tkTextGetIndex)
1118 #define TkTextIndexBackBytes \
1119 (tkIntStubsPtr->tkTextIndexBackBytes)
1120 #define TkTextIndexForwBytes \
1121 (tkIntStubsPtr->tkTextIndexForwBytes)
1122 #define TkTextMakeByteIndex \
1123 (tkIntStubsPtr->tkTextMakeByteIndex)
1124 #define TkTextPrintIndex \
1125 (tkIntStubsPtr->tkTextPrintIndex)
1126 #define TkTextSetMark \
1127 (tkIntStubsPtr->tkTextSetMark)
1128 #define TkTextXviewCmd \
1129 (tkIntStubsPtr->tkTextXviewCmd)
1130 #define TkTextChanged \
1131 (tkIntStubsPtr->tkTextChanged)
1132 #define TkBTreeNumLines \
1133 (tkIntStubsPtr->tkBTreeNumLines)
1134 #define TkTextInsertDisplayProc \
1135 (tkIntStubsPtr->tkTextInsertDisplayProc)
1136 #define TkStateParseProc \
1137 (tkIntStubsPtr->tkStateParseProc)
1138 #define TkStatePrintProc \
1139 (tkIntStubsPtr->tkStatePrintProc)
1140 #define TkCanvasDashParseProc \
1141 (tkIntStubsPtr->tkCanvasDashParseProc)
1142 #define TkCanvasDashPrintProc \
1143 (tkIntStubsPtr->tkCanvasDashPrintProc)
1144 #define TkOffsetParseProc \
1145 (tkIntStubsPtr->tkOffsetParseProc)
1146 #define TkOffsetPrintProc \
1147 (tkIntStubsPtr->tkOffsetPrintProc)
1148 #define TkPixelParseProc \
1149 (tkIntStubsPtr->tkPixelParseProc)
1150 #define TkPixelPrintProc \
1151 (tkIntStubsPtr->tkPixelPrintProc)
1152 #define TkOrientParseProc \
1153 (tkIntStubsPtr->tkOrientParseProc)
1154 #define TkOrientPrintProc \
1155 (tkIntStubsPtr->tkOrientPrintProc)
1156 #define TkSmoothParseProc \
1157 (tkIntStubsPtr->tkSmoothParseProc)
1158 #define TkSmoothPrintProc \
1159 (tkIntStubsPtr->tkSmoothPrintProc)
1160 #define TkDrawAngledTextLayout \
1161 (tkIntStubsPtr->tkDrawAngledTextLayout)
1162 #define TkUnderlineAngledTextLayout \
1163 (tkIntStubsPtr->tkUnderlineAngledTextLayout)
1164 #define TkIntersectAngledTextLayout \
1165 (tkIntStubsPtr->tkIntersectAngledTextLayout)
1166 #define TkDrawAngledChars \
1167 (tkIntStubsPtr->tkDrawAngledChars)
1168 #ifdef MAC_OSX_TCL
1169 #define TkpRedrawWidget \
1170 (tkIntStubsPtr->tkpRedrawWidget)
1171 #endif
1172 #ifdef MAC_OSX_TCL
1173 #define TkpWillDrawWidget \
1174 (tkIntStubsPtr->tkpWillDrawWidget)
1175 #endif
1176
1177 #endif
1178
1179
1180
1181 #undef TCL_STORAGE_CLASS
1182 #define TCL_STORAGE_CLASS DLLIMPORT
1183
1184
1185
1186
1187 #if !(defined(_WIN32) || defined(__CYGWIN__) || defined(MAC_OSX_TK))
1188
1189 #undef TkClipBox
1190 #undef TkCreateRegion
1191 #undef TkDestroyRegion
1192 #undef TkIntersectRegion
1193 #undef TkRectInRegion
1194 #undef TkSetRegion
1195 #undef TkSubtractRegion
1196 #undef TkUnionRectWithRegion
1197 #undef TkpCmapStressed_
1198 #undef TkpSync_
1199 #undef TkUnixContainerId_
1200 #undef TkUnixDoOneXEvent_
1201 #undef TkUnixSetMenubar_
1202 #undef TkWmCleanup_
1203 #undef TkSendCleanup_
1204 #undef TkpTestsendCmd_
1205
1206 #define TkClipBox(rgn, rect) XClipBox((Region) rgn, rect)
1207 #define TkCreateRegion() (TkRegion) XCreateRegion()
1208 #define TkDestroyRegion(rgn) XDestroyRegion((Region) rgn)
1209 #define TkIntersectRegion(a, b, r) XIntersectRegion((Region) a, \
1210 (Region) b, (Region) r)
1211 #define TkRectInRegion(r, x, y, w, h) XRectInRegion((Region) r, x, y, w, h)
1212 #define TkSetRegion(d, gc, rgn) XSetRegion(d, gc, (Region) rgn)
1213 #define TkSubtractRegion(a, b, r) XSubtractRegion((Region) a, \
1214 (Region) b, (Region) r)
1215 #define TkUnionRectWithRegion(rect, src, ret) XUnionRectWithRegion(rect, \
1216 (Region) src, (Region) ret)
1217
1218 #endif
1219
1220 #if !defined(MAC_OSX_TK)
1221 # undef TkpWillDrawWidget
1222 # undef TkpRedrawWidget
1223 # define TkpWillDrawWidget(w) 0
1224 # define TkpRedrawWidget(w)
1225 #endif
1226
1227 #endif
1228