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.
9 * Copyright (c) 1998-1999 by Scriptics Corporation.
10 * All rights reserved.
15 #ifndef _TKINTPLATDECLS
16 #define _TKINTPLATDECLS
19 #undef TCL_STORAGE_CLASS
20 #define TCL_STORAGE_CLASS DLLEXPORT
24 * WARNING: This file is automatically generated by the tools/genStubs.tcl
25 * script. Any modifications to the function declarations below should be made
26 * in the generic/tkInt.decls script.
29 /* !BEGIN!: Do not edit below this line. */
32 * Exported function declarations:
37 EXTERN char * TkAlignImageData _ANSI_ARGS_((XImage * image,
38 int alignment, int bitOrder));
39 /* Slot 1 is reserved */
41 EXTERN void TkGenerateActivateEvents _ANSI_ARGS_((
42 TkWindow * winPtr, int active));
44 EXTERN unsigned long TkpGetMS _ANSI_ARGS_((void));
46 EXTERN void TkPointerDeadWindow _ANSI_ARGS_((TkWindow * winPtr));
48 EXTERN void TkpPrintWindowId _ANSI_ARGS_((char * buf,
51 EXTERN int TkpScanWindowId _ANSI_ARGS_((Tcl_Interp * interp,
52 CONST char * string, Window * idPtr));
54 EXTERN void TkpSetCapture _ANSI_ARGS_((TkWindow * winPtr));
56 EXTERN void TkpSetCursor _ANSI_ARGS_((TkpCursor cursor));
58 EXTERN void TkpWmSetState _ANSI_ARGS_((TkWindow * winPtr,
61 EXTERN void TkSetPixmapColormap _ANSI_ARGS_((Pixmap pixmap,
64 EXTERN void TkWinCancelMouseTimer _ANSI_ARGS_((void));
66 EXTERN void TkWinClipboardRender _ANSI_ARGS_((
67 TkDisplay * dispPtr, UINT format));
69 EXTERN LRESULT TkWinEmbeddedEventProc _ANSI_ARGS_((HWND hwnd,
70 UINT message, WPARAM wParam, LPARAM lParam));
72 EXTERN void TkWinFillRect _ANSI_ARGS_((HDC dc, int x, int y,
73 int width, int height, int pixel));
75 EXTERN COLORREF TkWinGetBorderPixels _ANSI_ARGS_((Tk_Window tkwin,
76 Tk_3DBorder border, int which));
78 EXTERN HDC TkWinGetDrawableDC _ANSI_ARGS_((Display * display,
79 Drawable d, TkWinDCState* state));
81 EXTERN int TkWinGetModifierState _ANSI_ARGS_((void));
83 EXTERN HPALETTE TkWinGetSystemPalette _ANSI_ARGS_((void));
85 EXTERN HWND TkWinGetWrapperWindow _ANSI_ARGS_((Tk_Window tkwin));
87 EXTERN int TkWinHandleMenuEvent _ANSI_ARGS_((HWND * phwnd,
88 UINT * pMessage, WPARAM * pwParam,
89 LPARAM * plParam, LRESULT * plResult));
91 EXTERN int TkWinIndexOfColor _ANSI_ARGS_((XColor * colorPtr));
93 EXTERN void TkWinReleaseDrawableDC _ANSI_ARGS_((Drawable d,
94 HDC hdc, TkWinDCState* state));
96 EXTERN LRESULT TkWinResendEvent _ANSI_ARGS_((WNDPROC wndproc,
97 HWND hwnd, XEvent * eventPtr));
99 EXTERN HPALETTE TkWinSelectPalette _ANSI_ARGS_((HDC dc,
102 EXTERN void TkWinSetMenu _ANSI_ARGS_((Tk_Window tkwin,
105 EXTERN void TkWinSetWindowPos _ANSI_ARGS_((HWND hwnd,
106 HWND siblingHwnd, int pos));
108 EXTERN void TkWinWmCleanup _ANSI_ARGS_((HINSTANCE hInstance));
110 EXTERN void TkWinXCleanup _ANSI_ARGS_((HINSTANCE hInstance));
112 EXTERN void TkWinXInit _ANSI_ARGS_((HINSTANCE hInstance));
114 EXTERN void TkWinSetForegroundWindow _ANSI_ARGS_((
117 EXTERN void TkWinDialogDebug _ANSI_ARGS_((int debug));
119 EXTERN Tcl_Obj * TkWinGetMenuSystemDefault _ANSI_ARGS_((
120 Tk_Window tkwin, CONST char * dbName,
121 CONST char * className));
123 EXTERN int TkWinGetPlatformId _ANSI_ARGS_((void));
124 #endif /* __WIN32__ */
127 EXTERN void TkGenerateActivateEvents _ANSI_ARGS_((
128 TkWindow * winPtr, int active));
129 /* Slot 1 is reserved */
130 /* Slot 2 is reserved */
132 EXTERN unsigned long TkpGetMS _ANSI_ARGS_((void));
133 /* Slot 4 is reserved */
135 EXTERN void TkPointerDeadWindow _ANSI_ARGS_((TkWindow * winPtr));
137 EXTERN void TkpSetCapture _ANSI_ARGS_((TkWindow * winPtr));
139 EXTERN void TkpSetCursor _ANSI_ARGS_((TkpCursor cursor));
141 EXTERN void TkpWmSetState _ANSI_ARGS_((TkWindow * winPtr,
143 /* Slot 9 is reserved */
145 EXTERN void TkAboutDlg _ANSI_ARGS_((void));
146 /* Slot 11 is reserved */
147 /* Slot 12 is reserved */
149 EXTERN Window TkGetTransientMaster _ANSI_ARGS_((TkWindow * winPtr));
151 EXTERN int TkGenerateButtonEvent _ANSI_ARGS_((int x, int y,
152 Window window, unsigned int state));
153 /* Slot 15 is reserved */
155 EXTERN void TkGenWMDestroyEvent _ANSI_ARGS_((Tk_Window tkwin));
156 /* Slot 17 is reserved */
158 EXTERN unsigned int TkMacButtonKeyState _ANSI_ARGS_((void));
160 EXTERN void TkMacClearMenubarActive _ANSI_ARGS_((void));
161 /* Slot 20 is reserved */
163 EXTERN int TkMacDispatchMenuEvent _ANSI_ARGS_((int menuID,
166 EXTERN void TkMacInstallCursor _ANSI_ARGS_((int resizeOverride));
167 /* Slot 23 is reserved */
169 EXTERN void TkMacHandleTearoffMenu _ANSI_ARGS_((void));
170 /* Slot 25 is reserved */
171 /* Slot 26 is reserved */
173 EXTERN void TkMacDoHLEvent _ANSI_ARGS_((EventRecord * theEvent));
174 /* Slot 28 is reserved */
176 EXTERN Time TkMacGenerateTime _ANSI_ARGS_((void));
177 /* Slot 30 is reserved */
179 EXTERN TkWindow * TkMacGetScrollbarGrowWindow _ANSI_ARGS_((
182 EXTERN Window TkMacGetXWindow _ANSI_ARGS_((WindowRef macWinPtr));
184 EXTERN int TkMacGrowToplevel _ANSI_ARGS_((WindowRef whichWindow,
187 EXTERN void TkMacHandleMenuSelect _ANSI_ARGS_((long mResult,
188 int optionKeyPressed));
189 /* Slot 35 is reserved */
190 /* Slot 36 is reserved */
191 /* Slot 37 is reserved */
193 EXTERN void TkMacInvalidateWindow _ANSI_ARGS_((
194 MacDrawable * macWin, int flag));
196 EXTERN int TkMacIsCharacterMissing _ANSI_ARGS_((Tk_Font tkfont,
197 unsigned int searchChar));
199 EXTERN void TkMacMakeRealWindowExist _ANSI_ARGS_((
202 EXTERN BitMapPtr TkMacMakeStippleMap _ANSI_ARGS_((Drawable d1,
205 EXTERN void TkMacMenuClick _ANSI_ARGS_((void));
207 EXTERN void TkMacRegisterOffScreenWindow _ANSI_ARGS_((
208 Window window, GWorldPtr portPtr));
210 EXTERN int TkMacResizable _ANSI_ARGS_((TkWindow * winPtr));
211 /* Slot 45 is reserved */
213 EXTERN void TkMacSetHelpMenuItemCount _ANSI_ARGS_((void));
215 EXTERN void TkMacSetScrollbarGrow _ANSI_ARGS_((TkWindow * winPtr,
218 EXTERN void TkMacSetUpClippingRgn _ANSI_ARGS_((Drawable drawable));
220 EXTERN void TkMacSetUpGraphicsPort _ANSI_ARGS_((GC gc));
222 EXTERN void TkMacUpdateClipRgn _ANSI_ARGS_((TkWindow * winPtr));
224 EXTERN void TkMacUnregisterMacWindow _ANSI_ARGS_((
227 EXTERN int TkMacUseMenuID _ANSI_ARGS_((short macID));
229 EXTERN RgnHandle TkMacVisableClipRgn _ANSI_ARGS_((TkWindow * winPtr));
231 EXTERN void TkMacWinBounds _ANSI_ARGS_((TkWindow * winPtr,
234 EXTERN void TkMacWindowOffset _ANSI_ARGS_((WindowRef wRef,
235 int * xOffset, int * yOffset));
236 /* Slot 56 is reserved */
238 EXTERN int TkSetMacColor _ANSI_ARGS_((unsigned long pixel,
239 RGBColor * macColor));
241 EXTERN void TkSetWMName _ANSI_ARGS_((TkWindow * winPtr,
244 EXTERN void TkSuspendClipboard _ANSI_ARGS_((void));
245 /* Slot 60 is reserved */
247 EXTERN int TkMacZoomToplevel _ANSI_ARGS_((WindowPtr whichWindow,
248 Point where, short zoomPart));
250 EXTERN Tk_Window Tk_TopCoordsToWindow _ANSI_ARGS_((Tk_Window tkwin,
251 int rootX, int rootY, int * newX, int * newY));
253 EXTERN MacDrawable * TkMacContainerId _ANSI_ARGS_((TkWindow * winPtr));
255 EXTERN MacDrawable * TkMacGetHostToplevel _ANSI_ARGS_((TkWindow * winPtr));
257 EXTERN void TkMacPreprocessMenu _ANSI_ARGS_((void));
259 EXTERN int TkpIsWindowFloating _ANSI_ARGS_((WindowRef window));
263 EXTERN void TkGenerateActivateEvents _ANSI_ARGS_((
264 TkWindow * winPtr, int active));
265 /* Slot 1 is reserved */
266 /* Slot 2 is reserved */
268 EXTERN void TkPointerDeadWindow _ANSI_ARGS_((TkWindow * winPtr));
270 EXTERN void TkpSetCapture _ANSI_ARGS_((TkWindow * winPtr));
272 EXTERN void TkpSetCursor _ANSI_ARGS_((TkpCursor cursor));
274 EXTERN void TkpWmSetState _ANSI_ARGS_((TkWindow * winPtr,
277 EXTERN void TkAboutDlg _ANSI_ARGS_((void));
279 EXTERN unsigned int TkMacOSXButtonKeyState _ANSI_ARGS_((void));
281 EXTERN void TkMacOSXClearMenubarActive _ANSI_ARGS_((void));
283 EXTERN int TkMacOSXDispatchMenuEvent _ANSI_ARGS_((int menuID,
286 EXTERN void TkMacOSXInstallCursor _ANSI_ARGS_((
287 int resizeOverride));
289 EXTERN void TkMacOSXHandleTearoffMenu _ANSI_ARGS_((void));
290 /* Slot 13 is reserved */
292 EXTERN int TkMacOSXDoHLEvent _ANSI_ARGS_((
293 EventRecord * theEvent));
294 /* Slot 15 is reserved */
296 EXTERN Window TkMacOSXGetXWindow _ANSI_ARGS_((WindowRef macWinPtr));
298 EXTERN int TkMacOSXGrowToplevel _ANSI_ARGS_((
299 WindowRef whichWindow, Point start));
301 EXTERN void TkMacOSXHandleMenuSelect _ANSI_ARGS_((long mResult,
302 int optionKeyPressed));
303 /* Slot 19 is reserved */
304 /* Slot 20 is reserved */
306 EXTERN void TkMacOSXInvalidateWindow _ANSI_ARGS_((
307 MacDrawable * macWin, int flag));
309 EXTERN int TkMacOSXIsCharacterMissing _ANSI_ARGS_((
310 Tk_Font tkfont, unsigned int searchChar));
312 EXTERN void TkMacOSXMakeRealWindowExist _ANSI_ARGS_((
315 EXTERN BitMapPtr TkMacOSXMakeStippleMap _ANSI_ARGS_((Drawable d1,
318 EXTERN void TkMacOSXMenuClick _ANSI_ARGS_((void));
320 EXTERN void TkMacOSXRegisterOffScreenWindow _ANSI_ARGS_((
321 Window window, GWorldPtr portPtr));
323 EXTERN int TkMacOSXResizable _ANSI_ARGS_((TkWindow * winPtr));
325 EXTERN void TkMacOSXSetHelpMenuItemCount _ANSI_ARGS_((void));
327 EXTERN void TkMacOSXSetScrollbarGrow _ANSI_ARGS_((
328 TkWindow * winPtr, int flag));
330 EXTERN void TkMacOSXSetUpClippingRgn _ANSI_ARGS_((
333 EXTERN void TkMacOSXSetUpGraphicsPort _ANSI_ARGS_((GC gc,
334 GWorldPtr destPort));
336 EXTERN void TkMacOSXUpdateClipRgn _ANSI_ARGS_((TkWindow * winPtr));
338 EXTERN void TkMacOSXUnregisterMacWindow _ANSI_ARGS_((
341 EXTERN int TkMacOSXUseMenuID _ANSI_ARGS_((short macID));
343 EXTERN RgnHandle TkMacOSXVisableClipRgn _ANSI_ARGS_((
346 EXTERN void TkMacOSXWinBounds _ANSI_ARGS_((TkWindow * winPtr,
349 EXTERN void TkMacOSXWindowOffset _ANSI_ARGS_((WindowRef wRef,
350 int * xOffset, int * yOffset));
352 EXTERN int TkSetMacColor _ANSI_ARGS_((unsigned long pixel,
353 RGBColor * macColor));
355 EXTERN void TkSetWMName _ANSI_ARGS_((TkWindow * winPtr,
358 EXTERN void TkSuspendClipboard _ANSI_ARGS_((void));
360 EXTERN int TkMacOSXZoomToplevel _ANSI_ARGS_((
361 WindowPtr whichWindow, Point where,
364 EXTERN Tk_Window Tk_TopCoordsToWindow _ANSI_ARGS_((Tk_Window tkwin,
365 int rootX, int rootY, int * newX, int * newY));
367 EXTERN MacDrawable * TkMacOSXContainerId _ANSI_ARGS_((TkWindow * winPtr));
369 EXTERN MacDrawable * TkMacOSXGetHostToplevel _ANSI_ARGS_((
372 EXTERN void TkMacOSXPreprocessMenu _ANSI_ARGS_((void));
374 EXTERN int TkpIsWindowFloating _ANSI_ARGS_((WindowRef window));
376 EXTERN Tk_Window TkMacOSXGetCapture _ANSI_ARGS_((void));
377 /* Slot 48 is reserved */
379 EXTERN Window TkGetTransientMaster _ANSI_ARGS_((TkWindow * winPtr));
381 EXTERN int TkGenerateButtonEvent _ANSI_ARGS_((int x, int y,
382 Window window, unsigned int state));
384 EXTERN void TkGenWMDestroyEvent _ANSI_ARGS_((Tk_Window tkwin));
385 /* Slot 52 is reserved */
387 EXTERN unsigned long TkpGetMS _ANSI_ARGS_((void));
388 #endif /* MAC_OSX_TK */
389 #if !(defined(__WIN32__) || defined(MAC_TCL) || defined(MAC_OSX_TK)) /* X11 */
391 EXTERN void TkCreateXEventSource _ANSI_ARGS_((void));
393 EXTERN void TkFreeWindowId _ANSI_ARGS_((TkDisplay * dispPtr,
396 EXTERN void TkInitXId _ANSI_ARGS_((TkDisplay * dispPtr));
398 EXTERN int TkpCmapStressed _ANSI_ARGS_((Tk_Window tkwin,
401 EXTERN void TkpSync _ANSI_ARGS_((Display * display));
403 EXTERN Window TkUnixContainerId _ANSI_ARGS_((TkWindow * winPtr));
405 EXTERN int TkUnixDoOneXEvent _ANSI_ARGS_((Tcl_Time * timePtr));
407 EXTERN void TkUnixSetMenubar _ANSI_ARGS_((Tk_Window tkwin,
410 EXTERN int TkpScanWindowId _ANSI_ARGS_((Tcl_Interp * interp,
411 CONST char * string, Window * idPtr));
413 EXTERN void TkWmCleanup _ANSI_ARGS_((TkDisplay * dispPtr));
415 EXTERN void TkSendCleanup _ANSI_ARGS_((TkDisplay * dispPtr));
417 EXTERN void TkFreeXId _ANSI_ARGS_((TkDisplay * dispPtr));
419 EXTERN int TkpWmSetState _ANSI_ARGS_((TkWindow * winPtr,
423 typedef struct TkIntPlatStubs {
425 struct TkIntPlatStubHooks *hooks;
428 char * (*tkAlignImageData) _ANSI_ARGS_((XImage * image, int alignment, int bitOrder)); /* 0 */
430 void (*tkGenerateActivateEvents) _ANSI_ARGS_((TkWindow * winPtr, int active)); /* 2 */
431 unsigned long (*tkpGetMS) _ANSI_ARGS_((void)); /* 3 */
432 void (*tkPointerDeadWindow) _ANSI_ARGS_((TkWindow * winPtr)); /* 4 */
433 void (*tkpPrintWindowId) _ANSI_ARGS_((char * buf, Window window)); /* 5 */
434 int (*tkpScanWindowId) _ANSI_ARGS_((Tcl_Interp * interp, CONST char * string, Window * idPtr)); /* 6 */
435 void (*tkpSetCapture) _ANSI_ARGS_((TkWindow * winPtr)); /* 7 */
436 void (*tkpSetCursor) _ANSI_ARGS_((TkpCursor cursor)); /* 8 */
437 void (*tkpWmSetState) _ANSI_ARGS_((TkWindow * winPtr, int state)); /* 9 */
438 void (*tkSetPixmapColormap) _ANSI_ARGS_((Pixmap pixmap, Colormap colormap)); /* 10 */
439 void (*tkWinCancelMouseTimer) _ANSI_ARGS_((void)); /* 11 */
440 void (*tkWinClipboardRender) _ANSI_ARGS_((TkDisplay * dispPtr, UINT format)); /* 12 */
441 LRESULT (*tkWinEmbeddedEventProc) _ANSI_ARGS_((HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)); /* 13 */
442 void (*tkWinFillRect) _ANSI_ARGS_((HDC dc, int x, int y, int width, int height, int pixel)); /* 14 */
443 COLORREF (*tkWinGetBorderPixels) _ANSI_ARGS_((Tk_Window tkwin, Tk_3DBorder border, int which)); /* 15 */
444 HDC (*tkWinGetDrawableDC) _ANSI_ARGS_((Display * display, Drawable d, TkWinDCState* state)); /* 16 */
445 int (*tkWinGetModifierState) _ANSI_ARGS_((void)); /* 17 */
446 HPALETTE (*tkWinGetSystemPalette) _ANSI_ARGS_((void)); /* 18 */
447 HWND (*tkWinGetWrapperWindow) _ANSI_ARGS_((Tk_Window tkwin)); /* 19 */
448 int (*tkWinHandleMenuEvent) _ANSI_ARGS_((HWND * phwnd, UINT * pMessage, WPARAM * pwParam, LPARAM * plParam, LRESULT * plResult)); /* 20 */
449 int (*tkWinIndexOfColor) _ANSI_ARGS_((XColor * colorPtr)); /* 21 */
450 void (*tkWinReleaseDrawableDC) _ANSI_ARGS_((Drawable d, HDC hdc, TkWinDCState* state)); /* 22 */
451 LRESULT (*tkWinResendEvent) _ANSI_ARGS_((WNDPROC wndproc, HWND hwnd, XEvent * eventPtr)); /* 23 */
452 HPALETTE (*tkWinSelectPalette) _ANSI_ARGS_((HDC dc, Colormap colormap)); /* 24 */
453 void (*tkWinSetMenu) _ANSI_ARGS_((Tk_Window tkwin, HMENU hMenu)); /* 25 */
454 void (*tkWinSetWindowPos) _ANSI_ARGS_((HWND hwnd, HWND siblingHwnd, int pos)); /* 26 */
455 void (*tkWinWmCleanup) _ANSI_ARGS_((HINSTANCE hInstance)); /* 27 */
456 void (*tkWinXCleanup) _ANSI_ARGS_((HINSTANCE hInstance)); /* 28 */
457 void (*tkWinXInit) _ANSI_ARGS_((HINSTANCE hInstance)); /* 29 */
458 void (*tkWinSetForegroundWindow) _ANSI_ARGS_((TkWindow * winPtr)); /* 30 */
459 void (*tkWinDialogDebug) _ANSI_ARGS_((int debug)); /* 31 */
460 Tcl_Obj * (*tkWinGetMenuSystemDefault) _ANSI_ARGS_((Tk_Window tkwin, CONST char * dbName, CONST char * className)); /* 32 */
461 int (*tkWinGetPlatformId) _ANSI_ARGS_((void)); /* 33 */
462 #endif /* __WIN32__ */
464 void (*tkGenerateActivateEvents) _ANSI_ARGS_((TkWindow * winPtr, int active)); /* 0 */
467 unsigned long (*tkpGetMS) _ANSI_ARGS_((void)); /* 3 */
469 void (*tkPointerDeadWindow) _ANSI_ARGS_((TkWindow * winPtr)); /* 5 */
470 void (*tkpSetCapture) _ANSI_ARGS_((TkWindow * winPtr)); /* 6 */
471 void (*tkpSetCursor) _ANSI_ARGS_((TkpCursor cursor)); /* 7 */
472 void (*tkpWmSetState) _ANSI_ARGS_((TkWindow * winPtr, int state)); /* 8 */
474 void (*tkAboutDlg) _ANSI_ARGS_((void)); /* 10 */
477 Window (*tkGetTransientMaster) _ANSI_ARGS_((TkWindow * winPtr)); /* 13 */
478 int (*tkGenerateButtonEvent) _ANSI_ARGS_((int x, int y, Window window, unsigned int state)); /* 14 */
480 void (*tkGenWMDestroyEvent) _ANSI_ARGS_((Tk_Window tkwin)); /* 16 */
482 unsigned int (*tkMacButtonKeyState) _ANSI_ARGS_((void)); /* 18 */
483 void (*tkMacClearMenubarActive) _ANSI_ARGS_((void)); /* 19 */
485 int (*tkMacDispatchMenuEvent) _ANSI_ARGS_((int menuID, int index)); /* 21 */
486 void (*tkMacInstallCursor) _ANSI_ARGS_((int resizeOverride)); /* 22 */
488 void (*tkMacHandleTearoffMenu) _ANSI_ARGS_((void)); /* 24 */
491 void (*tkMacDoHLEvent) _ANSI_ARGS_((EventRecord * theEvent)); /* 27 */
493 Time (*tkMacGenerateTime) _ANSI_ARGS_((void)); /* 29 */
495 TkWindow * (*tkMacGetScrollbarGrowWindow) _ANSI_ARGS_((TkWindow * winPtr)); /* 31 */
496 Window (*tkMacGetXWindow) _ANSI_ARGS_((WindowRef macWinPtr)); /* 32 */
497 int (*tkMacGrowToplevel) _ANSI_ARGS_((WindowRef whichWindow, Point start)); /* 33 */
498 void (*tkMacHandleMenuSelect) _ANSI_ARGS_((long mResult, int optionKeyPressed)); /* 34 */
502 void (*tkMacInvalidateWindow) _ANSI_ARGS_((MacDrawable * macWin, int flag)); /* 38 */
503 int (*tkMacIsCharacterMissing) _ANSI_ARGS_((Tk_Font tkfont, unsigned int searchChar)); /* 39 */
504 void (*tkMacMakeRealWindowExist) _ANSI_ARGS_((TkWindow * winPtr)); /* 40 */
505 BitMapPtr (*tkMacMakeStippleMap) _ANSI_ARGS_((Drawable d1, Drawable d2)); /* 41 */
506 void (*tkMacMenuClick) _ANSI_ARGS_((void)); /* 42 */
507 void (*tkMacRegisterOffScreenWindow) _ANSI_ARGS_((Window window, GWorldPtr portPtr)); /* 43 */
508 int (*tkMacResizable) _ANSI_ARGS_((TkWindow * winPtr)); /* 44 */
510 void (*tkMacSetHelpMenuItemCount) _ANSI_ARGS_((void)); /* 46 */
511 void (*tkMacSetScrollbarGrow) _ANSI_ARGS_((TkWindow * winPtr, int flag)); /* 47 */
512 void (*tkMacSetUpClippingRgn) _ANSI_ARGS_((Drawable drawable)); /* 48 */
513 void (*tkMacSetUpGraphicsPort) _ANSI_ARGS_((GC gc)); /* 49 */
514 void (*tkMacUpdateClipRgn) _ANSI_ARGS_((TkWindow * winPtr)); /* 50 */
515 void (*tkMacUnregisterMacWindow) _ANSI_ARGS_((GWorldPtr portPtr)); /* 51 */
516 int (*tkMacUseMenuID) _ANSI_ARGS_((short macID)); /* 52 */
517 RgnHandle (*tkMacVisableClipRgn) _ANSI_ARGS_((TkWindow * winPtr)); /* 53 */
518 void (*tkMacWinBounds) _ANSI_ARGS_((TkWindow * winPtr, Rect * geometry)); /* 54 */
519 void (*tkMacWindowOffset) _ANSI_ARGS_((WindowRef wRef, int * xOffset, int * yOffset)); /* 55 */
521 int (*tkSetMacColor) _ANSI_ARGS_((unsigned long pixel, RGBColor * macColor)); /* 57 */
522 void (*tkSetWMName) _ANSI_ARGS_((TkWindow * winPtr, Tk_Uid titleUid)); /* 58 */
523 void (*tkSuspendClipboard) _ANSI_ARGS_((void)); /* 59 */
525 int (*tkMacZoomToplevel) _ANSI_ARGS_((WindowPtr whichWindow, Point where, short zoomPart)); /* 61 */
526 Tk_Window (*tk_TopCoordsToWindow) _ANSI_ARGS_((Tk_Window tkwin, int rootX, int rootY, int * newX, int * newY)); /* 62 */
527 MacDrawable * (*tkMacContainerId) _ANSI_ARGS_((TkWindow * winPtr)); /* 63 */
528 MacDrawable * (*tkMacGetHostToplevel) _ANSI_ARGS_((TkWindow * winPtr)); /* 64 */
529 void (*tkMacPreprocessMenu) _ANSI_ARGS_((void)); /* 65 */
530 int (*tkpIsWindowFloating) _ANSI_ARGS_((WindowRef window)); /* 66 */
533 void (*tkGenerateActivateEvents) _ANSI_ARGS_((TkWindow * winPtr, int active)); /* 0 */
536 void (*tkPointerDeadWindow) _ANSI_ARGS_((TkWindow * winPtr)); /* 3 */
537 void (*tkpSetCapture) _ANSI_ARGS_((TkWindow * winPtr)); /* 4 */
538 void (*tkpSetCursor) _ANSI_ARGS_((TkpCursor cursor)); /* 5 */
539 void (*tkpWmSetState) _ANSI_ARGS_((TkWindow * winPtr, int state)); /* 6 */
540 void (*tkAboutDlg) _ANSI_ARGS_((void)); /* 7 */
541 unsigned int (*tkMacOSXButtonKeyState) _ANSI_ARGS_((void)); /* 8 */
542 void (*tkMacOSXClearMenubarActive) _ANSI_ARGS_((void)); /* 9 */
543 int (*tkMacOSXDispatchMenuEvent) _ANSI_ARGS_((int menuID, int index)); /* 10 */
544 void (*tkMacOSXInstallCursor) _ANSI_ARGS_((int resizeOverride)); /* 11 */
545 void (*tkMacOSXHandleTearoffMenu) _ANSI_ARGS_((void)); /* 12 */
547 int (*tkMacOSXDoHLEvent) _ANSI_ARGS_((EventRecord * theEvent)); /* 14 */
549 Window (*tkMacOSXGetXWindow) _ANSI_ARGS_((WindowRef macWinPtr)); /* 16 */
550 int (*tkMacOSXGrowToplevel) _ANSI_ARGS_((WindowRef whichWindow, Point start)); /* 17 */
551 void (*tkMacOSXHandleMenuSelect) _ANSI_ARGS_((long mResult, int optionKeyPressed)); /* 18 */
554 void (*tkMacOSXInvalidateWindow) _ANSI_ARGS_((MacDrawable * macWin, int flag)); /* 21 */
555 int (*tkMacOSXIsCharacterMissing) _ANSI_ARGS_((Tk_Font tkfont, unsigned int searchChar)); /* 22 */
556 void (*tkMacOSXMakeRealWindowExist) _ANSI_ARGS_((TkWindow * winPtr)); /* 23 */
557 BitMapPtr (*tkMacOSXMakeStippleMap) _ANSI_ARGS_((Drawable d1, Drawable d2)); /* 24 */
558 void (*tkMacOSXMenuClick) _ANSI_ARGS_((void)); /* 25 */
559 void (*tkMacOSXRegisterOffScreenWindow) _ANSI_ARGS_((Window window, GWorldPtr portPtr)); /* 26 */
560 int (*tkMacOSXResizable) _ANSI_ARGS_((TkWindow * winPtr)); /* 27 */
561 void (*tkMacOSXSetHelpMenuItemCount) _ANSI_ARGS_((void)); /* 28 */
562 void (*tkMacOSXSetScrollbarGrow) _ANSI_ARGS_((TkWindow * winPtr, int flag)); /* 29 */
563 void (*tkMacOSXSetUpClippingRgn) _ANSI_ARGS_((Drawable drawable)); /* 30 */
564 void (*tkMacOSXSetUpGraphicsPort) _ANSI_ARGS_((GC gc, GWorldPtr destPort)); /* 31 */
565 void (*tkMacOSXUpdateClipRgn) _ANSI_ARGS_((TkWindow * winPtr)); /* 32 */
566 void (*tkMacOSXUnregisterMacWindow) _ANSI_ARGS_((WindowRef portPtr)); /* 33 */
567 int (*tkMacOSXUseMenuID) _ANSI_ARGS_((short macID)); /* 34 */
568 RgnHandle (*tkMacOSXVisableClipRgn) _ANSI_ARGS_((TkWindow * winPtr)); /* 35 */
569 void (*tkMacOSXWinBounds) _ANSI_ARGS_((TkWindow * winPtr, Rect * geometry)); /* 36 */
570 void (*tkMacOSXWindowOffset) _ANSI_ARGS_((WindowRef wRef, int * xOffset, int * yOffset)); /* 37 */
571 int (*tkSetMacColor) _ANSI_ARGS_((unsigned long pixel, RGBColor * macColor)); /* 38 */
572 void (*tkSetWMName) _ANSI_ARGS_((TkWindow * winPtr, Tk_Uid titleUid)); /* 39 */
573 void (*tkSuspendClipboard) _ANSI_ARGS_((void)); /* 40 */
574 int (*tkMacOSXZoomToplevel) _ANSI_ARGS_((WindowPtr whichWindow, Point where, short zoomPart)); /* 41 */
575 Tk_Window (*tk_TopCoordsToWindow) _ANSI_ARGS_((Tk_Window tkwin, int rootX, int rootY, int * newX, int * newY)); /* 42 */
576 MacDrawable * (*tkMacOSXContainerId) _ANSI_ARGS_((TkWindow * winPtr)); /* 43 */
577 MacDrawable * (*tkMacOSXGetHostToplevel) _ANSI_ARGS_((TkWindow * winPtr)); /* 44 */
578 void (*tkMacOSXPreprocessMenu) _ANSI_ARGS_((void)); /* 45 */
579 int (*tkpIsWindowFloating) _ANSI_ARGS_((WindowRef window)); /* 46 */
580 Tk_Window (*tkMacOSXGetCapture) _ANSI_ARGS_((void)); /* 47 */
582 Window (*tkGetTransientMaster) _ANSI_ARGS_((TkWindow * winPtr)); /* 49 */
583 int (*tkGenerateButtonEvent) _ANSI_ARGS_((int x, int y, Window window, unsigned int state)); /* 50 */
584 void (*tkGenWMDestroyEvent) _ANSI_ARGS_((Tk_Window tkwin)); /* 51 */
586 unsigned long (*tkpGetMS) _ANSI_ARGS_((void)); /* 53 */
587 #endif /* MAC_OSX_TK */
588 #if !(defined(__WIN32__) || defined(MAC_TCL) || defined(MAC_OSX_TK)) /* X11 */
589 void (*tkCreateXEventSource) _ANSI_ARGS_((void)); /* 0 */
590 void (*tkFreeWindowId) _ANSI_ARGS_((TkDisplay * dispPtr, Window w)); /* 1 */
591 void (*tkInitXId) _ANSI_ARGS_((TkDisplay * dispPtr)); /* 2 */
592 int (*tkpCmapStressed) _ANSI_ARGS_((Tk_Window tkwin, Colormap colormap)); /* 3 */
593 void (*tkpSync) _ANSI_ARGS_((Display * display)); /* 4 */
594 Window (*tkUnixContainerId) _ANSI_ARGS_((TkWindow * winPtr)); /* 5 */
595 int (*tkUnixDoOneXEvent) _ANSI_ARGS_((Tcl_Time * timePtr)); /* 6 */
596 void (*tkUnixSetMenubar) _ANSI_ARGS_((Tk_Window tkwin, Tk_Window menubar)); /* 7 */
597 int (*tkpScanWindowId) _ANSI_ARGS_((Tcl_Interp * interp, CONST char * string, Window * idPtr)); /* 8 */
598 void (*tkWmCleanup) _ANSI_ARGS_((TkDisplay * dispPtr)); /* 9 */
599 void (*tkSendCleanup) _ANSI_ARGS_((TkDisplay * dispPtr)); /* 10 */
600 void (*tkFreeXId) _ANSI_ARGS_((TkDisplay * dispPtr)); /* 11 */
601 int (*tkpWmSetState) _ANSI_ARGS_((TkWindow * winPtr, int state)); /* 12 */
608 extern TkIntPlatStubs *tkIntPlatStubsPtr;
613 #if defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS)
616 * Inline function declarations:
620 #ifndef TkAlignImageData
621 #define TkAlignImageData \
622 (tkIntPlatStubsPtr->tkAlignImageData) /* 0 */
624 /* Slot 1 is reserved */
625 #ifndef TkGenerateActivateEvents
626 #define TkGenerateActivateEvents \
627 (tkIntPlatStubsPtr->tkGenerateActivateEvents) /* 2 */
631 (tkIntPlatStubsPtr->tkpGetMS) /* 3 */
633 #ifndef TkPointerDeadWindow
634 #define TkPointerDeadWindow \
635 (tkIntPlatStubsPtr->tkPointerDeadWindow) /* 4 */
637 #ifndef TkpPrintWindowId
638 #define TkpPrintWindowId \
639 (tkIntPlatStubsPtr->tkpPrintWindowId) /* 5 */
641 #ifndef TkpScanWindowId
642 #define TkpScanWindowId \
643 (tkIntPlatStubsPtr->tkpScanWindowId) /* 6 */
645 #ifndef TkpSetCapture
646 #define TkpSetCapture \
647 (tkIntPlatStubsPtr->tkpSetCapture) /* 7 */
650 #define TkpSetCursor \
651 (tkIntPlatStubsPtr->tkpSetCursor) /* 8 */
653 #ifndef TkpWmSetState
654 #define TkpWmSetState \
655 (tkIntPlatStubsPtr->tkpWmSetState) /* 9 */
657 #ifndef TkSetPixmapColormap
658 #define TkSetPixmapColormap \
659 (tkIntPlatStubsPtr->tkSetPixmapColormap) /* 10 */
661 #ifndef TkWinCancelMouseTimer
662 #define TkWinCancelMouseTimer \
663 (tkIntPlatStubsPtr->tkWinCancelMouseTimer) /* 11 */
665 #ifndef TkWinClipboardRender
666 #define TkWinClipboardRender \
667 (tkIntPlatStubsPtr->tkWinClipboardRender) /* 12 */
669 #ifndef TkWinEmbeddedEventProc
670 #define TkWinEmbeddedEventProc \
671 (tkIntPlatStubsPtr->tkWinEmbeddedEventProc) /* 13 */
673 #ifndef TkWinFillRect
674 #define TkWinFillRect \
675 (tkIntPlatStubsPtr->tkWinFillRect) /* 14 */
677 #ifndef TkWinGetBorderPixels
678 #define TkWinGetBorderPixels \
679 (tkIntPlatStubsPtr->tkWinGetBorderPixels) /* 15 */
681 #ifndef TkWinGetDrawableDC
682 #define TkWinGetDrawableDC \
683 (tkIntPlatStubsPtr->tkWinGetDrawableDC) /* 16 */
685 #ifndef TkWinGetModifierState
686 #define TkWinGetModifierState \
687 (tkIntPlatStubsPtr->tkWinGetModifierState) /* 17 */
689 #ifndef TkWinGetSystemPalette
690 #define TkWinGetSystemPalette \
691 (tkIntPlatStubsPtr->tkWinGetSystemPalette) /* 18 */
693 #ifndef TkWinGetWrapperWindow
694 #define TkWinGetWrapperWindow \
695 (tkIntPlatStubsPtr->tkWinGetWrapperWindow) /* 19 */
697 #ifndef TkWinHandleMenuEvent
698 #define TkWinHandleMenuEvent \
699 (tkIntPlatStubsPtr->tkWinHandleMenuEvent) /* 20 */
701 #ifndef TkWinIndexOfColor
702 #define TkWinIndexOfColor \
703 (tkIntPlatStubsPtr->tkWinIndexOfColor) /* 21 */
705 #ifndef TkWinReleaseDrawableDC
706 #define TkWinReleaseDrawableDC \
707 (tkIntPlatStubsPtr->tkWinReleaseDrawableDC) /* 22 */
709 #ifndef TkWinResendEvent
710 #define TkWinResendEvent \
711 (tkIntPlatStubsPtr->tkWinResendEvent) /* 23 */
713 #ifndef TkWinSelectPalette
714 #define TkWinSelectPalette \
715 (tkIntPlatStubsPtr->tkWinSelectPalette) /* 24 */
718 #define TkWinSetMenu \
719 (tkIntPlatStubsPtr->tkWinSetMenu) /* 25 */
721 #ifndef TkWinSetWindowPos
722 #define TkWinSetWindowPos \
723 (tkIntPlatStubsPtr->tkWinSetWindowPos) /* 26 */
725 #ifndef TkWinWmCleanup
726 #define TkWinWmCleanup \
727 (tkIntPlatStubsPtr->tkWinWmCleanup) /* 27 */
729 #ifndef TkWinXCleanup
730 #define TkWinXCleanup \
731 (tkIntPlatStubsPtr->tkWinXCleanup) /* 28 */
735 (tkIntPlatStubsPtr->tkWinXInit) /* 29 */
737 #ifndef TkWinSetForegroundWindow
738 #define TkWinSetForegroundWindow \
739 (tkIntPlatStubsPtr->tkWinSetForegroundWindow) /* 30 */
741 #ifndef TkWinDialogDebug
742 #define TkWinDialogDebug \
743 (tkIntPlatStubsPtr->tkWinDialogDebug) /* 31 */
745 #ifndef TkWinGetMenuSystemDefault
746 #define TkWinGetMenuSystemDefault \
747 (tkIntPlatStubsPtr->tkWinGetMenuSystemDefault) /* 32 */
749 #ifndef TkWinGetPlatformId
750 #define TkWinGetPlatformId \
751 (tkIntPlatStubsPtr->tkWinGetPlatformId) /* 33 */
753 #endif /* __WIN32__ */
755 #ifndef TkGenerateActivateEvents
756 #define TkGenerateActivateEvents \
757 (tkIntPlatStubsPtr->tkGenerateActivateEvents) /* 0 */
759 /* Slot 1 is reserved */
760 /* Slot 2 is reserved */
763 (tkIntPlatStubsPtr->tkpGetMS) /* 3 */
765 /* Slot 4 is reserved */
766 #ifndef TkPointerDeadWindow
767 #define TkPointerDeadWindow \
768 (tkIntPlatStubsPtr->tkPointerDeadWindow) /* 5 */
770 #ifndef TkpSetCapture
771 #define TkpSetCapture \
772 (tkIntPlatStubsPtr->tkpSetCapture) /* 6 */
775 #define TkpSetCursor \
776 (tkIntPlatStubsPtr->tkpSetCursor) /* 7 */
778 #ifndef TkpWmSetState
779 #define TkpWmSetState \
780 (tkIntPlatStubsPtr->tkpWmSetState) /* 8 */
782 /* Slot 9 is reserved */
785 (tkIntPlatStubsPtr->tkAboutDlg) /* 10 */
787 /* Slot 11 is reserved */
788 /* Slot 12 is reserved */
789 #ifndef TkGetTransientMaster
790 #define TkGetTransientMaster \
791 (tkIntPlatStubsPtr->tkGetTransientMaster) /* 13 */
793 #ifndef TkGenerateButtonEvent
794 #define TkGenerateButtonEvent \
795 (tkIntPlatStubsPtr->tkGenerateButtonEvent) /* 14 */
797 /* Slot 15 is reserved */
798 #ifndef TkGenWMDestroyEvent
799 #define TkGenWMDestroyEvent \
800 (tkIntPlatStubsPtr->tkGenWMDestroyEvent) /* 16 */
802 /* Slot 17 is reserved */
803 #ifndef TkMacButtonKeyState
804 #define TkMacButtonKeyState \
805 (tkIntPlatStubsPtr->tkMacButtonKeyState) /* 18 */
807 #ifndef TkMacClearMenubarActive
808 #define TkMacClearMenubarActive \
809 (tkIntPlatStubsPtr->tkMacClearMenubarActive) /* 19 */
811 /* Slot 20 is reserved */
812 #ifndef TkMacDispatchMenuEvent
813 #define TkMacDispatchMenuEvent \
814 (tkIntPlatStubsPtr->tkMacDispatchMenuEvent) /* 21 */
816 #ifndef TkMacInstallCursor
817 #define TkMacInstallCursor \
818 (tkIntPlatStubsPtr->tkMacInstallCursor) /* 22 */
820 /* Slot 23 is reserved */
821 #ifndef TkMacHandleTearoffMenu
822 #define TkMacHandleTearoffMenu \
823 (tkIntPlatStubsPtr->tkMacHandleTearoffMenu) /* 24 */
825 /* Slot 25 is reserved */
826 /* Slot 26 is reserved */
827 #ifndef TkMacDoHLEvent
828 #define TkMacDoHLEvent \
829 (tkIntPlatStubsPtr->tkMacDoHLEvent) /* 27 */
831 /* Slot 28 is reserved */
832 #ifndef TkMacGenerateTime
833 #define TkMacGenerateTime \
834 (tkIntPlatStubsPtr->tkMacGenerateTime) /* 29 */
836 /* Slot 30 is reserved */
837 #ifndef TkMacGetScrollbarGrowWindow
838 #define TkMacGetScrollbarGrowWindow \
839 (tkIntPlatStubsPtr->tkMacGetScrollbarGrowWindow) /* 31 */
841 #ifndef TkMacGetXWindow
842 #define TkMacGetXWindow \
843 (tkIntPlatStubsPtr->tkMacGetXWindow) /* 32 */
845 #ifndef TkMacGrowToplevel
846 #define TkMacGrowToplevel \
847 (tkIntPlatStubsPtr->tkMacGrowToplevel) /* 33 */
849 #ifndef TkMacHandleMenuSelect
850 #define TkMacHandleMenuSelect \
851 (tkIntPlatStubsPtr->tkMacHandleMenuSelect) /* 34 */
853 /* Slot 35 is reserved */
854 /* Slot 36 is reserved */
855 /* Slot 37 is reserved */
856 #ifndef TkMacInvalidateWindow
857 #define TkMacInvalidateWindow \
858 (tkIntPlatStubsPtr->tkMacInvalidateWindow) /* 38 */
860 #ifndef TkMacIsCharacterMissing
861 #define TkMacIsCharacterMissing \
862 (tkIntPlatStubsPtr->tkMacIsCharacterMissing) /* 39 */
864 #ifndef TkMacMakeRealWindowExist
865 #define TkMacMakeRealWindowExist \
866 (tkIntPlatStubsPtr->tkMacMakeRealWindowExist) /* 40 */
868 #ifndef TkMacMakeStippleMap
869 #define TkMacMakeStippleMap \
870 (tkIntPlatStubsPtr->tkMacMakeStippleMap) /* 41 */
872 #ifndef TkMacMenuClick
873 #define TkMacMenuClick \
874 (tkIntPlatStubsPtr->tkMacMenuClick) /* 42 */
876 #ifndef TkMacRegisterOffScreenWindow
877 #define TkMacRegisterOffScreenWindow \
878 (tkIntPlatStubsPtr->tkMacRegisterOffScreenWindow) /* 43 */
880 #ifndef TkMacResizable
881 #define TkMacResizable \
882 (tkIntPlatStubsPtr->tkMacResizable) /* 44 */
884 /* Slot 45 is reserved */
885 #ifndef TkMacSetHelpMenuItemCount
886 #define TkMacSetHelpMenuItemCount \
887 (tkIntPlatStubsPtr->tkMacSetHelpMenuItemCount) /* 46 */
889 #ifndef TkMacSetScrollbarGrow
890 #define TkMacSetScrollbarGrow \
891 (tkIntPlatStubsPtr->tkMacSetScrollbarGrow) /* 47 */
893 #ifndef TkMacSetUpClippingRgn
894 #define TkMacSetUpClippingRgn \
895 (tkIntPlatStubsPtr->tkMacSetUpClippingRgn) /* 48 */
897 #ifndef TkMacSetUpGraphicsPort
898 #define TkMacSetUpGraphicsPort \
899 (tkIntPlatStubsPtr->tkMacSetUpGraphicsPort) /* 49 */
901 #ifndef TkMacUpdateClipRgn
902 #define TkMacUpdateClipRgn \
903 (tkIntPlatStubsPtr->tkMacUpdateClipRgn) /* 50 */
905 #ifndef TkMacUnregisterMacWindow
906 #define TkMacUnregisterMacWindow \
907 (tkIntPlatStubsPtr->tkMacUnregisterMacWindow) /* 51 */
909 #ifndef TkMacUseMenuID
910 #define TkMacUseMenuID \
911 (tkIntPlatStubsPtr->tkMacUseMenuID) /* 52 */
913 #ifndef TkMacVisableClipRgn
914 #define TkMacVisableClipRgn \
915 (tkIntPlatStubsPtr->tkMacVisableClipRgn) /* 53 */
917 #ifndef TkMacWinBounds
918 #define TkMacWinBounds \
919 (tkIntPlatStubsPtr->tkMacWinBounds) /* 54 */
921 #ifndef TkMacWindowOffset
922 #define TkMacWindowOffset \
923 (tkIntPlatStubsPtr->tkMacWindowOffset) /* 55 */
925 /* Slot 56 is reserved */
926 #ifndef TkSetMacColor
927 #define TkSetMacColor \
928 (tkIntPlatStubsPtr->tkSetMacColor) /* 57 */
931 #define TkSetWMName \
932 (tkIntPlatStubsPtr->tkSetWMName) /* 58 */
934 #ifndef TkSuspendClipboard
935 #define TkSuspendClipboard \
936 (tkIntPlatStubsPtr->tkSuspendClipboard) /* 59 */
938 /* Slot 60 is reserved */
939 #ifndef TkMacZoomToplevel
940 #define TkMacZoomToplevel \
941 (tkIntPlatStubsPtr->tkMacZoomToplevel) /* 61 */
943 #ifndef Tk_TopCoordsToWindow
944 #define Tk_TopCoordsToWindow \
945 (tkIntPlatStubsPtr->tk_TopCoordsToWindow) /* 62 */
947 #ifndef TkMacContainerId
948 #define TkMacContainerId \
949 (tkIntPlatStubsPtr->tkMacContainerId) /* 63 */
951 #ifndef TkMacGetHostToplevel
952 #define TkMacGetHostToplevel \
953 (tkIntPlatStubsPtr->tkMacGetHostToplevel) /* 64 */
955 #ifndef TkMacPreprocessMenu
956 #define TkMacPreprocessMenu \
957 (tkIntPlatStubsPtr->tkMacPreprocessMenu) /* 65 */
959 #ifndef TkpIsWindowFloating
960 #define TkpIsWindowFloating \
961 (tkIntPlatStubsPtr->tkpIsWindowFloating) /* 66 */
965 #ifndef TkGenerateActivateEvents
966 #define TkGenerateActivateEvents \
967 (tkIntPlatStubsPtr->tkGenerateActivateEvents) /* 0 */
969 /* Slot 1 is reserved */
970 /* Slot 2 is reserved */
971 #ifndef TkPointerDeadWindow
972 #define TkPointerDeadWindow \
973 (tkIntPlatStubsPtr->tkPointerDeadWindow) /* 3 */
975 #ifndef TkpSetCapture
976 #define TkpSetCapture \
977 (tkIntPlatStubsPtr->tkpSetCapture) /* 4 */
980 #define TkpSetCursor \
981 (tkIntPlatStubsPtr->tkpSetCursor) /* 5 */
983 #ifndef TkpWmSetState
984 #define TkpWmSetState \
985 (tkIntPlatStubsPtr->tkpWmSetState) /* 6 */
989 (tkIntPlatStubsPtr->tkAboutDlg) /* 7 */
991 #ifndef TkMacOSXButtonKeyState
992 #define TkMacOSXButtonKeyState \
993 (tkIntPlatStubsPtr->tkMacOSXButtonKeyState) /* 8 */
995 #ifndef TkMacOSXClearMenubarActive
996 #define TkMacOSXClearMenubarActive \
997 (tkIntPlatStubsPtr->tkMacOSXClearMenubarActive) /* 9 */
999 #ifndef TkMacOSXDispatchMenuEvent
1000 #define TkMacOSXDispatchMenuEvent \
1001 (tkIntPlatStubsPtr->tkMacOSXDispatchMenuEvent) /* 10 */
1003 #ifndef TkMacOSXInstallCursor
1004 #define TkMacOSXInstallCursor \
1005 (tkIntPlatStubsPtr->tkMacOSXInstallCursor) /* 11 */
1007 #ifndef TkMacOSXHandleTearoffMenu
1008 #define TkMacOSXHandleTearoffMenu \
1009 (tkIntPlatStubsPtr->tkMacOSXHandleTearoffMenu) /* 12 */
1011 /* Slot 13 is reserved */
1012 #ifndef TkMacOSXDoHLEvent
1013 #define TkMacOSXDoHLEvent \
1014 (tkIntPlatStubsPtr->tkMacOSXDoHLEvent) /* 14 */
1016 /* Slot 15 is reserved */
1017 #ifndef TkMacOSXGetXWindow
1018 #define TkMacOSXGetXWindow \
1019 (tkIntPlatStubsPtr->tkMacOSXGetXWindow) /* 16 */
1021 #ifndef TkMacOSXGrowToplevel
1022 #define TkMacOSXGrowToplevel \
1023 (tkIntPlatStubsPtr->tkMacOSXGrowToplevel) /* 17 */
1025 #ifndef TkMacOSXHandleMenuSelect
1026 #define TkMacOSXHandleMenuSelect \
1027 (tkIntPlatStubsPtr->tkMacOSXHandleMenuSelect) /* 18 */
1029 /* Slot 19 is reserved */
1030 /* Slot 20 is reserved */
1031 #ifndef TkMacOSXInvalidateWindow
1032 #define TkMacOSXInvalidateWindow \
1033 (tkIntPlatStubsPtr->tkMacOSXInvalidateWindow) /* 21 */
1035 #ifndef TkMacOSXIsCharacterMissing
1036 #define TkMacOSXIsCharacterMissing \
1037 (tkIntPlatStubsPtr->tkMacOSXIsCharacterMissing) /* 22 */
1039 #ifndef TkMacOSXMakeRealWindowExist
1040 #define TkMacOSXMakeRealWindowExist \
1041 (tkIntPlatStubsPtr->tkMacOSXMakeRealWindowExist) /* 23 */
1043 #ifndef TkMacOSXMakeStippleMap
1044 #define TkMacOSXMakeStippleMap \
1045 (tkIntPlatStubsPtr->tkMacOSXMakeStippleMap) /* 24 */
1047 #ifndef TkMacOSXMenuClick
1048 #define TkMacOSXMenuClick \
1049 (tkIntPlatStubsPtr->tkMacOSXMenuClick) /* 25 */
1051 #ifndef TkMacOSXRegisterOffScreenWindow
1052 #define TkMacOSXRegisterOffScreenWindow \
1053 (tkIntPlatStubsPtr->tkMacOSXRegisterOffScreenWindow) /* 26 */
1055 #ifndef TkMacOSXResizable
1056 #define TkMacOSXResizable \
1057 (tkIntPlatStubsPtr->tkMacOSXResizable) /* 27 */
1059 #ifndef TkMacOSXSetHelpMenuItemCount
1060 #define TkMacOSXSetHelpMenuItemCount \
1061 (tkIntPlatStubsPtr->tkMacOSXSetHelpMenuItemCount) /* 28 */
1063 #ifndef TkMacOSXSetScrollbarGrow
1064 #define TkMacOSXSetScrollbarGrow \
1065 (tkIntPlatStubsPtr->tkMacOSXSetScrollbarGrow) /* 29 */
1067 #ifndef TkMacOSXSetUpClippingRgn
1068 #define TkMacOSXSetUpClippingRgn \
1069 (tkIntPlatStubsPtr->tkMacOSXSetUpClippingRgn) /* 30 */
1071 #ifndef TkMacOSXSetUpGraphicsPort
1072 #define TkMacOSXSetUpGraphicsPort \
1073 (tkIntPlatStubsPtr->tkMacOSXSetUpGraphicsPort) /* 31 */
1075 #ifndef TkMacOSXUpdateClipRgn
1076 #define TkMacOSXUpdateClipRgn \
1077 (tkIntPlatStubsPtr->tkMacOSXUpdateClipRgn) /* 32 */
1079 #ifndef TkMacOSXUnregisterMacWindow
1080 #define TkMacOSXUnregisterMacWindow \
1081 (tkIntPlatStubsPtr->tkMacOSXUnregisterMacWindow) /* 33 */
1083 #ifndef TkMacOSXUseMenuID
1084 #define TkMacOSXUseMenuID \
1085 (tkIntPlatStubsPtr->tkMacOSXUseMenuID) /* 34 */
1087 #ifndef TkMacOSXVisableClipRgn
1088 #define TkMacOSXVisableClipRgn \
1089 (tkIntPlatStubsPtr->tkMacOSXVisableClipRgn) /* 35 */
1091 #ifndef TkMacOSXWinBounds
1092 #define TkMacOSXWinBounds \
1093 (tkIntPlatStubsPtr->tkMacOSXWinBounds) /* 36 */
1095 #ifndef TkMacOSXWindowOffset
1096 #define TkMacOSXWindowOffset \
1097 (tkIntPlatStubsPtr->tkMacOSXWindowOffset) /* 37 */
1099 #ifndef TkSetMacColor
1100 #define TkSetMacColor \
1101 (tkIntPlatStubsPtr->tkSetMacColor) /* 38 */
1104 #define TkSetWMName \
1105 (tkIntPlatStubsPtr->tkSetWMName) /* 39 */
1107 #ifndef TkSuspendClipboard
1108 #define TkSuspendClipboard \
1109 (tkIntPlatStubsPtr->tkSuspendClipboard) /* 40 */
1111 #ifndef TkMacOSXZoomToplevel
1112 #define TkMacOSXZoomToplevel \
1113 (tkIntPlatStubsPtr->tkMacOSXZoomToplevel) /* 41 */
1115 #ifndef Tk_TopCoordsToWindow
1116 #define Tk_TopCoordsToWindow \
1117 (tkIntPlatStubsPtr->tk_TopCoordsToWindow) /* 42 */
1119 #ifndef TkMacOSXContainerId
1120 #define TkMacOSXContainerId \
1121 (tkIntPlatStubsPtr->tkMacOSXContainerId) /* 43 */
1123 #ifndef TkMacOSXGetHostToplevel
1124 #define TkMacOSXGetHostToplevel \
1125 (tkIntPlatStubsPtr->tkMacOSXGetHostToplevel) /* 44 */
1127 #ifndef TkMacOSXPreprocessMenu
1128 #define TkMacOSXPreprocessMenu \
1129 (tkIntPlatStubsPtr->tkMacOSXPreprocessMenu) /* 45 */
1131 #ifndef TkpIsWindowFloating
1132 #define TkpIsWindowFloating \
1133 (tkIntPlatStubsPtr->tkpIsWindowFloating) /* 46 */
1135 #ifndef TkMacOSXGetCapture
1136 #define TkMacOSXGetCapture \
1137 (tkIntPlatStubsPtr->tkMacOSXGetCapture) /* 47 */
1139 /* Slot 48 is reserved */
1140 #ifndef TkGetTransientMaster
1141 #define TkGetTransientMaster \
1142 (tkIntPlatStubsPtr->tkGetTransientMaster) /* 49 */
1144 #ifndef TkGenerateButtonEvent
1145 #define TkGenerateButtonEvent \
1146 (tkIntPlatStubsPtr->tkGenerateButtonEvent) /* 50 */
1148 #ifndef TkGenWMDestroyEvent
1149 #define TkGenWMDestroyEvent \
1150 (tkIntPlatStubsPtr->tkGenWMDestroyEvent) /* 51 */
1152 /* Slot 52 is reserved */
1155 (tkIntPlatStubsPtr->tkpGetMS) /* 53 */
1157 #endif /* MAC_OSX_TK */
1158 #if !(defined(__WIN32__) || defined(MAC_TCL) || defined(MAC_OSX_TK)) /* X11 */
1159 #ifndef TkCreateXEventSource
1160 #define TkCreateXEventSource \
1161 (tkIntPlatStubsPtr->tkCreateXEventSource) /* 0 */
1163 #ifndef TkFreeWindowId
1164 #define TkFreeWindowId \
1165 (tkIntPlatStubsPtr->tkFreeWindowId) /* 1 */
1169 (tkIntPlatStubsPtr->tkInitXId) /* 2 */
1171 #ifndef TkpCmapStressed
1172 #define TkpCmapStressed \
1173 (tkIntPlatStubsPtr->tkpCmapStressed) /* 3 */
1177 (tkIntPlatStubsPtr->tkpSync) /* 4 */
1179 #ifndef TkUnixContainerId
1180 #define TkUnixContainerId \
1181 (tkIntPlatStubsPtr->tkUnixContainerId) /* 5 */
1183 #ifndef TkUnixDoOneXEvent
1184 #define TkUnixDoOneXEvent \
1185 (tkIntPlatStubsPtr->tkUnixDoOneXEvent) /* 6 */
1187 #ifndef TkUnixSetMenubar
1188 #define TkUnixSetMenubar \
1189 (tkIntPlatStubsPtr->tkUnixSetMenubar) /* 7 */
1191 #ifndef TkpScanWindowId
1192 #define TkpScanWindowId \
1193 (tkIntPlatStubsPtr->tkpScanWindowId) /* 8 */
1196 #define TkWmCleanup \
1197 (tkIntPlatStubsPtr->tkWmCleanup) /* 9 */
1199 #ifndef TkSendCleanup
1200 #define TkSendCleanup \
1201 (tkIntPlatStubsPtr->tkSendCleanup) /* 10 */
1205 (tkIntPlatStubsPtr->tkFreeXId) /* 11 */
1207 #ifndef TkpWmSetState
1208 #define TkpWmSetState \
1209 (tkIntPlatStubsPtr->tkpWmSetState) /* 12 */
1213 #endif /* defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) */
1215 /* !END!: Do not edit above this line. */
1217 #undef TCL_STORAGE_CLASS
1218 #define TCL_STORAGE_CLASS DLLIMPORT
1220 #endif /* _TKINTPLATDECLS */