tkIntPlatDecls.h 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  1. /*
  2. * tkIntPlatDecls.h --
  3. *
  4. * This file contains the declarations for all platform dependent
  5. * unsupported 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. * All rights reserved.
  11. */
  12. #ifndef _TKINTPLATDECLS
  13. #define _TKINTPLATDECLS
  14. #ifdef BUILD_tk
  15. #undef TCL_STORAGE_CLASS
  16. #define TCL_STORAGE_CLASS DLLEXPORT
  17. #endif
  18. /*
  19. * WARNING: This file is automatically generated by the tools/genStubs.tcl
  20. * script. Any modifications to the function declarations below should be made
  21. * in the generic/tkInt.decls script.
  22. */
  23. /* !BEGIN!: Do not edit below this line. */
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /*
  28. * Exported function declarations:
  29. */
  30. #if defined(_WIN32) || defined(__CYGWIN__) /* WIN */
  31. /* 0 */
  32. EXTERN char * TkAlignImageData(XImage *image, int alignment,
  33. int bitOrder);
  34. /* Slot 1 is reserved */
  35. /* 2 */
  36. EXTERN void TkGenerateActivateEvents(TkWindow *winPtr,
  37. int active);
  38. /* 3 */
  39. EXTERN unsigned long TkpGetMS(void);
  40. /* 4 */
  41. EXTERN void TkPointerDeadWindow(TkWindow *winPtr);
  42. /* 5 */
  43. EXTERN void TkpPrintWindowId(char *buf, Window window);
  44. /* 6 */
  45. EXTERN int TkpScanWindowId(Tcl_Interp *interp,
  46. const char *string, Window *idPtr);
  47. /* 7 */
  48. EXTERN void TkpSetCapture(TkWindow *winPtr);
  49. /* 8 */
  50. EXTERN void TkpSetCursor(TkpCursor cursor);
  51. /* 9 */
  52. EXTERN int TkpWmSetState(TkWindow *winPtr, int state);
  53. /* 10 */
  54. EXTERN void TkSetPixmapColormap(Pixmap pixmap, Colormap colormap);
  55. /* 11 */
  56. EXTERN void TkWinCancelMouseTimer(void);
  57. /* 12 */
  58. EXTERN void TkWinClipboardRender(TkDisplay *dispPtr, UINT format);
  59. /* 13 */
  60. EXTERN LRESULT TkWinEmbeddedEventProc(HWND hwnd, UINT message,
  61. WPARAM wParam, LPARAM lParam);
  62. /* 14 */
  63. EXTERN void TkWinFillRect(HDC dc, int x, int y, int width,
  64. int height, int pixel);
  65. /* 15 */
  66. EXTERN COLORREF TkWinGetBorderPixels(Tk_Window tkwin,
  67. Tk_3DBorder border, int which);
  68. /* 16 */
  69. EXTERN HDC TkWinGetDrawableDC(Display *display, Drawable d,
  70. TkWinDCState *state);
  71. /* 17 */
  72. EXTERN int TkWinGetModifierState(void);
  73. /* 18 */
  74. EXTERN HPALETTE TkWinGetSystemPalette(void);
  75. /* 19 */
  76. EXTERN HWND TkWinGetWrapperWindow(Tk_Window tkwin);
  77. /* 20 */
  78. EXTERN int TkWinHandleMenuEvent(HWND *phwnd, UINT *pMessage,
  79. WPARAM *pwParam, LPARAM *plParam,
  80. LRESULT *plResult);
  81. /* 21 */
  82. EXTERN int TkWinIndexOfColor(XColor *colorPtr);
  83. /* 22 */
  84. EXTERN void TkWinReleaseDrawableDC(Drawable d, HDC hdc,
  85. TkWinDCState *state);
  86. /* 23 */
  87. EXTERN LRESULT TkWinResendEvent(WNDPROC wndproc, HWND hwnd,
  88. XEvent *eventPtr);
  89. /* 24 */
  90. EXTERN HPALETTE TkWinSelectPalette(HDC dc, Colormap colormap);
  91. /* 25 */
  92. EXTERN void TkWinSetMenu(Tk_Window tkwin, HMENU hMenu);
  93. /* 26 */
  94. EXTERN void TkWinSetWindowPos(HWND hwnd, HWND siblingHwnd,
  95. int pos);
  96. /* 27 */
  97. EXTERN void TkWinWmCleanup(HINSTANCE hInstance);
  98. /* 28 */
  99. EXTERN void TkWinXCleanup(ClientData clientData);
  100. /* 29 */
  101. EXTERN void TkWinXInit(HINSTANCE hInstance);
  102. /* 30 */
  103. EXTERN void TkWinSetForegroundWindow(TkWindow *winPtr);
  104. /* 31 */
  105. EXTERN void TkWinDialogDebug(int debug);
  106. /* 32 */
  107. EXTERN Tcl_Obj * TkWinGetMenuSystemDefault(Tk_Window tkwin,
  108. const char *dbName, const char *className);
  109. /* 33 */
  110. EXTERN int TkWinGetPlatformId(void);
  111. /* 34 */
  112. EXTERN void TkWinSetHINSTANCE(HINSTANCE hInstance);
  113. /* 35 */
  114. EXTERN int TkWinGetPlatformTheme(void);
  115. /* 36 */
  116. EXTERN LRESULT __stdcall TkWinChildProc(HWND hwnd, UINT message,
  117. WPARAM wParam, LPARAM lParam);
  118. /* 37 */
  119. EXTERN void TkCreateXEventSource(void);
  120. /* 38 */
  121. EXTERN int TkpCmapStressed(Tk_Window tkwin, Colormap colormap);
  122. /* 39 */
  123. EXTERN void TkpSync(Display *display);
  124. /* 40 */
  125. EXTERN Window TkUnixContainerId(TkWindow *winPtr);
  126. /* 41 */
  127. EXTERN int TkUnixDoOneXEvent(Tcl_Time *timePtr);
  128. /* 42 */
  129. EXTERN void TkUnixSetMenubar(Tk_Window tkwin, Tk_Window menubar);
  130. /* 43 */
  131. EXTERN void TkWmCleanup(TkDisplay *dispPtr);
  132. /* 44 */
  133. EXTERN void TkSendCleanup(TkDisplay *dispPtr);
  134. /* 45 */
  135. EXTERN int TkpTestsendCmd(ClientData clientData,
  136. Tcl_Interp *interp, int objc,
  137. Tcl_Obj *const objv[]);
  138. /* Slot 46 is reserved */
  139. /* 47 */
  140. EXTERN Tk_Window TkpGetCapture(void);
  141. #endif /* WIN */
  142. #ifdef MAC_OSX_TK /* AQUA */
  143. /* 0 */
  144. EXTERN void TkGenerateActivateEvents(TkWindow *winPtr,
  145. int active);
  146. /* Slot 1 is reserved */
  147. /* 2 */
  148. EXTERN void TkGenerateActivateEvents_(TkWindow *winPtr,
  149. int active);
  150. /* 3 */
  151. EXTERN void TkPointerDeadWindow(TkWindow *winPtr);
  152. /* 4 */
  153. EXTERN void TkpSetCapture(TkWindow *winPtr);
  154. /* 5 */
  155. EXTERN void TkpSetCursor(TkpCursor cursor);
  156. /* 6 */
  157. EXTERN void TkpWmSetState(TkWindow *winPtr, int state);
  158. /* 7 */
  159. EXTERN void TkAboutDlg(void);
  160. /* 8 */
  161. EXTERN unsigned int TkMacOSXButtonKeyState(void);
  162. /* 9 */
  163. EXTERN void TkMacOSXClearMenubarActive(void);
  164. /* 10 */
  165. EXTERN int TkMacOSXDispatchMenuEvent(int menuID, int index);
  166. /* 11 */
  167. EXTERN void TkMacOSXInstallCursor(int resizeOverride);
  168. /* 12 */
  169. EXTERN void TkMacOSXHandleTearoffMenu(void);
  170. /* Slot 13 is reserved */
  171. /* 14 */
  172. EXTERN int TkMacOSXDoHLEvent(void *theEvent);
  173. /* Slot 15 is reserved */
  174. /* 16 */
  175. EXTERN Window TkMacOSXGetXWindow(void *macWinPtr);
  176. /* 17 */
  177. EXTERN int TkMacOSXGrowToplevel(void *whichWindow, XPoint start);
  178. /* 18 */
  179. EXTERN void TkMacOSXHandleMenuSelect(short theMenu,
  180. unsigned short theItem, int optionKeyPressed);
  181. /* Slot 19 is reserved */
  182. /* Slot 20 is reserved */
  183. /* 21 */
  184. EXTERN void TkMacOSXInvalidateWindow(MacDrawable *macWin,
  185. int flag);
  186. /* 22 */
  187. EXTERN int TkMacOSXIsCharacterMissing(Tk_Font tkfont,
  188. unsigned int searchChar);
  189. /* 23 */
  190. EXTERN void TkMacOSXMakeRealWindowExist(TkWindow *winPtr);
  191. /* 24 */
  192. EXTERN void * TkMacOSXMakeStippleMap(Drawable d1, Drawable d2);
  193. /* 25 */
  194. EXTERN void TkMacOSXMenuClick(void);
  195. /* Slot 26 is reserved */
  196. /* 27 */
  197. EXTERN int TkMacOSXResizable(TkWindow *winPtr);
  198. /* 28 */
  199. EXTERN void TkMacOSXSetHelpMenuItemCount(void);
  200. /* 29 */
  201. EXTERN void TkMacOSXSetScrollbarGrow(TkWindow *winPtr, int flag);
  202. /* 30 */
  203. EXTERN void TkMacOSXSetUpClippingRgn(Drawable drawable);
  204. /* 31 */
  205. EXTERN void TkMacOSXSetUpGraphicsPort(GC gc, void *destPort);
  206. /* 32 */
  207. EXTERN void TkMacOSXUpdateClipRgn(TkWindow *winPtr);
  208. /* Slot 33 is reserved */
  209. /* 34 */
  210. EXTERN int TkMacOSXUseMenuID(short macID);
  211. /* 35 */
  212. EXTERN TkRegion TkMacOSXVisableClipRgn(TkWindow *winPtr);
  213. /* 36 */
  214. EXTERN void TkMacOSXWinBounds(TkWindow *winPtr, void *geometry);
  215. /* 37 */
  216. EXTERN void TkMacOSXWindowOffset(void *wRef, int *xOffset,
  217. int *yOffset);
  218. /* 38 */
  219. EXTERN int TkSetMacColor(unsigned long pixel, void *macColor);
  220. /* 39 */
  221. EXTERN void TkSetWMName(TkWindow *winPtr, Tk_Uid titleUid);
  222. /* Slot 40 is reserved */
  223. /* 41 */
  224. EXTERN int TkMacOSXZoomToplevel(void *whichWindow,
  225. short zoomPart);
  226. /* 42 */
  227. EXTERN Tk_Window Tk_TopCoordsToWindow(Tk_Window tkwin, int rootX,
  228. int rootY, int *newX, int *newY);
  229. /* 43 */
  230. EXTERN MacDrawable * TkMacOSXContainerId(TkWindow *winPtr);
  231. /* 44 */
  232. EXTERN MacDrawable * TkMacOSXGetHostToplevel(TkWindow *winPtr);
  233. /* 45 */
  234. EXTERN void TkMacOSXPreprocessMenu(void);
  235. /* 46 */
  236. EXTERN int TkpIsWindowFloating(void *window);
  237. /* 47 */
  238. EXTERN Tk_Window TkMacOSXGetCapture(void);
  239. /* Slot 48 is reserved */
  240. /* 49 */
  241. EXTERN Tk_Window TkGetTransientMaster(TkWindow *winPtr);
  242. /* 50 */
  243. EXTERN int TkGenerateButtonEvent(int x, int y, Window window,
  244. unsigned int state);
  245. /* 51 */
  246. EXTERN void TkGenWMDestroyEvent(Tk_Window tkwin);
  247. /* 52 */
  248. EXTERN void TkMacOSXSetDrawingEnabled(TkWindow *winPtr, int flag);
  249. /* 53 */
  250. EXTERN unsigned long TkpGetMS(void);
  251. /* 54 */
  252. EXTERN void * TkMacOSXDrawable(Drawable drawable);
  253. /* 55 */
  254. EXTERN int TkpScanWindowId(Tcl_Interp *interp,
  255. const char *string, Window *idPtr);
  256. #endif /* AQUA */
  257. #if !(defined(_WIN32) || defined(__CYGWIN__) || defined(MAC_OSX_TK)) /* X11 */
  258. /* 0 */
  259. EXTERN void TkCreateXEventSource(void);
  260. /* Slot 1 is reserved */
  261. /* 2 */
  262. EXTERN void TkGenerateActivateEvents(TkWindow *winPtr,
  263. int active);
  264. /* 3 */
  265. EXTERN int TkpCmapStressed(Tk_Window tkwin, Colormap colormap);
  266. /* 4 */
  267. EXTERN void TkpSync(Display *display);
  268. /* 5 */
  269. EXTERN Window TkUnixContainerId(TkWindow *winPtr);
  270. /* 6 */
  271. EXTERN int TkUnixDoOneXEvent(Tcl_Time *timePtr);
  272. /* 7 */
  273. EXTERN void TkUnixSetMenubar(Tk_Window tkwin, Tk_Window menubar);
  274. /* 8 */
  275. EXTERN int TkpScanWindowId(Tcl_Interp *interp,
  276. const char *string, Window *idPtr);
  277. /* 9 */
  278. EXTERN void TkWmCleanup(TkDisplay *dispPtr);
  279. /* 10 */
  280. EXTERN void TkSendCleanup(TkDisplay *dispPtr);
  281. /* Slot 11 is reserved */
  282. /* 12 */
  283. EXTERN int TkpWmSetState(TkWindow *winPtr, int state);
  284. /* 13 */
  285. EXTERN int TkpTestsendCmd(ClientData clientData,
  286. Tcl_Interp *interp, int objc,
  287. Tcl_Obj *const objv[]);
  288. /* Slot 14 is reserved */
  289. /* Slot 15 is reserved */
  290. /* Slot 16 is reserved */
  291. /* Slot 17 is reserved */
  292. /* Slot 18 is reserved */
  293. /* Slot 19 is reserved */
  294. /* Slot 20 is reserved */
  295. /* Slot 21 is reserved */
  296. /* Slot 22 is reserved */
  297. /* Slot 23 is reserved */
  298. /* Slot 24 is reserved */
  299. /* Slot 25 is reserved */
  300. /* Slot 26 is reserved */
  301. /* Slot 27 is reserved */
  302. /* Slot 28 is reserved */
  303. /* Slot 29 is reserved */
  304. /* Slot 30 is reserved */
  305. /* Slot 31 is reserved */
  306. /* Slot 32 is reserved */
  307. /* Slot 33 is reserved */
  308. /* Slot 34 is reserved */
  309. /* Slot 35 is reserved */
  310. /* Slot 36 is reserved */
  311. /* Slot 37 is reserved */
  312. /* 38 */
  313. EXTERN int TkpCmapStressed_(Tk_Window tkwin, Colormap colormap);
  314. /* 39 */
  315. EXTERN void TkpSync_(Display *display);
  316. /* 40 */
  317. EXTERN Window TkUnixContainerId_(TkWindow *winPtr);
  318. /* 41 */
  319. EXTERN int TkUnixDoOneXEvent_(Tcl_Time *timePtr);
  320. /* 42 */
  321. EXTERN void TkUnixSetMenubar_(Tk_Window tkwin, Tk_Window menubar);
  322. /* 43 */
  323. EXTERN void TkWmCleanup_(TkDisplay *dispPtr);
  324. /* 44 */
  325. EXTERN void TkSendCleanup_(TkDisplay *dispPtr);
  326. /* 45 */
  327. EXTERN int TkpTestsendCmd_(ClientData clientData,
  328. Tcl_Interp *interp, int objc,
  329. Tcl_Obj *const objv[]);
  330. #endif /* X11 */
  331. typedef struct TkIntPlatStubs {
  332. int magic;
  333. void *hooks;
  334. #if defined(_WIN32) || defined(__CYGWIN__) /* WIN */
  335. char * (*tkAlignImageData) (XImage *image, int alignment, int bitOrder); /* 0 */
  336. void (*reserved1)(void);
  337. void (*tkGenerateActivateEvents) (TkWindow *winPtr, int active); /* 2 */
  338. unsigned long (*tkpGetMS) (void); /* 3 */
  339. void (*tkPointerDeadWindow) (TkWindow *winPtr); /* 4 */
  340. void (*tkpPrintWindowId) (char *buf, Window window); /* 5 */
  341. int (*tkpScanWindowId) (Tcl_Interp *interp, const char *string, Window *idPtr); /* 6 */
  342. void (*tkpSetCapture) (TkWindow *winPtr); /* 7 */
  343. void (*tkpSetCursor) (TkpCursor cursor); /* 8 */
  344. int (*tkpWmSetState) (TkWindow *winPtr, int state); /* 9 */
  345. void (*tkSetPixmapColormap) (Pixmap pixmap, Colormap colormap); /* 10 */
  346. void (*tkWinCancelMouseTimer) (void); /* 11 */
  347. void (*tkWinClipboardRender) (TkDisplay *dispPtr, UINT format); /* 12 */
  348. LRESULT (*tkWinEmbeddedEventProc) (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); /* 13 */
  349. void (*tkWinFillRect) (HDC dc, int x, int y, int width, int height, int pixel); /* 14 */
  350. COLORREF (*tkWinGetBorderPixels) (Tk_Window tkwin, Tk_3DBorder border, int which); /* 15 */
  351. HDC (*tkWinGetDrawableDC) (Display *display, Drawable d, TkWinDCState *state); /* 16 */
  352. int (*tkWinGetModifierState) (void); /* 17 */
  353. HPALETTE (*tkWinGetSystemPalette) (void); /* 18 */
  354. HWND (*tkWinGetWrapperWindow) (Tk_Window tkwin); /* 19 */
  355. int (*tkWinHandleMenuEvent) (HWND *phwnd, UINT *pMessage, WPARAM *pwParam, LPARAM *plParam, LRESULT *plResult); /* 20 */
  356. int (*tkWinIndexOfColor) (XColor *colorPtr); /* 21 */
  357. void (*tkWinReleaseDrawableDC) (Drawable d, HDC hdc, TkWinDCState *state); /* 22 */
  358. LRESULT (*tkWinResendEvent) (WNDPROC wndproc, HWND hwnd, XEvent *eventPtr); /* 23 */
  359. HPALETTE (*tkWinSelectPalette) (HDC dc, Colormap colormap); /* 24 */
  360. void (*tkWinSetMenu) (Tk_Window tkwin, HMENU hMenu); /* 25 */
  361. void (*tkWinSetWindowPos) (HWND hwnd, HWND siblingHwnd, int pos); /* 26 */
  362. void (*tkWinWmCleanup) (HINSTANCE hInstance); /* 27 */
  363. void (*tkWinXCleanup) (ClientData clientData); /* 28 */
  364. void (*tkWinXInit) (HINSTANCE hInstance); /* 29 */
  365. void (*tkWinSetForegroundWindow) (TkWindow *winPtr); /* 30 */
  366. void (*tkWinDialogDebug) (int debug); /* 31 */
  367. Tcl_Obj * (*tkWinGetMenuSystemDefault) (Tk_Window tkwin, const char *dbName, const char *className); /* 32 */
  368. int (*tkWinGetPlatformId) (void); /* 33 */
  369. void (*tkWinSetHINSTANCE) (HINSTANCE hInstance); /* 34 */
  370. int (*tkWinGetPlatformTheme) (void); /* 35 */
  371. LRESULT (__stdcall *tkWinChildProc) (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); /* 36 */
  372. void (*tkCreateXEventSource) (void); /* 37 */
  373. int (*tkpCmapStressed) (Tk_Window tkwin, Colormap colormap); /* 38 */
  374. void (*tkpSync) (Display *display); /* 39 */
  375. Window (*tkUnixContainerId) (TkWindow *winPtr); /* 40 */
  376. int (*tkUnixDoOneXEvent) (Tcl_Time *timePtr); /* 41 */
  377. void (*tkUnixSetMenubar) (Tk_Window tkwin, Tk_Window menubar); /* 42 */
  378. void (*tkWmCleanup) (TkDisplay *dispPtr); /* 43 */
  379. void (*tkSendCleanup) (TkDisplay *dispPtr); /* 44 */
  380. int (*tkpTestsendCmd) (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 45 */
  381. void (*reserved46)(void);
  382. Tk_Window (*tkpGetCapture) (void); /* 47 */
  383. #endif /* WIN */
  384. #ifdef MAC_OSX_TK /* AQUA */
  385. void (*tkGenerateActivateEvents) (TkWindow *winPtr, int active); /* 0 */
  386. void (*reserved1)(void);
  387. void (*tkGenerateActivateEvents_) (TkWindow *winPtr, int active); /* 2 */
  388. void (*tkPointerDeadWindow) (TkWindow *winPtr); /* 3 */
  389. void (*tkpSetCapture) (TkWindow *winPtr); /* 4 */
  390. void (*tkpSetCursor) (TkpCursor cursor); /* 5 */
  391. void (*tkpWmSetState) (TkWindow *winPtr, int state); /* 6 */
  392. void (*tkAboutDlg) (void); /* 7 */
  393. unsigned int (*tkMacOSXButtonKeyState) (void); /* 8 */
  394. void (*tkMacOSXClearMenubarActive) (void); /* 9 */
  395. int (*tkMacOSXDispatchMenuEvent) (int menuID, int index); /* 10 */
  396. void (*tkMacOSXInstallCursor) (int resizeOverride); /* 11 */
  397. void (*tkMacOSXHandleTearoffMenu) (void); /* 12 */
  398. void (*reserved13)(void);
  399. int (*tkMacOSXDoHLEvent) (void *theEvent); /* 14 */
  400. void (*reserved15)(void);
  401. Window (*tkMacOSXGetXWindow) (void *macWinPtr); /* 16 */
  402. int (*tkMacOSXGrowToplevel) (void *whichWindow, XPoint start); /* 17 */
  403. void (*tkMacOSXHandleMenuSelect) (short theMenu, unsigned short theItem, int optionKeyPressed); /* 18 */
  404. void (*reserved19)(void);
  405. void (*reserved20)(void);
  406. void (*tkMacOSXInvalidateWindow) (MacDrawable *macWin, int flag); /* 21 */
  407. int (*tkMacOSXIsCharacterMissing) (Tk_Font tkfont, unsigned int searchChar); /* 22 */
  408. void (*tkMacOSXMakeRealWindowExist) (TkWindow *winPtr); /* 23 */
  409. void * (*tkMacOSXMakeStippleMap) (Drawable d1, Drawable d2); /* 24 */
  410. void (*tkMacOSXMenuClick) (void); /* 25 */
  411. void (*reserved26)(void);
  412. int (*tkMacOSXResizable) (TkWindow *winPtr); /* 27 */
  413. void (*tkMacOSXSetHelpMenuItemCount) (void); /* 28 */
  414. void (*tkMacOSXSetScrollbarGrow) (TkWindow *winPtr, int flag); /* 29 */
  415. void (*tkMacOSXSetUpClippingRgn) (Drawable drawable); /* 30 */
  416. void (*tkMacOSXSetUpGraphicsPort) (GC gc, void *destPort); /* 31 */
  417. void (*tkMacOSXUpdateClipRgn) (TkWindow *winPtr); /* 32 */
  418. void (*reserved33)(void);
  419. int (*tkMacOSXUseMenuID) (short macID); /* 34 */
  420. TkRegion (*tkMacOSXVisableClipRgn) (TkWindow *winPtr); /* 35 */
  421. void (*tkMacOSXWinBounds) (TkWindow *winPtr, void *geometry); /* 36 */
  422. void (*tkMacOSXWindowOffset) (void *wRef, int *xOffset, int *yOffset); /* 37 */
  423. int (*tkSetMacColor) (unsigned long pixel, void *macColor); /* 38 */
  424. void (*tkSetWMName) (TkWindow *winPtr, Tk_Uid titleUid); /* 39 */
  425. void (*reserved40)(void);
  426. int (*tkMacOSXZoomToplevel) (void *whichWindow, short zoomPart); /* 41 */
  427. Tk_Window (*tk_TopCoordsToWindow) (Tk_Window tkwin, int rootX, int rootY, int *newX, int *newY); /* 42 */
  428. MacDrawable * (*tkMacOSXContainerId) (TkWindow *winPtr); /* 43 */
  429. MacDrawable * (*tkMacOSXGetHostToplevel) (TkWindow *winPtr); /* 44 */
  430. void (*tkMacOSXPreprocessMenu) (void); /* 45 */
  431. int (*tkpIsWindowFloating) (void *window); /* 46 */
  432. Tk_Window (*tkMacOSXGetCapture) (void); /* 47 */
  433. void (*reserved48)(void);
  434. Tk_Window (*tkGetTransientMaster) (TkWindow *winPtr); /* 49 */
  435. int (*tkGenerateButtonEvent) (int x, int y, Window window, unsigned int state); /* 50 */
  436. void (*tkGenWMDestroyEvent) (Tk_Window tkwin); /* 51 */
  437. void (*tkMacOSXSetDrawingEnabled) (TkWindow *winPtr, int flag); /* 52 */
  438. unsigned long (*tkpGetMS) (void); /* 53 */
  439. void * (*tkMacOSXDrawable) (Drawable drawable); /* 54 */
  440. int (*tkpScanWindowId) (Tcl_Interp *interp, const char *string, Window *idPtr); /* 55 */
  441. #endif /* AQUA */
  442. #if !(defined(_WIN32) || defined(__CYGWIN__) || defined(MAC_OSX_TK)) /* X11 */
  443. void (*tkCreateXEventSource) (void); /* 0 */
  444. void (*reserved1)(void);
  445. void (*tkGenerateActivateEvents) (TkWindow *winPtr, int active); /* 2 */
  446. int (*tkpCmapStressed) (Tk_Window tkwin, Colormap colormap); /* 3 */
  447. void (*tkpSync) (Display *display); /* 4 */
  448. Window (*tkUnixContainerId) (TkWindow *winPtr); /* 5 */
  449. int (*tkUnixDoOneXEvent) (Tcl_Time *timePtr); /* 6 */
  450. void (*tkUnixSetMenubar) (Tk_Window tkwin, Tk_Window menubar); /* 7 */
  451. int (*tkpScanWindowId) (Tcl_Interp *interp, const char *string, Window *idPtr); /* 8 */
  452. void (*tkWmCleanup) (TkDisplay *dispPtr); /* 9 */
  453. void (*tkSendCleanup) (TkDisplay *dispPtr); /* 10 */
  454. void (*reserved11)(void);
  455. int (*tkpWmSetState) (TkWindow *winPtr, int state); /* 12 */
  456. int (*tkpTestsendCmd) (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 13 */
  457. void (*reserved14)(void);
  458. void (*reserved15)(void);
  459. void (*reserved16)(void);
  460. void (*reserved17)(void);
  461. void (*reserved18)(void);
  462. void (*reserved19)(void);
  463. void (*reserved20)(void);
  464. void (*reserved21)(void);
  465. void (*reserved22)(void);
  466. void (*reserved23)(void);
  467. void (*reserved24)(void);
  468. void (*reserved25)(void);
  469. void (*reserved26)(void);
  470. void (*reserved27)(void);
  471. void (*reserved28)(void);
  472. void (*reserved29)(void);
  473. void (*reserved30)(void);
  474. void (*reserved31)(void);
  475. void (*reserved32)(void);
  476. void (*reserved33)(void);
  477. void (*reserved34)(void);
  478. void (*reserved35)(void);
  479. void (*reserved36)(void);
  480. void (*reserved37)(void);
  481. int (*tkpCmapStressed_) (Tk_Window tkwin, Colormap colormap); /* 38 */
  482. void (*tkpSync_) (Display *display); /* 39 */
  483. Window (*tkUnixContainerId_) (TkWindow *winPtr); /* 40 */
  484. int (*tkUnixDoOneXEvent_) (Tcl_Time *timePtr); /* 41 */
  485. void (*tkUnixSetMenubar_) (Tk_Window tkwin, Tk_Window menubar); /* 42 */
  486. void (*tkWmCleanup_) (TkDisplay *dispPtr); /* 43 */
  487. void (*tkSendCleanup_) (TkDisplay *dispPtr); /* 44 */
  488. int (*tkpTestsendCmd_) (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]); /* 45 */
  489. #endif /* X11 */
  490. } TkIntPlatStubs;
  491. extern const TkIntPlatStubs *tkIntPlatStubsPtr;
  492. #ifdef __cplusplus
  493. }
  494. #endif
  495. #if defined(USE_TK_STUBS)
  496. /*
  497. * Inline function declarations:
  498. */
  499. #if defined(_WIN32) || defined(__CYGWIN__) /* WIN */
  500. #define TkAlignImageData \
  501. (tkIntPlatStubsPtr->tkAlignImageData) /* 0 */
  502. /* Slot 1 is reserved */
  503. #define TkGenerateActivateEvents \
  504. (tkIntPlatStubsPtr->tkGenerateActivateEvents) /* 2 */
  505. #define TkpGetMS \
  506. (tkIntPlatStubsPtr->tkpGetMS) /* 3 */
  507. #define TkPointerDeadWindow \
  508. (tkIntPlatStubsPtr->tkPointerDeadWindow) /* 4 */
  509. #define TkpPrintWindowId \
  510. (tkIntPlatStubsPtr->tkpPrintWindowId) /* 5 */
  511. #define TkpScanWindowId \
  512. (tkIntPlatStubsPtr->tkpScanWindowId) /* 6 */
  513. #define TkpSetCapture \
  514. (tkIntPlatStubsPtr->tkpSetCapture) /* 7 */
  515. #define TkpSetCursor \
  516. (tkIntPlatStubsPtr->tkpSetCursor) /* 8 */
  517. #define TkpWmSetState \
  518. (tkIntPlatStubsPtr->tkpWmSetState) /* 9 */
  519. #define TkSetPixmapColormap \
  520. (tkIntPlatStubsPtr->tkSetPixmapColormap) /* 10 */
  521. #define TkWinCancelMouseTimer \
  522. (tkIntPlatStubsPtr->tkWinCancelMouseTimer) /* 11 */
  523. #define TkWinClipboardRender \
  524. (tkIntPlatStubsPtr->tkWinClipboardRender) /* 12 */
  525. #define TkWinEmbeddedEventProc \
  526. (tkIntPlatStubsPtr->tkWinEmbeddedEventProc) /* 13 */
  527. #define TkWinFillRect \
  528. (tkIntPlatStubsPtr->tkWinFillRect) /* 14 */
  529. #define TkWinGetBorderPixels \
  530. (tkIntPlatStubsPtr->tkWinGetBorderPixels) /* 15 */
  531. #define TkWinGetDrawableDC \
  532. (tkIntPlatStubsPtr->tkWinGetDrawableDC) /* 16 */
  533. #define TkWinGetModifierState \
  534. (tkIntPlatStubsPtr->tkWinGetModifierState) /* 17 */
  535. #define TkWinGetSystemPalette \
  536. (tkIntPlatStubsPtr->tkWinGetSystemPalette) /* 18 */
  537. #define TkWinGetWrapperWindow \
  538. (tkIntPlatStubsPtr->tkWinGetWrapperWindow) /* 19 */
  539. #define TkWinHandleMenuEvent \
  540. (tkIntPlatStubsPtr->tkWinHandleMenuEvent) /* 20 */
  541. #define TkWinIndexOfColor \
  542. (tkIntPlatStubsPtr->tkWinIndexOfColor) /* 21 */
  543. #define TkWinReleaseDrawableDC \
  544. (tkIntPlatStubsPtr->tkWinReleaseDrawableDC) /* 22 */
  545. #define TkWinResendEvent \
  546. (tkIntPlatStubsPtr->tkWinResendEvent) /* 23 */
  547. #define TkWinSelectPalette \
  548. (tkIntPlatStubsPtr->tkWinSelectPalette) /* 24 */
  549. #define TkWinSetMenu \
  550. (tkIntPlatStubsPtr->tkWinSetMenu) /* 25 */
  551. #define TkWinSetWindowPos \
  552. (tkIntPlatStubsPtr->tkWinSetWindowPos) /* 26 */
  553. #define TkWinWmCleanup \
  554. (tkIntPlatStubsPtr->tkWinWmCleanup) /* 27 */
  555. #define TkWinXCleanup \
  556. (tkIntPlatStubsPtr->tkWinXCleanup) /* 28 */
  557. #define TkWinXInit \
  558. (tkIntPlatStubsPtr->tkWinXInit) /* 29 */
  559. #define TkWinSetForegroundWindow \
  560. (tkIntPlatStubsPtr->tkWinSetForegroundWindow) /* 30 */
  561. #define TkWinDialogDebug \
  562. (tkIntPlatStubsPtr->tkWinDialogDebug) /* 31 */
  563. #define TkWinGetMenuSystemDefault \
  564. (tkIntPlatStubsPtr->tkWinGetMenuSystemDefault) /* 32 */
  565. #define TkWinGetPlatformId \
  566. (tkIntPlatStubsPtr->tkWinGetPlatformId) /* 33 */
  567. #define TkWinSetHINSTANCE \
  568. (tkIntPlatStubsPtr->tkWinSetHINSTANCE) /* 34 */
  569. #define TkWinGetPlatformTheme \
  570. (tkIntPlatStubsPtr->tkWinGetPlatformTheme) /* 35 */
  571. #define TkWinChildProc \
  572. (tkIntPlatStubsPtr->tkWinChildProc) /* 36 */
  573. #define TkCreateXEventSource \
  574. (tkIntPlatStubsPtr->tkCreateXEventSource) /* 37 */
  575. #define TkpCmapStressed \
  576. (tkIntPlatStubsPtr->tkpCmapStressed) /* 38 */
  577. #define TkpSync \
  578. (tkIntPlatStubsPtr->tkpSync) /* 39 */
  579. #define TkUnixContainerId \
  580. (tkIntPlatStubsPtr->tkUnixContainerId) /* 40 */
  581. #define TkUnixDoOneXEvent \
  582. (tkIntPlatStubsPtr->tkUnixDoOneXEvent) /* 41 */
  583. #define TkUnixSetMenubar \
  584. (tkIntPlatStubsPtr->tkUnixSetMenubar) /* 42 */
  585. #define TkWmCleanup \
  586. (tkIntPlatStubsPtr->tkWmCleanup) /* 43 */
  587. #define TkSendCleanup \
  588. (tkIntPlatStubsPtr->tkSendCleanup) /* 44 */
  589. #define TkpTestsendCmd \
  590. (tkIntPlatStubsPtr->tkpTestsendCmd) /* 45 */
  591. /* Slot 46 is reserved */
  592. #define TkpGetCapture \
  593. (tkIntPlatStubsPtr->tkpGetCapture) /* 47 */
  594. #endif /* WIN */
  595. #ifdef MAC_OSX_TK /* AQUA */
  596. #define TkGenerateActivateEvents \
  597. (tkIntPlatStubsPtr->tkGenerateActivateEvents) /* 0 */
  598. /* Slot 1 is reserved */
  599. #define TkGenerateActivateEvents_ \
  600. (tkIntPlatStubsPtr->tkGenerateActivateEvents_) /* 2 */
  601. #define TkPointerDeadWindow \
  602. (tkIntPlatStubsPtr->tkPointerDeadWindow) /* 3 */
  603. #define TkpSetCapture \
  604. (tkIntPlatStubsPtr->tkpSetCapture) /* 4 */
  605. #define TkpSetCursor \
  606. (tkIntPlatStubsPtr->tkpSetCursor) /* 5 */
  607. #define TkpWmSetState \
  608. (tkIntPlatStubsPtr->tkpWmSetState) /* 6 */
  609. #define TkAboutDlg \
  610. (tkIntPlatStubsPtr->tkAboutDlg) /* 7 */
  611. #define TkMacOSXButtonKeyState \
  612. (tkIntPlatStubsPtr->tkMacOSXButtonKeyState) /* 8 */
  613. #define TkMacOSXClearMenubarActive \
  614. (tkIntPlatStubsPtr->tkMacOSXClearMenubarActive) /* 9 */
  615. #define TkMacOSXDispatchMenuEvent \
  616. (tkIntPlatStubsPtr->tkMacOSXDispatchMenuEvent) /* 10 */
  617. #define TkMacOSXInstallCursor \
  618. (tkIntPlatStubsPtr->tkMacOSXInstallCursor) /* 11 */
  619. #define TkMacOSXHandleTearoffMenu \
  620. (tkIntPlatStubsPtr->tkMacOSXHandleTearoffMenu) /* 12 */
  621. /* Slot 13 is reserved */
  622. #define TkMacOSXDoHLEvent \
  623. (tkIntPlatStubsPtr->tkMacOSXDoHLEvent) /* 14 */
  624. /* Slot 15 is reserved */
  625. #define TkMacOSXGetXWindow \
  626. (tkIntPlatStubsPtr->tkMacOSXGetXWindow) /* 16 */
  627. #define TkMacOSXGrowToplevel \
  628. (tkIntPlatStubsPtr->tkMacOSXGrowToplevel) /* 17 */
  629. #define TkMacOSXHandleMenuSelect \
  630. (tkIntPlatStubsPtr->tkMacOSXHandleMenuSelect) /* 18 */
  631. /* Slot 19 is reserved */
  632. /* Slot 20 is reserved */
  633. #define TkMacOSXInvalidateWindow \
  634. (tkIntPlatStubsPtr->tkMacOSXInvalidateWindow) /* 21 */
  635. #define TkMacOSXIsCharacterMissing \
  636. (tkIntPlatStubsPtr->tkMacOSXIsCharacterMissing) /* 22 */
  637. #define TkMacOSXMakeRealWindowExist \
  638. (tkIntPlatStubsPtr->tkMacOSXMakeRealWindowExist) /* 23 */
  639. #define TkMacOSXMakeStippleMap \
  640. (tkIntPlatStubsPtr->tkMacOSXMakeStippleMap) /* 24 */
  641. #define TkMacOSXMenuClick \
  642. (tkIntPlatStubsPtr->tkMacOSXMenuClick) /* 25 */
  643. /* Slot 26 is reserved */
  644. #define TkMacOSXResizable \
  645. (tkIntPlatStubsPtr->tkMacOSXResizable) /* 27 */
  646. #define TkMacOSXSetHelpMenuItemCount \
  647. (tkIntPlatStubsPtr->tkMacOSXSetHelpMenuItemCount) /* 28 */
  648. #define TkMacOSXSetScrollbarGrow \
  649. (tkIntPlatStubsPtr->tkMacOSXSetScrollbarGrow) /* 29 */
  650. #define TkMacOSXSetUpClippingRgn \
  651. (tkIntPlatStubsPtr->tkMacOSXSetUpClippingRgn) /* 30 */
  652. #define TkMacOSXSetUpGraphicsPort \
  653. (tkIntPlatStubsPtr->tkMacOSXSetUpGraphicsPort) /* 31 */
  654. #define TkMacOSXUpdateClipRgn \
  655. (tkIntPlatStubsPtr->tkMacOSXUpdateClipRgn) /* 32 */
  656. /* Slot 33 is reserved */
  657. #define TkMacOSXUseMenuID \
  658. (tkIntPlatStubsPtr->tkMacOSXUseMenuID) /* 34 */
  659. #define TkMacOSXVisableClipRgn \
  660. (tkIntPlatStubsPtr->tkMacOSXVisableClipRgn) /* 35 */
  661. #define TkMacOSXWinBounds \
  662. (tkIntPlatStubsPtr->tkMacOSXWinBounds) /* 36 */
  663. #define TkMacOSXWindowOffset \
  664. (tkIntPlatStubsPtr->tkMacOSXWindowOffset) /* 37 */
  665. #define TkSetMacColor \
  666. (tkIntPlatStubsPtr->tkSetMacColor) /* 38 */
  667. #define TkSetWMName \
  668. (tkIntPlatStubsPtr->tkSetWMName) /* 39 */
  669. /* Slot 40 is reserved */
  670. #define TkMacOSXZoomToplevel \
  671. (tkIntPlatStubsPtr->tkMacOSXZoomToplevel) /* 41 */
  672. #define Tk_TopCoordsToWindow \
  673. (tkIntPlatStubsPtr->tk_TopCoordsToWindow) /* 42 */
  674. #define TkMacOSXContainerId \
  675. (tkIntPlatStubsPtr->tkMacOSXContainerId) /* 43 */
  676. #define TkMacOSXGetHostToplevel \
  677. (tkIntPlatStubsPtr->tkMacOSXGetHostToplevel) /* 44 */
  678. #define TkMacOSXPreprocessMenu \
  679. (tkIntPlatStubsPtr->tkMacOSXPreprocessMenu) /* 45 */
  680. #define TkpIsWindowFloating \
  681. (tkIntPlatStubsPtr->tkpIsWindowFloating) /* 46 */
  682. #define TkMacOSXGetCapture \
  683. (tkIntPlatStubsPtr->tkMacOSXGetCapture) /* 47 */
  684. /* Slot 48 is reserved */
  685. #define TkGetTransientMaster \
  686. (tkIntPlatStubsPtr->tkGetTransientMaster) /* 49 */
  687. #define TkGenerateButtonEvent \
  688. (tkIntPlatStubsPtr->tkGenerateButtonEvent) /* 50 */
  689. #define TkGenWMDestroyEvent \
  690. (tkIntPlatStubsPtr->tkGenWMDestroyEvent) /* 51 */
  691. #define TkMacOSXSetDrawingEnabled \
  692. (tkIntPlatStubsPtr->tkMacOSXSetDrawingEnabled) /* 52 */
  693. #define TkpGetMS \
  694. (tkIntPlatStubsPtr->tkpGetMS) /* 53 */
  695. #define TkMacOSXDrawable \
  696. (tkIntPlatStubsPtr->tkMacOSXDrawable) /* 54 */
  697. #define TkpScanWindowId \
  698. (tkIntPlatStubsPtr->tkpScanWindowId) /* 55 */
  699. #endif /* AQUA */
  700. #if !(defined(_WIN32) || defined(__CYGWIN__) || defined(MAC_OSX_TK)) /* X11 */
  701. #define TkCreateXEventSource \
  702. (tkIntPlatStubsPtr->tkCreateXEventSource) /* 0 */
  703. /* Slot 1 is reserved */
  704. #define TkGenerateActivateEvents \
  705. (tkIntPlatStubsPtr->tkGenerateActivateEvents) /* 2 */
  706. #define TkpCmapStressed \
  707. (tkIntPlatStubsPtr->tkpCmapStressed) /* 3 */
  708. #define TkpSync \
  709. (tkIntPlatStubsPtr->tkpSync) /* 4 */
  710. #define TkUnixContainerId \
  711. (tkIntPlatStubsPtr->tkUnixContainerId) /* 5 */
  712. #define TkUnixDoOneXEvent \
  713. (tkIntPlatStubsPtr->tkUnixDoOneXEvent) /* 6 */
  714. #define TkUnixSetMenubar \
  715. (tkIntPlatStubsPtr->tkUnixSetMenubar) /* 7 */
  716. #define TkpScanWindowId \
  717. (tkIntPlatStubsPtr->tkpScanWindowId) /* 8 */
  718. #define TkWmCleanup \
  719. (tkIntPlatStubsPtr->tkWmCleanup) /* 9 */
  720. #define TkSendCleanup \
  721. (tkIntPlatStubsPtr->tkSendCleanup) /* 10 */
  722. /* Slot 11 is reserved */
  723. #define TkpWmSetState \
  724. (tkIntPlatStubsPtr->tkpWmSetState) /* 12 */
  725. #define TkpTestsendCmd \
  726. (tkIntPlatStubsPtr->tkpTestsendCmd) /* 13 */
  727. /* Slot 14 is reserved */
  728. /* Slot 15 is reserved */
  729. /* Slot 16 is reserved */
  730. /* Slot 17 is reserved */
  731. /* Slot 18 is reserved */
  732. /* Slot 19 is reserved */
  733. /* Slot 20 is reserved */
  734. /* Slot 21 is reserved */
  735. /* Slot 22 is reserved */
  736. /* Slot 23 is reserved */
  737. /* Slot 24 is reserved */
  738. /* Slot 25 is reserved */
  739. /* Slot 26 is reserved */
  740. /* Slot 27 is reserved */
  741. /* Slot 28 is reserved */
  742. /* Slot 29 is reserved */
  743. /* Slot 30 is reserved */
  744. /* Slot 31 is reserved */
  745. /* Slot 32 is reserved */
  746. /* Slot 33 is reserved */
  747. /* Slot 34 is reserved */
  748. /* Slot 35 is reserved */
  749. /* Slot 36 is reserved */
  750. /* Slot 37 is reserved */
  751. #define TkpCmapStressed_ \
  752. (tkIntPlatStubsPtr->tkpCmapStressed_) /* 38 */
  753. #define TkpSync_ \
  754. (tkIntPlatStubsPtr->tkpSync_) /* 39 */
  755. #define TkUnixContainerId_ \
  756. (tkIntPlatStubsPtr->tkUnixContainerId_) /* 40 */
  757. #define TkUnixDoOneXEvent_ \
  758. (tkIntPlatStubsPtr->tkUnixDoOneXEvent_) /* 41 */
  759. #define TkUnixSetMenubar_ \
  760. (tkIntPlatStubsPtr->tkUnixSetMenubar_) /* 42 */
  761. #define TkWmCleanup_ \
  762. (tkIntPlatStubsPtr->tkWmCleanup_) /* 43 */
  763. #define TkSendCleanup_ \
  764. (tkIntPlatStubsPtr->tkSendCleanup_) /* 44 */
  765. #define TkpTestsendCmd_ \
  766. (tkIntPlatStubsPtr->tkpTestsendCmd_) /* 45 */
  767. #endif /* X11 */
  768. #endif /* defined(USE_TK_STUBS) */
  769. /* !END!: Do not edit above this line. */
  770. #undef TkpCmapStressed_
  771. #undef TkpSync_
  772. #undef TkUnixContainerId_
  773. #undef TkUnixDoOneXEvent_
  774. #undef TkUnixSetMenubar_
  775. #undef TkWmCleanup_
  776. #undef TkSendCleanup_
  777. #undef TkpTestsendCmd_
  778. #undef TkGenerateActivateEvents_
  779. #define TkMacOSXGetContainer TkGetTransientMaster
  780. #undef TCL_STORAGE_CLASS
  781. #define TCL_STORAGE_CLASS DLLIMPORT
  782. #endif /* _TKINTPLATDECLS */