tkIntDecls.h 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228
  1. /*
  2. * tkIntDecls.h --
  3. *
  4. * This file contains the declarations for all unsupported
  5. * functions that are exported by the Tk library. These
  6. * interfaces are not guaranteed to remain the same between
  7. * versions. Use at your own risk.
  8. *
  9. * Copyright (c) 1998-1999 by Scriptics Corporation.
  10. *
  11. * See the file "license.terms" for information on usage and redistribution
  12. * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  13. */
  14. #ifndef _TKINTDECLS
  15. #define _TKINTDECLS
  16. #ifdef BUILD_tk
  17. #undef TCL_STORAGE_CLASS
  18. #define TCL_STORAGE_CLASS DLLEXPORT
  19. #endif
  20. struct TkText;
  21. typedef struct TkTextBTree_ *TkTextBTree;
  22. struct TkTextDispChunk;
  23. struct TkTextIndex;
  24. struct TkTextSegment;
  25. struct TkSharedText;
  26. /*
  27. * WARNING: This file is automatically generated by the tools/genStubs.tcl
  28. * script. Any modifications to the function declarations below should be made
  29. * in the generic/tkInt.decls script.
  30. */
  31. /* !BEGIN!: Do not edit below this line. */
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. /*
  36. * Exported function declarations:
  37. */
  38. /* 0 */
  39. EXTERN TkWindow * TkAllocWindow(TkDisplay *dispPtr, int screenNum,
  40. TkWindow *parentPtr);
  41. /* 1 */
  42. EXTERN void TkBezierPoints(double control[], int numSteps,
  43. double *coordPtr);
  44. /* 2 */
  45. EXTERN void TkBezierScreenPoints(Tk_Canvas canvas,
  46. double control[], int numSteps,
  47. XPoint *xPointPtr);
  48. /* Slot 3 is reserved */
  49. /* 4 */
  50. EXTERN void TkBindEventProc(TkWindow *winPtr, XEvent *eventPtr);
  51. /* 5 */
  52. EXTERN void TkBindFree(TkMainInfo *mainPtr);
  53. /* 6 */
  54. EXTERN void TkBindInit(TkMainInfo *mainPtr);
  55. /* 7 */
  56. EXTERN void TkChangeEventWindow(XEvent *eventPtr,
  57. TkWindow *winPtr);
  58. /* 8 */
  59. EXTERN int TkClipInit(Tcl_Interp *interp, TkDisplay *dispPtr);
  60. /* 9 */
  61. EXTERN void TkComputeAnchor(Tk_Anchor anchor, Tk_Window tkwin,
  62. int padX, int padY, int innerWidth,
  63. int innerHeight, int *xPtr, int *yPtr);
  64. /* Slot 10 is reserved */
  65. /* Slot 11 is reserved */
  66. /* 12 */
  67. EXTERN TkCursor * TkCreateCursorFromData(Tk_Window tkwin,
  68. const char *source, const char *mask,
  69. int width, int height, int xHot, int yHot,
  70. XColor fg, XColor bg);
  71. /* 13 */
  72. EXTERN int TkCreateFrame(ClientData clientData,
  73. Tcl_Interp *interp, int argc,
  74. const char *const *argv, int toplevel,
  75. const char *appName);
  76. /* 14 */
  77. EXTERN Tk_Window TkCreateMainWindow(Tcl_Interp *interp,
  78. const char *screenName, const char *baseName);
  79. /* 15 */
  80. EXTERN Time TkCurrentTime(TkDisplay *dispPtr);
  81. /* 16 */
  82. EXTERN void TkDeleteAllImages(TkMainInfo *mainPtr);
  83. /* 17 */
  84. EXTERN void TkDoConfigureNotify(TkWindow *winPtr);
  85. /* 18 */
  86. EXTERN void TkDrawInsetFocusHighlight(Tk_Window tkwin, GC gc,
  87. int width, Drawable drawable, int padding);
  88. /* 19 */
  89. EXTERN void TkEventDeadWindow(TkWindow *winPtr);
  90. /* 20 */
  91. EXTERN void TkFillPolygon(Tk_Canvas canvas, double *coordPtr,
  92. int numPoints, Display *display,
  93. Drawable drawable, GC gc, GC outlineGC);
  94. /* 21 */
  95. EXTERN int TkFindStateNum(Tcl_Interp *interp,
  96. const char *option, const TkStateMap *mapPtr,
  97. const char *strKey);
  98. /* 22 */
  99. EXTERN CONST86 char * TkFindStateString(const TkStateMap *mapPtr,
  100. int numKey);
  101. /* 23 */
  102. EXTERN void TkFocusDeadWindow(TkWindow *winPtr);
  103. /* 24 */
  104. EXTERN int TkFocusFilterEvent(TkWindow *winPtr,
  105. XEvent *eventPtr);
  106. /* 25 */
  107. EXTERN TkWindow * TkFocusKeyEvent(TkWindow *winPtr, XEvent *eventPtr);
  108. /* 26 */
  109. EXTERN void TkFontPkgInit(TkMainInfo *mainPtr);
  110. /* 27 */
  111. EXTERN void TkFontPkgFree(TkMainInfo *mainPtr);
  112. /* 28 */
  113. EXTERN void TkFreeBindingTags(TkWindow *winPtr);
  114. /* 29 */
  115. EXTERN void TkpFreeCursor(TkCursor *cursorPtr);
  116. /* 30 */
  117. EXTERN char * TkGetBitmapData(Tcl_Interp *interp,
  118. const char *string, const char *fileName,
  119. int *widthPtr, int *heightPtr, int *hotXPtr,
  120. int *hotYPtr);
  121. /* 31 */
  122. EXTERN void TkGetButtPoints(double p1[], double p2[],
  123. double width, int project, double m1[],
  124. double m2[]);
  125. /* 32 */
  126. EXTERN TkCursor * TkGetCursorByName(Tcl_Interp *interp,
  127. Tk_Window tkwin, Tk_Uid string);
  128. /* 33 */
  129. EXTERN const char * TkGetDefaultScreenName(Tcl_Interp *interp,
  130. const char *screenName);
  131. /* 34 */
  132. EXTERN TkDisplay * TkGetDisplay(Display *display);
  133. /* 35 */
  134. EXTERN int TkGetDisplayOf(Tcl_Interp *interp, int objc,
  135. Tcl_Obj *const objv[], Tk_Window *tkwinPtr);
  136. /* 36 */
  137. EXTERN TkWindow * TkGetFocusWin(TkWindow *winPtr);
  138. /* 37 */
  139. EXTERN int TkGetInterpNames(Tcl_Interp *interp, Tk_Window tkwin);
  140. /* 38 */
  141. EXTERN int TkGetMiterPoints(double p1[], double p2[],
  142. double p3[], double width, double m1[],
  143. double m2[]);
  144. /* 39 */
  145. EXTERN void TkGetPointerCoords(Tk_Window tkwin, int *xPtr,
  146. int *yPtr);
  147. /* 40 */
  148. EXTERN void TkGetServerInfo(Tcl_Interp *interp, Tk_Window tkwin);
  149. /* 41 */
  150. EXTERN void TkGrabDeadWindow(TkWindow *winPtr);
  151. /* 42 */
  152. EXTERN int TkGrabState(TkWindow *winPtr);
  153. /* 43 */
  154. EXTERN void TkIncludePoint(Tk_Item *itemPtr, double *pointPtr);
  155. /* 44 */
  156. EXTERN void TkInOutEvents(XEvent *eventPtr, TkWindow *sourcePtr,
  157. TkWindow *destPtr, int leaveType,
  158. int enterType, Tcl_QueuePosition position);
  159. /* 45 */
  160. EXTERN void TkInstallFrameMenu(Tk_Window tkwin);
  161. /* 46 */
  162. EXTERN CONST86 char * TkKeysymToString(KeySym keysym);
  163. /* 47 */
  164. EXTERN int TkLineToArea(double end1Ptr[], double end2Ptr[],
  165. double rectPtr[]);
  166. /* 48 */
  167. EXTERN double TkLineToPoint(double end1Ptr[], double end2Ptr[],
  168. double pointPtr[]);
  169. /* 49 */
  170. EXTERN int TkMakeBezierCurve(Tk_Canvas canvas, double *pointPtr,
  171. int numPoints, int numSteps,
  172. XPoint xPoints[], double dblPoints[]);
  173. /* 50 */
  174. EXTERN void TkMakeBezierPostscript(Tcl_Interp *interp,
  175. Tk_Canvas canvas, double *pointPtr,
  176. int numPoints);
  177. /* 51 */
  178. EXTERN void TkOptionClassChanged(TkWindow *winPtr);
  179. /* 52 */
  180. EXTERN void TkOptionDeadWindow(TkWindow *winPtr);
  181. /* 53 */
  182. EXTERN int TkOvalToArea(double *ovalPtr, double *rectPtr);
  183. /* 54 */
  184. EXTERN double TkOvalToPoint(double ovalPtr[], double width,
  185. int filled, double pointPtr[]);
  186. /* 55 */
  187. EXTERN int TkpChangeFocus(TkWindow *winPtr, int force);
  188. /* 56 */
  189. EXTERN void TkpCloseDisplay(TkDisplay *dispPtr);
  190. /* 57 */
  191. EXTERN void TkpClaimFocus(TkWindow *topLevelPtr, int force);
  192. /* 58 */
  193. EXTERN void TkpDisplayWarning(const char *msg, const char *title);
  194. /* 59 */
  195. EXTERN void TkpGetAppName(Tcl_Interp *interp, Tcl_DString *name);
  196. /* 60 */
  197. EXTERN TkWindow * TkpGetOtherWindow(TkWindow *winPtr);
  198. /* 61 */
  199. EXTERN TkWindow * TkpGetWrapperWindow(TkWindow *winPtr);
  200. /* 62 */
  201. EXTERN int TkpInit(Tcl_Interp *interp);
  202. /* 63 */
  203. EXTERN void TkpInitializeMenuBindings(Tcl_Interp *interp,
  204. Tk_BindingTable bindingTable);
  205. /* 64 */
  206. EXTERN void TkpMakeContainer(Tk_Window tkwin);
  207. /* 65 */
  208. EXTERN void TkpMakeMenuWindow(Tk_Window tkwin, int transient);
  209. /* 66 */
  210. EXTERN Window TkpMakeWindow(TkWindow *winPtr, Window parent);
  211. /* 67 */
  212. EXTERN void TkpMenuNotifyToplevelCreate(Tcl_Interp *interp,
  213. const char *menuName);
  214. /* 68 */
  215. EXTERN TkDisplay * TkpOpenDisplay(const char *display_name);
  216. /* 69 */
  217. EXTERN int TkPointerEvent(XEvent *eventPtr, TkWindow *winPtr);
  218. /* 70 */
  219. EXTERN int TkPolygonToArea(double *polyPtr, int numPoints,
  220. double *rectPtr);
  221. /* 71 */
  222. EXTERN double TkPolygonToPoint(double *polyPtr, int numPoints,
  223. double *pointPtr);
  224. /* 72 */
  225. EXTERN int TkPositionInTree(TkWindow *winPtr, TkWindow *treePtr);
  226. /* 73 */
  227. EXTERN void TkpRedirectKeyEvent(TkWindow *winPtr,
  228. XEvent *eventPtr);
  229. /* 74 */
  230. EXTERN void TkpSetMainMenubar(Tcl_Interp *interp,
  231. Tk_Window tkwin, const char *menuName);
  232. /* 75 */
  233. EXTERN int TkpUseWindow(Tcl_Interp *interp, Tk_Window tkwin,
  234. const char *string);
  235. /* Slot 76 is reserved */
  236. /* 77 */
  237. EXTERN void TkQueueEventForAllChildren(TkWindow *winPtr,
  238. XEvent *eventPtr);
  239. /* 78 */
  240. EXTERN int TkReadBitmapFile(Display *display, Drawable d,
  241. const char *filename,
  242. unsigned int *width_return,
  243. unsigned int *height_return,
  244. Pixmap *bitmap_return, int *x_hot_return,
  245. int *y_hot_return);
  246. /* 79 */
  247. EXTERN int TkScrollWindow(Tk_Window tkwin, GC gc, int x, int y,
  248. int width, int height, int dx, int dy,
  249. TkRegion damageRgn);
  250. /* 80 */
  251. EXTERN void TkSelDeadWindow(TkWindow *winPtr);
  252. /* 81 */
  253. EXTERN void TkSelEventProc(Tk_Window tkwin, XEvent *eventPtr);
  254. /* 82 */
  255. EXTERN void TkSelInit(Tk_Window tkwin);
  256. /* 83 */
  257. EXTERN void TkSelPropProc(XEvent *eventPtr);
  258. /* Slot 84 is reserved */
  259. /* 85 */
  260. EXTERN void TkSetWindowMenuBar(Tcl_Interp *interp,
  261. Tk_Window tkwin, const char *oldMenuName,
  262. const char *menuName);
  263. /* 86 */
  264. EXTERN KeySym TkStringToKeysym(const char *name);
  265. /* 87 */
  266. EXTERN int TkThickPolyLineToArea(double *coordPtr,
  267. int numPoints, double width, int capStyle,
  268. int joinStyle, double *rectPtr);
  269. /* 88 */
  270. EXTERN void TkWmAddToColormapWindows(TkWindow *winPtr);
  271. /* 89 */
  272. EXTERN void TkWmDeadWindow(TkWindow *winPtr);
  273. /* 90 */
  274. EXTERN TkWindow * TkWmFocusToplevel(TkWindow *winPtr);
  275. /* 91 */
  276. EXTERN void TkWmMapWindow(TkWindow *winPtr);
  277. /* 92 */
  278. EXTERN void TkWmNewWindow(TkWindow *winPtr);
  279. /* 93 */
  280. EXTERN void TkWmProtocolEventProc(TkWindow *winPtr,
  281. XEvent *evenvPtr);
  282. /* 94 */
  283. EXTERN void TkWmRemoveFromColormapWindows(TkWindow *winPtr);
  284. /* 95 */
  285. EXTERN void TkWmRestackToplevel(TkWindow *winPtr, int aboveBelow,
  286. TkWindow *otherPtr);
  287. /* 96 */
  288. EXTERN void TkWmSetClass(TkWindow *winPtr);
  289. /* 97 */
  290. EXTERN void TkWmUnmapWindow(TkWindow *winPtr);
  291. /* 98 */
  292. EXTERN Tcl_Obj * TkDebugBitmap(Tk_Window tkwin, const char *name);
  293. /* 99 */
  294. EXTERN Tcl_Obj * TkDebugBorder(Tk_Window tkwin, const char *name);
  295. /* 100 */
  296. EXTERN Tcl_Obj * TkDebugCursor(Tk_Window tkwin, const char *name);
  297. /* 101 */
  298. EXTERN Tcl_Obj * TkDebugColor(Tk_Window tkwin, const char *name);
  299. /* 102 */
  300. EXTERN Tcl_Obj * TkDebugConfig(Tcl_Interp *interp,
  301. Tk_OptionTable table);
  302. /* 103 */
  303. EXTERN Tcl_Obj * TkDebugFont(Tk_Window tkwin, const char *name);
  304. /* 104 */
  305. EXTERN int TkFindStateNumObj(Tcl_Interp *interp,
  306. Tcl_Obj *optionPtr, const TkStateMap *mapPtr,
  307. Tcl_Obj *keyPtr);
  308. /* 105 */
  309. EXTERN Tcl_HashTable * TkGetBitmapPredefTable(void);
  310. /* 106 */
  311. EXTERN TkDisplay * TkGetDisplayList(void);
  312. /* 107 */
  313. EXTERN TkMainInfo * TkGetMainInfoList(void);
  314. /* 108 */
  315. EXTERN int TkGetWindowFromObj(Tcl_Interp *interp,
  316. Tk_Window tkwin, Tcl_Obj *objPtr,
  317. Tk_Window *windowPtr);
  318. /* 109 */
  319. EXTERN CONST86 char * TkpGetString(TkWindow *winPtr, XEvent *eventPtr,
  320. Tcl_DString *dsPtr);
  321. /* 110 */
  322. EXTERN void TkpGetSubFonts(Tcl_Interp *interp, Tk_Font tkfont);
  323. /* 111 */
  324. EXTERN Tcl_Obj * TkpGetSystemDefault(Tk_Window tkwin,
  325. const char *dbName, const char *className);
  326. /* 112 */
  327. EXTERN void TkpMenuThreadInit(void);
  328. /* 113 */
  329. EXTERN int TkClipBox(TkRegion rgn, XRectangle *rect_return);
  330. /* 114 */
  331. EXTERN TkRegion TkCreateRegion(void);
  332. /* 115 */
  333. EXTERN int TkDestroyRegion(TkRegion rgn);
  334. /* 116 */
  335. EXTERN int TkIntersectRegion(TkRegion sra, TkRegion srcb,
  336. TkRegion dr_return);
  337. /* 117 */
  338. EXTERN int TkRectInRegion(TkRegion rgn, int x, int y,
  339. unsigned int width, unsigned int height);
  340. /* 118 */
  341. EXTERN int TkSetRegion(Display *display, GC gc, TkRegion rgn);
  342. /* 119 */
  343. EXTERN int TkUnionRectWithRegion(XRectangle *rect, TkRegion src,
  344. TkRegion dr_return);
  345. /* Slot 120 is reserved */
  346. #ifdef MAC_OSX_TK /* AQUA */
  347. /* 121 */
  348. EXTERN Pixmap TkpCreateNativeBitmap(Display *display,
  349. const void *source);
  350. #endif /* AQUA */
  351. #ifdef MAC_OSX_TK /* AQUA */
  352. /* 122 */
  353. EXTERN void TkpDefineNativeBitmaps(void);
  354. #endif /* AQUA */
  355. /* Slot 123 is reserved */
  356. #ifdef MAC_OSX_TK /* AQUA */
  357. /* 124 */
  358. EXTERN Pixmap TkpGetNativeAppBitmap(Display *display,
  359. const char *name, int *width, int *height);
  360. #endif /* AQUA */
  361. /* Slot 125 is reserved */
  362. /* Slot 126 is reserved */
  363. /* Slot 127 is reserved */
  364. /* Slot 128 is reserved */
  365. /* Slot 129 is reserved */
  366. /* Slot 130 is reserved */
  367. /* Slot 131 is reserved */
  368. /* Slot 132 is reserved */
  369. /* Slot 133 is reserved */
  370. /* Slot 134 is reserved */
  371. /* 135 */
  372. EXTERN void TkpDrawHighlightBorder(Tk_Window tkwin, GC fgGC,
  373. GC bgGC, int highlightWidth,
  374. Drawable drawable);
  375. /* 136 */
  376. EXTERN void TkSetFocusWin(TkWindow *winPtr, int force);
  377. /* 137 */
  378. EXTERN void TkpSetKeycodeAndState(Tk_Window tkwin, KeySym keySym,
  379. XEvent *eventPtr);
  380. /* 138 */
  381. EXTERN KeySym TkpGetKeySym(TkDisplay *dispPtr, XEvent *eventPtr);
  382. /* 139 */
  383. EXTERN void TkpInitKeymapInfo(TkDisplay *dispPtr);
  384. /* 140 */
  385. EXTERN TkRegion TkPhotoGetValidRegion(Tk_PhotoHandle handle);
  386. /* 141 */
  387. EXTERN TkWindow ** TkWmStackorderToplevel(TkWindow *parentPtr);
  388. /* 142 */
  389. EXTERN void TkFocusFree(TkMainInfo *mainPtr);
  390. /* 143 */
  391. EXTERN void TkClipCleanup(TkDisplay *dispPtr);
  392. /* 144 */
  393. EXTERN void TkGCCleanup(TkDisplay *dispPtr);
  394. /* 145 */
  395. EXTERN int TkSubtractRegion(TkRegion sra, TkRegion srcb,
  396. TkRegion dr_return);
  397. /* 146 */
  398. EXTERN void TkStylePkgInit(TkMainInfo *mainPtr);
  399. /* 147 */
  400. EXTERN void TkStylePkgFree(TkMainInfo *mainPtr);
  401. /* 148 */
  402. EXTERN Tk_Window TkToplevelWindowForCommand(Tcl_Interp *interp,
  403. const char *cmdName);
  404. /* 149 */
  405. EXTERN const Tk_OptionSpec * TkGetOptionSpec(const char *name,
  406. Tk_OptionTable optionTable);
  407. /* 150 */
  408. EXTERN int TkMakeRawCurve(Tk_Canvas canvas, double *pointPtr,
  409. int numPoints, int numSteps,
  410. XPoint xPoints[], double dblPoints[]);
  411. /* 151 */
  412. EXTERN void TkMakeRawCurvePostscript(Tcl_Interp *interp,
  413. Tk_Canvas canvas, double *pointPtr,
  414. int numPoints);
  415. /* 152 */
  416. EXTERN void TkpDrawFrame(Tk_Window tkwin, Tk_3DBorder border,
  417. int highlightWidth, int borderWidth,
  418. int relief);
  419. /* 153 */
  420. EXTERN void TkCreateThreadExitHandler(Tcl_ExitProc *proc,
  421. ClientData clientData);
  422. /* 154 */
  423. EXTERN void TkDeleteThreadExitHandler(Tcl_ExitProc *proc,
  424. ClientData clientData);
  425. /* Slot 155 is reserved */
  426. /* 156 */
  427. EXTERN int TkpTestembedCmd(ClientData clientData,
  428. Tcl_Interp *interp, int objc,
  429. Tcl_Obj *const objv[]);
  430. /* 157 */
  431. EXTERN int TkpTesttextCmd(ClientData dummy, Tcl_Interp *interp,
  432. int objc, Tcl_Obj *const objv[]);
  433. /* 158 */
  434. EXTERN int TkSelGetSelection(Tcl_Interp *interp,
  435. Tk_Window tkwin, Atom selection, Atom target,
  436. Tk_GetSelProc *proc, ClientData clientData);
  437. /* 159 */
  438. EXTERN int TkTextGetIndex(Tcl_Interp *interp,
  439. struct TkText *textPtr, const char *string,
  440. struct TkTextIndex *indexPtr);
  441. /* 160 */
  442. EXTERN int TkTextIndexBackBytes(const struct TkText *textPtr,
  443. const struct TkTextIndex *srcPtr, int count,
  444. struct TkTextIndex *dstPtr);
  445. /* 161 */
  446. EXTERN int TkTextIndexForwBytes(const struct TkText *textPtr,
  447. const struct TkTextIndex *srcPtr, int count,
  448. struct TkTextIndex *dstPtr);
  449. /* 162 */
  450. EXTERN struct TkTextIndex * TkTextMakeByteIndex(TkTextBTree tree,
  451. const struct TkText *textPtr, int lineIndex,
  452. int byteIndex, struct TkTextIndex *indexPtr);
  453. /* 163 */
  454. EXTERN int TkTextPrintIndex(const struct TkText *textPtr,
  455. const struct TkTextIndex *indexPtr,
  456. char *string);
  457. /* 164 */
  458. EXTERN struct TkTextSegment * TkTextSetMark(struct TkText *textPtr,
  459. const char *name,
  460. struct TkTextIndex *indexPtr);
  461. /* 165 */
  462. EXTERN int TkTextXviewCmd(struct TkText *textPtr,
  463. Tcl_Interp *interp, int objc,
  464. Tcl_Obj *const objv[]);
  465. /* 166 */
  466. EXTERN void TkTextChanged(struct TkSharedText *sharedTextPtr,
  467. struct TkText *textPtr,
  468. const struct TkTextIndex *index1Ptr,
  469. const struct TkTextIndex *index2Ptr);
  470. /* 167 */
  471. EXTERN int TkBTreeNumLines(TkTextBTree tree,
  472. const struct TkText *textPtr);
  473. /* 168 */
  474. EXTERN void TkTextInsertDisplayProc(struct TkText *textPtr,
  475. struct TkTextDispChunk *chunkPtr, int x,
  476. int y, int height, int baseline,
  477. Display *display, Drawable dst, int screenY);
  478. /* 169 */
  479. EXTERN int TkStateParseProc(ClientData clientData,
  480. Tcl_Interp *interp, Tk_Window tkwin,
  481. const char *value, char *widgRec, int offset);
  482. /* 170 */
  483. EXTERN CONST86 char * TkStatePrintProc(ClientData clientData,
  484. Tk_Window tkwin, char *widgRec, int offset,
  485. Tcl_FreeProc **freeProcPtr);
  486. /* 171 */
  487. EXTERN int TkCanvasDashParseProc(ClientData clientData,
  488. Tcl_Interp *interp, Tk_Window tkwin,
  489. const char *value, char *widgRec, int offset);
  490. /* 172 */
  491. EXTERN CONST86 char * TkCanvasDashPrintProc(ClientData clientData,
  492. Tk_Window tkwin, char *widgRec, int offset,
  493. Tcl_FreeProc **freeProcPtr);
  494. /* 173 */
  495. EXTERN int TkOffsetParseProc(ClientData clientData,
  496. Tcl_Interp *interp, Tk_Window tkwin,
  497. const char *value, char *widgRec, int offset);
  498. /* 174 */
  499. EXTERN CONST86 char * TkOffsetPrintProc(ClientData clientData,
  500. Tk_Window tkwin, char *widgRec, int offset,
  501. Tcl_FreeProc **freeProcPtr);
  502. /* 175 */
  503. EXTERN int TkPixelParseProc(ClientData clientData,
  504. Tcl_Interp *interp, Tk_Window tkwin,
  505. const char *value, char *widgRec, int offset);
  506. /* 176 */
  507. EXTERN CONST86 char * TkPixelPrintProc(ClientData clientData,
  508. Tk_Window tkwin, char *widgRec, int offset,
  509. Tcl_FreeProc **freeProcPtr);
  510. /* 177 */
  511. EXTERN int TkOrientParseProc(ClientData clientData,
  512. Tcl_Interp *interp, Tk_Window tkwin,
  513. const char *value, char *widgRec, int offset);
  514. /* 178 */
  515. EXTERN CONST86 char * TkOrientPrintProc(ClientData clientData,
  516. Tk_Window tkwin, char *widgRec, int offset,
  517. Tcl_FreeProc **freeProcPtr);
  518. /* 179 */
  519. EXTERN int TkSmoothParseProc(ClientData clientData,
  520. Tcl_Interp *interp, Tk_Window tkwin,
  521. const char *value, char *widgRec, int offset);
  522. /* 180 */
  523. EXTERN CONST86 char * TkSmoothPrintProc(ClientData clientData,
  524. Tk_Window tkwin, char *widgRec, int offset,
  525. Tcl_FreeProc **freeProcPtr);
  526. /* 181 */
  527. EXTERN void TkDrawAngledTextLayout(Display *display,
  528. Drawable drawable, GC gc,
  529. Tk_TextLayout layout, int x, int y,
  530. double angle, int firstChar, int lastChar);
  531. /* 182 */
  532. EXTERN void TkUnderlineAngledTextLayout(Display *display,
  533. Drawable drawable, GC gc,
  534. Tk_TextLayout layout, int x, int y,
  535. double angle, int underline);
  536. /* 183 */
  537. EXTERN int TkIntersectAngledTextLayout(Tk_TextLayout layout,
  538. int x, int y, int width, int height,
  539. double angle);
  540. /* 184 */
  541. EXTERN void TkDrawAngledChars(Display *display,
  542. Drawable drawable, GC gc, Tk_Font tkfont,
  543. const char *source, int numBytes, double x,
  544. double y, double angle);
  545. #ifdef MAC_OSX_TCL /* MACOSX */
  546. /* 185 */
  547. EXTERN void TkpRedrawWidget(Tk_Window tkwin);
  548. #endif /* MACOSX */
  549. #ifdef MAC_OSX_TCL /* MACOSX */
  550. /* 186 */
  551. EXTERN int TkpWillDrawWidget(Tk_Window tkwin);
  552. #endif /* MACOSX */
  553. typedef struct TkIntStubs {
  554. int magic;
  555. void *hooks;
  556. TkWindow * (*tkAllocWindow) (TkDisplay *dispPtr, int screenNum, TkWindow *parentPtr); /* 0 */
  557. void (*tkBezierPoints) (double control[], int numSteps, double *coordPtr); /* 1 */
  558. void (*tkBezierScreenPoints) (Tk_Canvas canvas, double control[], int numSteps, XPoint *xPointPtr); /* 2 */
  559. void (*reserved3)(void);
  560. void (*tkBindEventProc) (TkWindow *winPtr, XEvent *eventPtr); /* 4 */
  561. void (*tkBindFree) (TkMainInfo *mainPtr); /* 5 */
  562. void (*tkBindInit) (TkMainInfo *mainPtr); /* 6 */
  563. void (*tkChangeEventWindow) (XEvent *eventPtr, TkWindow *winPtr); /* 7 */
  564. int (*tkClipInit) (Tcl_Interp *interp, TkDisplay *dispPtr); /* 8 */
  565. void (*tkComputeAnchor) (Tk_Anchor anchor, Tk_Window tkwin, int padX, int padY, int innerWidth, int innerHeight, int *xPtr, int *yPtr); /* 9 */
  566. void (*reserved10)(void);
  567. void (*reserved11)(void);
  568. TkCursor * (*tkCreateCursorFromData) (Tk_Window tkwin, const char *source, const char *mask, int width, int height, int xHot, int yHot, XColor fg, XColor bg); /* 12 */
  569. int (*tkCreateFrame) (ClientData clientData, Tcl_Interp *interp, int argc, const char *const *argv, int toplevel, const char *appName); /* 13 */
  570. Tk_Window (*tkCreateMainWindow) (Tcl_Interp *interp, const char *screenName, const char *baseName); /* 14 */
  571. Time (*tkCurrentTime) (TkDisplay *dispPtr); /* 15 */
  572. void (*tkDeleteAllImages) (TkMainInfo *mainPtr); /* 16 */
  573. void (*tkDoConfigureNotify) (TkWindow *winPtr); /* 17 */
  574. void (*tkDrawInsetFocusHighlight) (Tk_Window tkwin, GC gc, int width, Drawable drawable, int padding); /* 18 */
  575. void (*tkEventDeadWindow) (TkWindow *winPtr); /* 19 */
  576. void (*tkFillPolygon) (Tk_Canvas canvas, double *coordPtr, int numPoints, Display *display, Drawable drawable, GC gc, GC outlineGC); /* 20 */
  577. int (*tkFindStateNum) (Tcl_Interp *interp, const char *option, const TkStateMap *mapPtr, const char *strKey); /* 21 */
  578. CONST86 char * (*tkFindStateString) (const TkStateMap *mapPtr, int numKey); /* 22 */
  579. void (*tkFocusDeadWindow) (TkWindow *winPtr); /* 23 */
  580. int (*tkFocusFilterEvent) (TkWindow *winPtr, XEvent *eventPtr); /* 24 */
  581. TkWindow * (*tkFocusKeyEvent) (TkWindow *winPtr, XEvent *eventPtr); /* 25 */
  582. void (*tkFontPkgInit) (TkMainInfo *mainPtr); /* 26 */
  583. void (*tkFontPkgFree) (TkMainInfo *mainPtr); /* 27 */
  584. void (*tkFreeBindingTags) (TkWindow *winPtr); /* 28 */
  585. void (*tkpFreeCursor) (TkCursor *cursorPtr); /* 29 */
  586. char * (*tkGetBitmapData) (Tcl_Interp *interp, const char *string, const char *fileName, int *widthPtr, int *heightPtr, int *hotXPtr, int *hotYPtr); /* 30 */
  587. void (*tkGetButtPoints) (double p1[], double p2[], double width, int project, double m1[], double m2[]); /* 31 */
  588. TkCursor * (*tkGetCursorByName) (Tcl_Interp *interp, Tk_Window tkwin, Tk_Uid string); /* 32 */
  589. const char * (*tkGetDefaultScreenName) (Tcl_Interp *interp, const char *screenName); /* 33 */
  590. TkDisplay * (*tkGetDisplay) (Display *display); /* 34 */
  591. int (*tkGetDisplayOf) (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], Tk_Window *tkwinPtr); /* 35 */
  592. TkWindow * (*tkGetFocusWin) (TkWindow *winPtr); /* 36 */
  593. int (*tkGetInterpNames) (Tcl_Interp *interp, Tk_Window tkwin); /* 37 */
  594. int (*tkGetMiterPoints) (double p1[], double p2[], double p3[], double width, double m1[], double m2[]); /* 38 */
  595. void (*tkGetPointerCoords) (Tk_Window tkwin, int *xPtr, int *yPtr); /* 39 */
  596. void (*tkGetServerInfo) (Tcl_Interp *interp, Tk_Window tkwin); /* 40 */
  597. void (*tkGrabDeadWindow) (TkWindow *winPtr); /* 41 */
  598. int (*tkGrabState) (TkWindow *winPtr); /* 42 */
  599. void (*tkIncludePoint) (Tk_Item *itemPtr, double *pointPtr); /* 43 */
  600. void (*tkInOutEvents) (XEvent *eventPtr, TkWindow *sourcePtr, TkWindow *destPtr, int leaveType, int enterType, Tcl_QueuePosition position); /* 44 */
  601. void (*tkInstallFrameMenu) (Tk_Window tkwin); /* 45 */
  602. CONST86 char * (*tkKeysymToString) (KeySym keysym); /* 46 */
  603. int (*tkLineToArea) (double end1Ptr[], double end2Ptr[], double rectPtr[]); /* 47 */
  604. double (*tkLineToPoint) (double end1Ptr[], double end2Ptr[], double pointPtr[]); /* 48 */
  605. int (*tkMakeBezierCurve) (Tk_Canvas canvas, double *pointPtr, int numPoints, int numSteps, XPoint xPoints[], double dblPoints[]); /* 49 */
  606. void (*tkMakeBezierPostscript) (Tcl_Interp *interp, Tk_Canvas canvas, double *pointPtr, int numPoints); /* 50 */
  607. void (*tkOptionClassChanged) (TkWindow *winPtr); /* 51 */
  608. void (*tkOptionDeadWindow) (TkWindow *winPtr); /* 52 */
  609. int (*tkOvalToArea) (double *ovalPtr, double *rectPtr); /* 53 */
  610. double (*tkOvalToPoint) (double ovalPtr[], double width, int filled, double pointPtr[]); /* 54 */
  611. int (*tkpChangeFocus) (TkWindow *winPtr, int force); /* 55 */
  612. void (*tkpCloseDisplay) (TkDisplay *dispPtr); /* 56 */
  613. void (*tkpClaimFocus) (TkWindow *topLevelPtr, int force); /* 57 */
  614. void (*tkpDisplayWarning) (const char *msg, const char *title); /* 58 */
  615. void (*tkpGetAppName) (Tcl_Interp *interp, Tcl_DString *name); /* 59 */
  616. TkWindow * (*tkpGetOtherWindow) (TkWindow *winPtr); /* 60 */
  617. TkWindow * (*tkpGetWrapperWindow) (TkWindow *winPtr); /* 61 */
  618. int (*tkpInit) (Tcl_Interp *interp); /* 62 */
  619. void (*tkpInitializeMenuBindings) (Tcl_Interp *interp, Tk_BindingTable bindingTable); /* 63 */
  620. void (*tkpMakeContainer) (Tk_Window tkwin); /* 64 */
  621. void (*tkpMakeMenuWindow) (Tk_Window tkwin, int transient); /* 65 */
  622. Window (*tkpMakeWindow) (TkWindow *winPtr, Window parent); /* 66 */
  623. void (*tkpMenuNotifyToplevelCreate) (Tcl_Interp *interp, const char *menuName); /* 67 */
  624. TkDisplay * (*tkpOpenDisplay) (const char *display_name); /* 68 */
  625. int (*tkPointerEvent) (XEvent *eventPtr, TkWindow *winPtr); /* 69 */
  626. int (*tkPolygonToArea) (double *polyPtr, int numPoints, double *rectPtr); /* 70 */
  627. double (*tkPolygonToPoint) (double *polyPtr, int numPoints, double *pointPtr); /* 71 */
  628. int (*tkPositionInTree) (TkWindow *winPtr, TkWindow *treePtr); /* 72 */
  629. void (*tkpRedirectKeyEvent) (TkWindow *winPtr, XEvent *eventPtr); /* 73 */
  630. void (*tkpSetMainMenubar) (Tcl_Interp *interp, Tk_Window tkwin, const char *menuName); /* 74 */
  631. int (*tkpUseWindow) (Tcl_Interp *interp, Tk_Window tkwin, const char *string); /* 75 */
  632. void (*reserved76)(void);
  633. void (*tkQueueEventForAllChildren) (TkWindow *winPtr, XEvent *eventPtr); /* 77 */
  634. 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); /* 78 */
  635. int (*tkScrollWindow) (Tk_Window tkwin, GC gc, int x, int y, int width, int height, int dx, int dy, TkRegion damageRgn); /* 79 */
  636. void (*tkSelDeadWindow) (TkWindow *winPtr); /* 80 */
  637. void (*tkSelEventProc) (Tk_Window tkwin, XEvent *eventPtr); /* 81 */
  638. void (*tkSelInit) (Tk_Window tkwin); /* 82 */
  639. void (*tkSelPropProc) (XEvent *eventPtr); /* 83 */
  640. void (*reserved84)(void);
  641. void (*tkSetWindowMenuBar) (Tcl_Interp *interp, Tk_Window tkwin, const char *oldMenuName, const char *menuName); /* 85 */
  642. KeySym (*tkStringToKeysym) (const char *name); /* 86 */
  643. int (*tkThickPolyLineToArea) (double *coordPtr, int numPoints, double width, int capStyle, int joinStyle, double *rectPtr); /* 87 */
  644. void (*tkWmAddToColormapWindows) (TkWindow *winPtr); /* 88 */
  645. void (*tkWmDeadWindow) (TkWindow *winPtr); /* 89 */
  646. TkWindow * (*tkWmFocusToplevel) (TkWindow *winPtr); /* 90 */
  647. void (*tkWmMapWindow) (TkWindow *winPtr); /* 91 */
  648. void (*tkWmNewWindow) (TkWindow *winPtr); /* 92 */
  649. void (*tkWmProtocolEventProc) (TkWindow *winPtr, XEvent *evenvPtr); /* 93 */
  650. void (*tkWmRemoveFromColormapWindows) (TkWindow *winPtr); /* 94 */
  651. void (*tkWmRestackToplevel) (TkWindow *winPtr, int aboveBelow, TkWindow *otherPtr); /* 95 */
  652. void (*tkWmSetClass) (TkWindow *winPtr); /* 96 */
  653. void (*tkWmUnmapWindow) (TkWindow *winPtr); /* 97 */
  654. Tcl_Obj * (*tkDebugBitmap) (Tk_Window tkwin, const char *name); /* 98 */
  655. Tcl_Obj * (*tkDebugBorder) (Tk_Window tkwin, const char *name); /* 99 */
  656. Tcl_Obj * (*tkDebugCursor) (Tk_Window tkwin, const char *name); /* 100 */
  657. Tcl_Obj * (*tkDebugColor) (Tk_Window tkwin, const char *name); /* 101 */
  658. Tcl_Obj * (*tkDebugConfig) (Tcl_Interp *interp, Tk_OptionTable table); /* 102 */
  659. Tcl_Obj * (*tkDebugFont) (Tk_Window tkwin, const char *name); /* 103 */
  660. int (*tkFindStateNumObj) (Tcl_Interp *interp, Tcl_Obj *optionPtr, const TkStateMap *mapPtr, Tcl_Obj *keyPtr); /* 104 */
  661. Tcl_HashTable * (*tkGetBitmapPredefTable) (void); /* 105 */
  662. TkDisplay * (*tkGetDisplayList) (void); /* 106 */
  663. TkMainInfo * (*tkGetMainInfoList) (void); /* 107 */
  664. int (*tkGetWindowFromObj) (Tcl_Interp *interp, Tk_Window tkwin, Tcl_Obj *objPtr, Tk_Window *windowPtr); /* 108 */
  665. CONST86 char * (*tkpGetString) (TkWindow *winPtr, XEvent *eventPtr, Tcl_DString *dsPtr); /* 109 */
  666. void (*tkpGetSubFonts) (Tcl_Interp *interp, Tk_Font tkfont); /* 110 */
  667. Tcl_Obj * (*tkpGetSystemDefault) (Tk_Window tkwin, const char *dbName, const char *className); /* 111 */
  668. void (*tkpMenuThreadInit) (void); /* 112 */
  669. int (*tkClipBox) (TkRegion rgn, XRectangle *rect_return); /* 113 */
  670. TkRegion (*tkCreateRegion) (void); /* 114 */
  671. int (*tkDestroyRegion) (TkRegion rgn); /* 115 */
  672. int (*tkIntersectRegion) (TkRegion sra, TkRegion srcb, TkRegion dr_return); /* 116 */
  673. int (*tkRectInRegion) (TkRegion rgn, int x, int y, unsigned int width, unsigned int height); /* 117 */
  674. int (*tkSetRegion) (Display *display, GC gc, TkRegion rgn); /* 118 */
  675. int (*tkUnionRectWithRegion) (XRectangle *rect, TkRegion src, TkRegion dr_return); /* 119 */
  676. void (*reserved120)(void);
  677. #if !(defined(_WIN32) || defined(MAC_OSX_TK)) /* X11 */
  678. void (*reserved121)(void);
  679. #endif /* X11 */
  680. #if defined(_WIN32) /* WIN */
  681. void (*reserved121)(void);
  682. #endif /* WIN */
  683. #ifdef MAC_OSX_TK /* AQUA */
  684. void (*reserved121)(void); /* Dummy entry for stubs table backwards compatibility */
  685. Pixmap (*tkpCreateNativeBitmap) (Display *display, const void *source); /* 121 */
  686. #endif /* AQUA */
  687. #if !(defined(_WIN32) || defined(MAC_OSX_TK)) /* X11 */
  688. void (*reserved122)(void);
  689. #endif /* X11 */
  690. #if defined(_WIN32) /* WIN */
  691. void (*reserved122)(void);
  692. #endif /* WIN */
  693. #ifdef MAC_OSX_TK /* AQUA */
  694. void (*reserved122)(void); /* Dummy entry for stubs table backwards compatibility */
  695. void (*tkpDefineNativeBitmaps) (void); /* 122 */
  696. #endif /* AQUA */
  697. void (*reserved123)(void);
  698. #if !(defined(_WIN32) || defined(MAC_OSX_TK)) /* X11 */
  699. void (*reserved124)(void);
  700. #endif /* X11 */
  701. #if defined(_WIN32) /* WIN */
  702. void (*reserved124)(void);
  703. #endif /* WIN */
  704. #ifdef MAC_OSX_TK /* AQUA */
  705. void (*reserved124)(void); /* Dummy entry for stubs table backwards compatibility */
  706. Pixmap (*tkpGetNativeAppBitmap) (Display *display, const char *name, int *width, int *height); /* 124 */
  707. #endif /* AQUA */
  708. void (*reserved125)(void);
  709. void (*reserved126)(void);
  710. void (*reserved127)(void);
  711. void (*reserved128)(void);
  712. void (*reserved129)(void);
  713. void (*reserved130)(void);
  714. void (*reserved131)(void);
  715. void (*reserved132)(void);
  716. void (*reserved133)(void);
  717. void (*reserved134)(void);
  718. void (*tkpDrawHighlightBorder) (Tk_Window tkwin, GC fgGC, GC bgGC, int highlightWidth, Drawable drawable); /* 135 */
  719. void (*tkSetFocusWin) (TkWindow *winPtr, int force); /* 136 */
  720. void (*tkpSetKeycodeAndState) (Tk_Window tkwin, KeySym keySym, XEvent *eventPtr); /* 137 */
  721. KeySym (*tkpGetKeySym) (TkDisplay *dispPtr, XEvent *eventPtr); /* 138 */
  722. void (*tkpInitKeymapInfo) (TkDisplay *dispPtr); /* 139 */
  723. TkRegion (*tkPhotoGetValidRegion) (Tk_PhotoHandle handle); /* 140 */
  724. TkWindow ** (*tkWmStackorderToplevel) (TkWindow *parentPtr); /* 141 */
  725. void (*tkFocusFree) (TkMainInfo *mainPtr); /* 142 */
  726. void (*tkClipCleanup) (TkDisplay *dispPtr); /* 143 */
  727. void (*tkGCCleanup) (TkDisplay *dispPtr); /* 144 */
  728. int (*tkSubtractRegion) (TkRegion sra, TkRegion srcb, TkRegion dr_return); /* 145 */
  729. void (*tkStylePkgInit) (TkMainInfo *mainPtr); /* 146 */
  730. void (*tkStylePkgFree) (TkMainInfo *mainPtr); /* 147 */
  731. Tk_Window (*tkToplevelWindowForCommand) (Tcl_Interp *interp, const char *cmdName); /* 148 */
  732. const Tk_OptionSpec * (*tkGetOptionSpec) (const char *name, Tk_OptionTable optionTable); /* 149 */
  733. int (*tkMakeRawCurve) (Tk_Canvas canvas, double *pointPtr, int numPoints, int numSteps, XPoint xPoints[], double dblPoints[]); /* 150 */
  734. void (*tkMakeRawCurvePostscript) (Tcl_Interp *interp, Tk_Canvas canvas, double *pointPtr, int numPoints); /* 151 */
  735. void (*tkpDrawFrame) (Tk_Window tkwin, Tk_3DBorder border, int highlightWidth, int borderWidth, int relief); /* 152 */
  736. void (*tkCreateThreadExitHandler) (Tcl_ExitProc *proc, ClientData clientData); /* 153 */
  737. void (*tkDeleteThreadExitHandler) (Tcl_ExitProc *proc, ClientData clientData); /* 154 */
  738. void (*reserved155)(void);
  739. int (*tkpTestembedCmd) (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 156 */
  740. int (*tkpTesttextCmd) (ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 157 */
  741. int (*tkSelGetSelection) (Tcl_Interp *interp, Tk_Window tkwin, Atom selection, Atom target, Tk_GetSelProc *proc, ClientData clientData); /* 158 */
  742. int (*tkTextGetIndex) (Tcl_Interp *interp, struct TkText *textPtr, const char *string, struct TkTextIndex *indexPtr); /* 159 */
  743. int (*tkTextIndexBackBytes) (const struct TkText *textPtr, const struct TkTextIndex *srcPtr, int count, struct TkTextIndex *dstPtr); /* 160 */
  744. int (*tkTextIndexForwBytes) (const struct TkText *textPtr, const struct TkTextIndex *srcPtr, int count, struct TkTextIndex *dstPtr); /* 161 */
  745. struct TkTextIndex * (*tkTextMakeByteIndex) (TkTextBTree tree, const struct TkText *textPtr, int lineIndex, int byteIndex, struct TkTextIndex *indexPtr); /* 162 */
  746. int (*tkTextPrintIndex) (const struct TkText *textPtr, const struct TkTextIndex *indexPtr, char *string); /* 163 */
  747. struct TkTextSegment * (*tkTextSetMark) (struct TkText *textPtr, const char *name, struct TkTextIndex *indexPtr); /* 164 */
  748. int (*tkTextXviewCmd) (struct TkText *textPtr, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 165 */
  749. void (*tkTextChanged) (struct TkSharedText *sharedTextPtr, struct TkText *textPtr, const struct TkTextIndex *index1Ptr, const struct TkTextIndex *index2Ptr); /* 166 */
  750. int (*tkBTreeNumLines) (TkTextBTree tree, const struct TkText *textPtr); /* 167 */
  751. void (*tkTextInsertDisplayProc) (struct TkText *textPtr, struct TkTextDispChunk *chunkPtr, int x, int y, int height, int baseline, Display *display, Drawable dst, int screenY); /* 168 */
  752. int (*tkStateParseProc) (ClientData clientData, Tcl_Interp *interp, Tk_Window tkwin, const char *value, char *widgRec, int offset); /* 169 */
  753. CONST86 char * (*tkStatePrintProc) (ClientData clientData, Tk_Window tkwin, char *widgRec, int offset, Tcl_FreeProc **freeProcPtr); /* 170 */
  754. int (*tkCanvasDashParseProc) (ClientData clientData, Tcl_Interp *interp, Tk_Window tkwin, const char *value, char *widgRec, int offset); /* 171 */
  755. CONST86 char * (*tkCanvasDashPrintProc) (ClientData clientData, Tk_Window tkwin, char *widgRec, int offset, Tcl_FreeProc **freeProcPtr); /* 172 */
  756. int (*tkOffsetParseProc) (ClientData clientData, Tcl_Interp *interp, Tk_Window tkwin, const char *value, char *widgRec, int offset); /* 173 */
  757. CONST86 char * (*tkOffsetPrintProc) (ClientData clientData, Tk_Window tkwin, char *widgRec, int offset, Tcl_FreeProc **freeProcPtr); /* 174 */
  758. int (*tkPixelParseProc) (ClientData clientData, Tcl_Interp *interp, Tk_Window tkwin, const char *value, char *widgRec, int offset); /* 175 */
  759. CONST86 char * (*tkPixelPrintProc) (ClientData clientData, Tk_Window tkwin, char *widgRec, int offset, Tcl_FreeProc **freeProcPtr); /* 176 */
  760. int (*tkOrientParseProc) (ClientData clientData, Tcl_Interp *interp, Tk_Window tkwin, const char *value, char *widgRec, int offset); /* 177 */
  761. CONST86 char * (*tkOrientPrintProc) (ClientData clientData, Tk_Window tkwin, char *widgRec, int offset, Tcl_FreeProc **freeProcPtr); /* 178 */
  762. int (*tkSmoothParseProc) (ClientData clientData, Tcl_Interp *interp, Tk_Window tkwin, const char *value, char *widgRec, int offset); /* 179 */
  763. CONST86 char * (*tkSmoothPrintProc) (ClientData clientData, Tk_Window tkwin, char *widgRec, int offset, Tcl_FreeProc **freeProcPtr); /* 180 */
  764. void (*tkDrawAngledTextLayout) (Display *display, Drawable drawable, GC gc, Tk_TextLayout layout, int x, int y, double angle, int firstChar, int lastChar); /* 181 */
  765. void (*tkUnderlineAngledTextLayout) (Display *display, Drawable drawable, GC gc, Tk_TextLayout layout, int x, int y, double angle, int underline); /* 182 */
  766. int (*tkIntersectAngledTextLayout) (Tk_TextLayout layout, int x, int y, int width, int height, double angle); /* 183 */
  767. void (*tkDrawAngledChars) (Display *display, Drawable drawable, GC gc, Tk_Font tkfont, const char *source, int numBytes, double x, double y, double angle); /* 184 */
  768. #if !defined(_WIN32) && !defined(MAC_OSX_TCL) /* UNIX */
  769. void (*reserved185)(void);
  770. #endif /* UNIX */
  771. #if defined(_WIN32) /* WIN */
  772. void (*reserved185)(void);
  773. #endif /* WIN */
  774. #ifdef MAC_OSX_TCL /* MACOSX */
  775. void (*tkpRedrawWidget) (Tk_Window tkwin); /* 185 */
  776. #endif /* MACOSX */
  777. #if !defined(_WIN32) && !defined(MAC_OSX_TCL) /* UNIX */
  778. void (*reserved186)(void);
  779. #endif /* UNIX */
  780. #if defined(_WIN32) /* WIN */
  781. void (*reserved186)(void);
  782. #endif /* WIN */
  783. #ifdef MAC_OSX_TCL /* MACOSX */
  784. int (*tkpWillDrawWidget) (Tk_Window tkwin); /* 186 */
  785. #endif /* MACOSX */
  786. } TkIntStubs;
  787. extern const TkIntStubs *tkIntStubsPtr;
  788. #ifdef __cplusplus
  789. }
  790. #endif
  791. #if defined(USE_TK_STUBS)
  792. /*
  793. * Inline function declarations:
  794. */
  795. #define TkAllocWindow \
  796. (tkIntStubsPtr->tkAllocWindow) /* 0 */
  797. #define TkBezierPoints \
  798. (tkIntStubsPtr->tkBezierPoints) /* 1 */
  799. #define TkBezierScreenPoints \
  800. (tkIntStubsPtr->tkBezierScreenPoints) /* 2 */
  801. /* Slot 3 is reserved */
  802. #define TkBindEventProc \
  803. (tkIntStubsPtr->tkBindEventProc) /* 4 */
  804. #define TkBindFree \
  805. (tkIntStubsPtr->tkBindFree) /* 5 */
  806. #define TkBindInit \
  807. (tkIntStubsPtr->tkBindInit) /* 6 */
  808. #define TkChangeEventWindow \
  809. (tkIntStubsPtr->tkChangeEventWindow) /* 7 */
  810. #define TkClipInit \
  811. (tkIntStubsPtr->tkClipInit) /* 8 */
  812. #define TkComputeAnchor \
  813. (tkIntStubsPtr->tkComputeAnchor) /* 9 */
  814. /* Slot 10 is reserved */
  815. /* Slot 11 is reserved */
  816. #define TkCreateCursorFromData \
  817. (tkIntStubsPtr->tkCreateCursorFromData) /* 12 */
  818. #define TkCreateFrame \
  819. (tkIntStubsPtr->tkCreateFrame) /* 13 */
  820. #define TkCreateMainWindow \
  821. (tkIntStubsPtr->tkCreateMainWindow) /* 14 */
  822. #define TkCurrentTime \
  823. (tkIntStubsPtr->tkCurrentTime) /* 15 */
  824. #define TkDeleteAllImages \
  825. (tkIntStubsPtr->tkDeleteAllImages) /* 16 */
  826. #define TkDoConfigureNotify \
  827. (tkIntStubsPtr->tkDoConfigureNotify) /* 17 */
  828. #define TkDrawInsetFocusHighlight \
  829. (tkIntStubsPtr->tkDrawInsetFocusHighlight) /* 18 */
  830. #define TkEventDeadWindow \
  831. (tkIntStubsPtr->tkEventDeadWindow) /* 19 */
  832. #define TkFillPolygon \
  833. (tkIntStubsPtr->tkFillPolygon) /* 20 */
  834. #define TkFindStateNum \
  835. (tkIntStubsPtr->tkFindStateNum) /* 21 */
  836. #define TkFindStateString \
  837. (tkIntStubsPtr->tkFindStateString) /* 22 */
  838. #define TkFocusDeadWindow \
  839. (tkIntStubsPtr->tkFocusDeadWindow) /* 23 */
  840. #define TkFocusFilterEvent \
  841. (tkIntStubsPtr->tkFocusFilterEvent) /* 24 */
  842. #define TkFocusKeyEvent \
  843. (tkIntStubsPtr->tkFocusKeyEvent) /* 25 */
  844. #define TkFontPkgInit \
  845. (tkIntStubsPtr->tkFontPkgInit) /* 26 */
  846. #define TkFontPkgFree \
  847. (tkIntStubsPtr->tkFontPkgFree) /* 27 */
  848. #define TkFreeBindingTags \
  849. (tkIntStubsPtr->tkFreeBindingTags) /* 28 */
  850. #define TkpFreeCursor \
  851. (tkIntStubsPtr->tkpFreeCursor) /* 29 */
  852. #define TkGetBitmapData \
  853. (tkIntStubsPtr->tkGetBitmapData) /* 30 */
  854. #define TkGetButtPoints \
  855. (tkIntStubsPtr->tkGetButtPoints) /* 31 */
  856. #define TkGetCursorByName \
  857. (tkIntStubsPtr->tkGetCursorByName) /* 32 */
  858. #define TkGetDefaultScreenName \
  859. (tkIntStubsPtr->tkGetDefaultScreenName) /* 33 */
  860. #define TkGetDisplay \
  861. (tkIntStubsPtr->tkGetDisplay) /* 34 */
  862. #define TkGetDisplayOf \
  863. (tkIntStubsPtr->tkGetDisplayOf) /* 35 */
  864. #define TkGetFocusWin \
  865. (tkIntStubsPtr->tkGetFocusWin) /* 36 */
  866. #define TkGetInterpNames \
  867. (tkIntStubsPtr->tkGetInterpNames) /* 37 */
  868. #define TkGetMiterPoints \
  869. (tkIntStubsPtr->tkGetMiterPoints) /* 38 */
  870. #define TkGetPointerCoords \
  871. (tkIntStubsPtr->tkGetPointerCoords) /* 39 */
  872. #define TkGetServerInfo \
  873. (tkIntStubsPtr->tkGetServerInfo) /* 40 */
  874. #define TkGrabDeadWindow \
  875. (tkIntStubsPtr->tkGrabDeadWindow) /* 41 */
  876. #define TkGrabState \
  877. (tkIntStubsPtr->tkGrabState) /* 42 */
  878. #define TkIncludePoint \
  879. (tkIntStubsPtr->tkIncludePoint) /* 43 */
  880. #define TkInOutEvents \
  881. (tkIntStubsPtr->tkInOutEvents) /* 44 */
  882. #define TkInstallFrameMenu \
  883. (tkIntStubsPtr->tkInstallFrameMenu) /* 45 */
  884. #define TkKeysymToString \
  885. (tkIntStubsPtr->tkKeysymToString) /* 46 */
  886. #define TkLineToArea \
  887. (tkIntStubsPtr->tkLineToArea) /* 47 */
  888. #define TkLineToPoint \
  889. (tkIntStubsPtr->tkLineToPoint) /* 48 */
  890. #define TkMakeBezierCurve \
  891. (tkIntStubsPtr->tkMakeBezierCurve) /* 49 */
  892. #define TkMakeBezierPostscript \
  893. (tkIntStubsPtr->tkMakeBezierPostscript) /* 50 */
  894. #define TkOptionClassChanged \
  895. (tkIntStubsPtr->tkOptionClassChanged) /* 51 */
  896. #define TkOptionDeadWindow \
  897. (tkIntStubsPtr->tkOptionDeadWindow) /* 52 */
  898. #define TkOvalToArea \
  899. (tkIntStubsPtr->tkOvalToArea) /* 53 */
  900. #define TkOvalToPoint \
  901. (tkIntStubsPtr->tkOvalToPoint) /* 54 */
  902. #define TkpChangeFocus \
  903. (tkIntStubsPtr->tkpChangeFocus) /* 55 */
  904. #define TkpCloseDisplay \
  905. (tkIntStubsPtr->tkpCloseDisplay) /* 56 */
  906. #define TkpClaimFocus \
  907. (tkIntStubsPtr->tkpClaimFocus) /* 57 */
  908. #define TkpDisplayWarning \
  909. (tkIntStubsPtr->tkpDisplayWarning) /* 58 */
  910. #define TkpGetAppName \
  911. (tkIntStubsPtr->tkpGetAppName) /* 59 */
  912. #define TkpGetOtherWindow \
  913. (tkIntStubsPtr->tkpGetOtherWindow) /* 60 */
  914. #define TkpGetWrapperWindow \
  915. (tkIntStubsPtr->tkpGetWrapperWindow) /* 61 */
  916. #define TkpInit \
  917. (tkIntStubsPtr->tkpInit) /* 62 */
  918. #define TkpInitializeMenuBindings \
  919. (tkIntStubsPtr->tkpInitializeMenuBindings) /* 63 */
  920. #define TkpMakeContainer \
  921. (tkIntStubsPtr->tkpMakeContainer) /* 64 */
  922. #define TkpMakeMenuWindow \
  923. (tkIntStubsPtr->tkpMakeMenuWindow) /* 65 */
  924. #define TkpMakeWindow \
  925. (tkIntStubsPtr->tkpMakeWindow) /* 66 */
  926. #define TkpMenuNotifyToplevelCreate \
  927. (tkIntStubsPtr->tkpMenuNotifyToplevelCreate) /* 67 */
  928. #define TkpOpenDisplay \
  929. (tkIntStubsPtr->tkpOpenDisplay) /* 68 */
  930. #define TkPointerEvent \
  931. (tkIntStubsPtr->tkPointerEvent) /* 69 */
  932. #define TkPolygonToArea \
  933. (tkIntStubsPtr->tkPolygonToArea) /* 70 */
  934. #define TkPolygonToPoint \
  935. (tkIntStubsPtr->tkPolygonToPoint) /* 71 */
  936. #define TkPositionInTree \
  937. (tkIntStubsPtr->tkPositionInTree) /* 72 */
  938. #define TkpRedirectKeyEvent \
  939. (tkIntStubsPtr->tkpRedirectKeyEvent) /* 73 */
  940. #define TkpSetMainMenubar \
  941. (tkIntStubsPtr->tkpSetMainMenubar) /* 74 */
  942. #define TkpUseWindow \
  943. (tkIntStubsPtr->tkpUseWindow) /* 75 */
  944. /* Slot 76 is reserved */
  945. #define TkQueueEventForAllChildren \
  946. (tkIntStubsPtr->tkQueueEventForAllChildren) /* 77 */
  947. #define TkReadBitmapFile \
  948. (tkIntStubsPtr->tkReadBitmapFile) /* 78 */
  949. #define TkScrollWindow \
  950. (tkIntStubsPtr->tkScrollWindow) /* 79 */
  951. #define TkSelDeadWindow \
  952. (tkIntStubsPtr->tkSelDeadWindow) /* 80 */
  953. #define TkSelEventProc \
  954. (tkIntStubsPtr->tkSelEventProc) /* 81 */
  955. #define TkSelInit \
  956. (tkIntStubsPtr->tkSelInit) /* 82 */
  957. #define TkSelPropProc \
  958. (tkIntStubsPtr->tkSelPropProc) /* 83 */
  959. /* Slot 84 is reserved */
  960. #define TkSetWindowMenuBar \
  961. (tkIntStubsPtr->tkSetWindowMenuBar) /* 85 */
  962. #define TkStringToKeysym \
  963. (tkIntStubsPtr->tkStringToKeysym) /* 86 */
  964. #define TkThickPolyLineToArea \
  965. (tkIntStubsPtr->tkThickPolyLineToArea) /* 87 */
  966. #define TkWmAddToColormapWindows \
  967. (tkIntStubsPtr->tkWmAddToColormapWindows) /* 88 */
  968. #define TkWmDeadWindow \
  969. (tkIntStubsPtr->tkWmDeadWindow) /* 89 */
  970. #define TkWmFocusToplevel \
  971. (tkIntStubsPtr->tkWmFocusToplevel) /* 90 */
  972. #define TkWmMapWindow \
  973. (tkIntStubsPtr->tkWmMapWindow) /* 91 */
  974. #define TkWmNewWindow \
  975. (tkIntStubsPtr->tkWmNewWindow) /* 92 */
  976. #define TkWmProtocolEventProc \
  977. (tkIntStubsPtr->tkWmProtocolEventProc) /* 93 */
  978. #define TkWmRemoveFromColormapWindows \
  979. (tkIntStubsPtr->tkWmRemoveFromColormapWindows) /* 94 */
  980. #define TkWmRestackToplevel \
  981. (tkIntStubsPtr->tkWmRestackToplevel) /* 95 */
  982. #define TkWmSetClass \
  983. (tkIntStubsPtr->tkWmSetClass) /* 96 */
  984. #define TkWmUnmapWindow \
  985. (tkIntStubsPtr->tkWmUnmapWindow) /* 97 */
  986. #define TkDebugBitmap \
  987. (tkIntStubsPtr->tkDebugBitmap) /* 98 */
  988. #define TkDebugBorder \
  989. (tkIntStubsPtr->tkDebugBorder) /* 99 */
  990. #define TkDebugCursor \
  991. (tkIntStubsPtr->tkDebugCursor) /* 100 */
  992. #define TkDebugColor \
  993. (tkIntStubsPtr->tkDebugColor) /* 101 */
  994. #define TkDebugConfig \
  995. (tkIntStubsPtr->tkDebugConfig) /* 102 */
  996. #define TkDebugFont \
  997. (tkIntStubsPtr->tkDebugFont) /* 103 */
  998. #define TkFindStateNumObj \
  999. (tkIntStubsPtr->tkFindStateNumObj) /* 104 */
  1000. #define TkGetBitmapPredefTable \
  1001. (tkIntStubsPtr->tkGetBitmapPredefTable) /* 105 */
  1002. #define TkGetDisplayList \
  1003. (tkIntStubsPtr->tkGetDisplayList) /* 106 */
  1004. #define TkGetMainInfoList \
  1005. (tkIntStubsPtr->tkGetMainInfoList) /* 107 */
  1006. #define TkGetWindowFromObj \
  1007. (tkIntStubsPtr->tkGetWindowFromObj) /* 108 */
  1008. #define TkpGetString \
  1009. (tkIntStubsPtr->tkpGetString) /* 109 */
  1010. #define TkpGetSubFonts \
  1011. (tkIntStubsPtr->tkpGetSubFonts) /* 110 */
  1012. #define TkpGetSystemDefault \
  1013. (tkIntStubsPtr->tkpGetSystemDefault) /* 111 */
  1014. #define TkpMenuThreadInit \
  1015. (tkIntStubsPtr->tkpMenuThreadInit) /* 112 */
  1016. #define TkClipBox \
  1017. (tkIntStubsPtr->tkClipBox) /* 113 */
  1018. #define TkCreateRegion \
  1019. (tkIntStubsPtr->tkCreateRegion) /* 114 */
  1020. #define TkDestroyRegion \
  1021. (tkIntStubsPtr->tkDestroyRegion) /* 115 */
  1022. #define TkIntersectRegion \
  1023. (tkIntStubsPtr->tkIntersectRegion) /* 116 */
  1024. #define TkRectInRegion \
  1025. (tkIntStubsPtr->tkRectInRegion) /* 117 */
  1026. #define TkSetRegion \
  1027. (tkIntStubsPtr->tkSetRegion) /* 118 */
  1028. #define TkUnionRectWithRegion \
  1029. (tkIntStubsPtr->tkUnionRectWithRegion) /* 119 */
  1030. /* Slot 120 is reserved */
  1031. #ifdef MAC_OSX_TK /* AQUA */
  1032. #define TkpCreateNativeBitmap \
  1033. (tkIntStubsPtr->tkpCreateNativeBitmap) /* 121 */
  1034. #endif /* AQUA */
  1035. #ifdef MAC_OSX_TK /* AQUA */
  1036. #define TkpDefineNativeBitmaps \
  1037. (tkIntStubsPtr->tkpDefineNativeBitmaps) /* 122 */
  1038. #endif /* AQUA */
  1039. /* Slot 123 is reserved */
  1040. #ifdef MAC_OSX_TK /* AQUA */
  1041. #define TkpGetNativeAppBitmap \
  1042. (tkIntStubsPtr->tkpGetNativeAppBitmap) /* 124 */
  1043. #endif /* AQUA */
  1044. /* Slot 125 is reserved */
  1045. /* Slot 126 is reserved */
  1046. /* Slot 127 is reserved */
  1047. /* Slot 128 is reserved */
  1048. /* Slot 129 is reserved */
  1049. /* Slot 130 is reserved */
  1050. /* Slot 131 is reserved */
  1051. /* Slot 132 is reserved */
  1052. /* Slot 133 is reserved */
  1053. /* Slot 134 is reserved */
  1054. #define TkpDrawHighlightBorder \
  1055. (tkIntStubsPtr->tkpDrawHighlightBorder) /* 135 */
  1056. #define TkSetFocusWin \
  1057. (tkIntStubsPtr->tkSetFocusWin) /* 136 */
  1058. #define TkpSetKeycodeAndState \
  1059. (tkIntStubsPtr->tkpSetKeycodeAndState) /* 137 */
  1060. #define TkpGetKeySym \
  1061. (tkIntStubsPtr->tkpGetKeySym) /* 138 */
  1062. #define TkpInitKeymapInfo \
  1063. (tkIntStubsPtr->tkpInitKeymapInfo) /* 139 */
  1064. #define TkPhotoGetValidRegion \
  1065. (tkIntStubsPtr->tkPhotoGetValidRegion) /* 140 */
  1066. #define TkWmStackorderToplevel \
  1067. (tkIntStubsPtr->tkWmStackorderToplevel) /* 141 */
  1068. #define TkFocusFree \
  1069. (tkIntStubsPtr->tkFocusFree) /* 142 */
  1070. #define TkClipCleanup \
  1071. (tkIntStubsPtr->tkClipCleanup) /* 143 */
  1072. #define TkGCCleanup \
  1073. (tkIntStubsPtr->tkGCCleanup) /* 144 */
  1074. #define TkSubtractRegion \
  1075. (tkIntStubsPtr->tkSubtractRegion) /* 145 */
  1076. #define TkStylePkgInit \
  1077. (tkIntStubsPtr->tkStylePkgInit) /* 146 */
  1078. #define TkStylePkgFree \
  1079. (tkIntStubsPtr->tkStylePkgFree) /* 147 */
  1080. #define TkToplevelWindowForCommand \
  1081. (tkIntStubsPtr->tkToplevelWindowForCommand) /* 148 */
  1082. #define TkGetOptionSpec \
  1083. (tkIntStubsPtr->tkGetOptionSpec) /* 149 */
  1084. #define TkMakeRawCurve \
  1085. (tkIntStubsPtr->tkMakeRawCurve) /* 150 */
  1086. #define TkMakeRawCurvePostscript \
  1087. (tkIntStubsPtr->tkMakeRawCurvePostscript) /* 151 */
  1088. #define TkpDrawFrame \
  1089. (tkIntStubsPtr->tkpDrawFrame) /* 152 */
  1090. #define TkCreateThreadExitHandler \
  1091. (tkIntStubsPtr->tkCreateThreadExitHandler) /* 153 */
  1092. #define TkDeleteThreadExitHandler \
  1093. (tkIntStubsPtr->tkDeleteThreadExitHandler) /* 154 */
  1094. /* Slot 155 is reserved */
  1095. #define TkpTestembedCmd \
  1096. (tkIntStubsPtr->tkpTestembedCmd) /* 156 */
  1097. #define TkpTesttextCmd \
  1098. (tkIntStubsPtr->tkpTesttextCmd) /* 157 */
  1099. #define TkSelGetSelection \
  1100. (tkIntStubsPtr->tkSelGetSelection) /* 158 */
  1101. #define TkTextGetIndex \
  1102. (tkIntStubsPtr->tkTextGetIndex) /* 159 */
  1103. #define TkTextIndexBackBytes \
  1104. (tkIntStubsPtr->tkTextIndexBackBytes) /* 160 */
  1105. #define TkTextIndexForwBytes \
  1106. (tkIntStubsPtr->tkTextIndexForwBytes) /* 161 */
  1107. #define TkTextMakeByteIndex \
  1108. (tkIntStubsPtr->tkTextMakeByteIndex) /* 162 */
  1109. #define TkTextPrintIndex \
  1110. (tkIntStubsPtr->tkTextPrintIndex) /* 163 */
  1111. #define TkTextSetMark \
  1112. (tkIntStubsPtr->tkTextSetMark) /* 164 */
  1113. #define TkTextXviewCmd \
  1114. (tkIntStubsPtr->tkTextXviewCmd) /* 165 */
  1115. #define TkTextChanged \
  1116. (tkIntStubsPtr->tkTextChanged) /* 166 */
  1117. #define TkBTreeNumLines \
  1118. (tkIntStubsPtr->tkBTreeNumLines) /* 167 */
  1119. #define TkTextInsertDisplayProc \
  1120. (tkIntStubsPtr->tkTextInsertDisplayProc) /* 168 */
  1121. #define TkStateParseProc \
  1122. (tkIntStubsPtr->tkStateParseProc) /* 169 */
  1123. #define TkStatePrintProc \
  1124. (tkIntStubsPtr->tkStatePrintProc) /* 170 */
  1125. #define TkCanvasDashParseProc \
  1126. (tkIntStubsPtr->tkCanvasDashParseProc) /* 171 */
  1127. #define TkCanvasDashPrintProc \
  1128. (tkIntStubsPtr->tkCanvasDashPrintProc) /* 172 */
  1129. #define TkOffsetParseProc \
  1130. (tkIntStubsPtr->tkOffsetParseProc) /* 173 */
  1131. #define TkOffsetPrintProc \
  1132. (tkIntStubsPtr->tkOffsetPrintProc) /* 174 */
  1133. #define TkPixelParseProc \
  1134. (tkIntStubsPtr->tkPixelParseProc) /* 175 */
  1135. #define TkPixelPrintProc \
  1136. (tkIntStubsPtr->tkPixelPrintProc) /* 176 */
  1137. #define TkOrientParseProc \
  1138. (tkIntStubsPtr->tkOrientParseProc) /* 177 */
  1139. #define TkOrientPrintProc \
  1140. (tkIntStubsPtr->tkOrientPrintProc) /* 178 */
  1141. #define TkSmoothParseProc \
  1142. (tkIntStubsPtr->tkSmoothParseProc) /* 179 */
  1143. #define TkSmoothPrintProc \
  1144. (tkIntStubsPtr->tkSmoothPrintProc) /* 180 */
  1145. #define TkDrawAngledTextLayout \
  1146. (tkIntStubsPtr->tkDrawAngledTextLayout) /* 181 */
  1147. #define TkUnderlineAngledTextLayout \
  1148. (tkIntStubsPtr->tkUnderlineAngledTextLayout) /* 182 */
  1149. #define TkIntersectAngledTextLayout \
  1150. (tkIntStubsPtr->tkIntersectAngledTextLayout) /* 183 */
  1151. #define TkDrawAngledChars \
  1152. (tkIntStubsPtr->tkDrawAngledChars) /* 184 */
  1153. #ifdef MAC_OSX_TCL /* MACOSX */
  1154. #define TkpRedrawWidget \
  1155. (tkIntStubsPtr->tkpRedrawWidget) /* 185 */
  1156. #endif /* MACOSX */
  1157. #ifdef MAC_OSX_TCL /* MACOSX */
  1158. #define TkpWillDrawWidget \
  1159. (tkIntStubsPtr->tkpWillDrawWidget) /* 186 */
  1160. #endif /* MACOSX */
  1161. #endif /* defined(USE_TK_STUBS) */
  1162. /* !END!: Do not edit above this line. */
  1163. #undef TCL_STORAGE_CLASS
  1164. #define TCL_STORAGE_CLASS DLLIMPORT
  1165. /*
  1166. * On X11, these macros are just wrappers for the equivalent X Region calls.
  1167. */
  1168. #if !(defined(_WIN32) || defined(__CYGWIN__) || defined(MAC_OSX_TK)) /* X11 */
  1169. #undef TkClipBox
  1170. #undef TkCreateRegion
  1171. #undef TkDestroyRegion
  1172. #undef TkIntersectRegion
  1173. #undef TkRectInRegion
  1174. #undef TkSetRegion
  1175. #undef TkSubtractRegion
  1176. #undef TkUnionRectWithRegion
  1177. #undef TkpCmapStressed_
  1178. #undef TkpSync_
  1179. #undef TkUnixContainerId_
  1180. #undef TkUnixDoOneXEvent_
  1181. #undef TkUnixSetMenubar_
  1182. #undef TkWmCleanup_
  1183. #undef TkSendCleanup_
  1184. #undef TkpTestsendCmd_
  1185. #define TkClipBox(rgn, rect) XClipBox((Region) rgn, rect)
  1186. #define TkCreateRegion() (TkRegion) XCreateRegion()
  1187. #define TkDestroyRegion(rgn) XDestroyRegion((Region) rgn)
  1188. #define TkIntersectRegion(a, b, r) XIntersectRegion((Region) a, \
  1189. (Region) b, (Region) r)
  1190. #define TkRectInRegion(r, x, y, w, h) XRectInRegion((Region) r, x, y, w, h)
  1191. #define TkSetRegion(d, gc, rgn) XSetRegion(d, gc, (Region) rgn)
  1192. #define TkSubtractRegion(a, b, r) XSubtractRegion((Region) a, \
  1193. (Region) b, (Region) r)
  1194. #define TkUnionRectWithRegion(rect, src, ret) XUnionRectWithRegion(rect, \
  1195. (Region) src, (Region) ret)
  1196. #endif /* UNIX */
  1197. #if !defined(MAC_OSX_TK)
  1198. # undef TkpWillDrawWidget
  1199. # undef TkpRedrawWidget
  1200. # define TkpWillDrawWidget(w) 0
  1201. # define TkpRedrawWidget(w)
  1202. #endif
  1203. #endif /* _TKINTDECLS */