OSDN Git Service

*** empty log message ***
[pf3gnuchains/sourceware.git] / tk / generic / tkIntPlatDecls.h
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  * RCS: @(#) $Id$
13  */
14
15 #ifndef _TKINTPLATDECLS
16 #define _TKINTPLATDECLS
17
18 #ifdef BUILD_tk
19 #undef TCL_STORAGE_CLASS
20 #define TCL_STORAGE_CLASS DLLEXPORT
21 #endif
22
23 /*
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.
27  */
28
29 /* !BEGIN!: Do not edit below this line. */
30
31 /*
32  * Exported function declarations:
33  */
34
35 #ifdef __WIN32__
36 /* 0 */
37 EXTERN char *           TkAlignImageData _ANSI_ARGS_((XImage * image, 
38                                 int alignment, int bitOrder));
39 /* Slot 1 is reserved */
40 /* 2 */
41 EXTERN void             TkGenerateActivateEvents _ANSI_ARGS_((
42                                 TkWindow * winPtr, int active));
43 /* 3 */
44 EXTERN unsigned long    TkpGetMS _ANSI_ARGS_((void));
45 /* 4 */
46 EXTERN void             TkPointerDeadWindow _ANSI_ARGS_((TkWindow * winPtr));
47 /* 5 */
48 EXTERN void             TkpPrintWindowId _ANSI_ARGS_((char * buf, 
49                                 Window window));
50 /* 6 */
51 EXTERN int              TkpScanWindowId _ANSI_ARGS_((Tcl_Interp * interp, 
52                                 CONST char * string, Window * idPtr));
53 /* 7 */
54 EXTERN void             TkpSetCapture _ANSI_ARGS_((TkWindow * winPtr));
55 /* 8 */
56 EXTERN void             TkpSetCursor _ANSI_ARGS_((TkpCursor cursor));
57 /* 9 */
58 EXTERN void             TkpWmSetState _ANSI_ARGS_((TkWindow * winPtr, 
59                                 int state));
60 /* 10 */
61 EXTERN void             TkSetPixmapColormap _ANSI_ARGS_((Pixmap pixmap, 
62                                 Colormap colormap));
63 /* 11 */
64 EXTERN void             TkWinCancelMouseTimer _ANSI_ARGS_((void));
65 /* 12 */
66 EXTERN void             TkWinClipboardRender _ANSI_ARGS_((
67                                 TkDisplay * dispPtr, UINT format));
68 /* 13 */
69 EXTERN LRESULT          TkWinEmbeddedEventProc _ANSI_ARGS_((HWND hwnd, 
70                                 UINT message, WPARAM wParam, LPARAM lParam));
71 /* 14 */
72 EXTERN void             TkWinFillRect _ANSI_ARGS_((HDC dc, int x, int y, 
73                                 int width, int height, int pixel));
74 /* 15 */
75 EXTERN COLORREF         TkWinGetBorderPixels _ANSI_ARGS_((Tk_Window tkwin, 
76                                 Tk_3DBorder border, int which));
77 /* 16 */
78 EXTERN HDC              TkWinGetDrawableDC _ANSI_ARGS_((Display * display, 
79                                 Drawable d, TkWinDCState* state));
80 /* 17 */
81 EXTERN int              TkWinGetModifierState _ANSI_ARGS_((void));
82 /* 18 */
83 EXTERN HPALETTE         TkWinGetSystemPalette _ANSI_ARGS_((void));
84 /* 19 */
85 EXTERN HWND             TkWinGetWrapperWindow _ANSI_ARGS_((Tk_Window tkwin));
86 /* 20 */
87 EXTERN int              TkWinHandleMenuEvent _ANSI_ARGS_((HWND * phwnd, 
88                                 UINT * pMessage, WPARAM * pwParam, 
89                                 LPARAM * plParam, LRESULT * plResult));
90 /* 21 */
91 EXTERN int              TkWinIndexOfColor _ANSI_ARGS_((XColor * colorPtr));
92 /* 22 */
93 EXTERN void             TkWinReleaseDrawableDC _ANSI_ARGS_((Drawable d, 
94                                 HDC hdc, TkWinDCState* state));
95 /* 23 */
96 EXTERN LRESULT          TkWinResendEvent _ANSI_ARGS_((WNDPROC wndproc, 
97                                 HWND hwnd, XEvent * eventPtr));
98 /* 24 */
99 EXTERN HPALETTE         TkWinSelectPalette _ANSI_ARGS_((HDC dc, 
100                                 Colormap colormap));
101 /* 25 */
102 EXTERN void             TkWinSetMenu _ANSI_ARGS_((Tk_Window tkwin, 
103                                 HMENU hMenu));
104 /* 26 */
105 EXTERN void             TkWinSetWindowPos _ANSI_ARGS_((HWND hwnd, 
106                                 HWND siblingHwnd, int pos));
107 /* 27 */
108 EXTERN void             TkWinWmCleanup _ANSI_ARGS_((HINSTANCE hInstance));
109 /* 28 */
110 EXTERN void             TkWinXCleanup _ANSI_ARGS_((HINSTANCE hInstance));
111 /* 29 */
112 EXTERN void             TkWinXInit _ANSI_ARGS_((HINSTANCE hInstance));
113 /* 30 */
114 EXTERN void             TkWinSetForegroundWindow _ANSI_ARGS_((
115                                 TkWindow * winPtr));
116 /* 31 */
117 EXTERN void             TkWinDialogDebug _ANSI_ARGS_((int debug));
118 /* 32 */
119 EXTERN Tcl_Obj *        TkWinGetMenuSystemDefault _ANSI_ARGS_((
120                                 Tk_Window tkwin, CONST char * dbName, 
121                                 CONST char * className));
122 /* 33 */
123 EXTERN int              TkWinGetPlatformId _ANSI_ARGS_((void));
124 #endif /* __WIN32__ */
125 #ifdef MAC_TCL
126 /* 0 */
127 EXTERN void             TkGenerateActivateEvents _ANSI_ARGS_((
128                                 TkWindow * winPtr, int active));
129 /* Slot 1 is reserved */
130 /* Slot 2 is reserved */
131 /* 3 */
132 EXTERN unsigned long    TkpGetMS _ANSI_ARGS_((void));
133 /* Slot 4 is reserved */
134 /* 5 */
135 EXTERN void             TkPointerDeadWindow _ANSI_ARGS_((TkWindow * winPtr));
136 /* 6 */
137 EXTERN void             TkpSetCapture _ANSI_ARGS_((TkWindow * winPtr));
138 /* 7 */
139 EXTERN void             TkpSetCursor _ANSI_ARGS_((TkpCursor cursor));
140 /* 8 */
141 EXTERN void             TkpWmSetState _ANSI_ARGS_((TkWindow * winPtr, 
142                                 int state));
143 /* Slot 9 is reserved */
144 /* 10 */
145 EXTERN void             TkAboutDlg _ANSI_ARGS_((void));
146 /* Slot 11 is reserved */
147 /* Slot 12 is reserved */
148 /* 13 */
149 EXTERN Window           TkGetTransientMaster _ANSI_ARGS_((TkWindow * winPtr));
150 /* 14 */
151 EXTERN int              TkGenerateButtonEvent _ANSI_ARGS_((int x, int y, 
152                                 Window window, unsigned int state));
153 /* Slot 15 is reserved */
154 /* 16 */
155 EXTERN void             TkGenWMDestroyEvent _ANSI_ARGS_((Tk_Window tkwin));
156 /* Slot 17 is reserved */
157 /* 18 */
158 EXTERN unsigned int     TkMacButtonKeyState _ANSI_ARGS_((void));
159 /* 19 */
160 EXTERN void             TkMacClearMenubarActive _ANSI_ARGS_((void));
161 /* Slot 20 is reserved */
162 /* 21 */
163 EXTERN int              TkMacDispatchMenuEvent _ANSI_ARGS_((int menuID, 
164                                 int index));
165 /* 22 */
166 EXTERN void             TkMacInstallCursor _ANSI_ARGS_((int resizeOverride));
167 /* Slot 23 is reserved */
168 /* 24 */
169 EXTERN void             TkMacHandleTearoffMenu _ANSI_ARGS_((void));
170 /* Slot 25 is reserved */
171 /* Slot 26 is reserved */
172 /* 27 */
173 EXTERN void             TkMacDoHLEvent _ANSI_ARGS_((EventRecord * theEvent));
174 /* Slot 28 is reserved */
175 /* 29 */
176 EXTERN Time             TkMacGenerateTime _ANSI_ARGS_((void));
177 /* Slot 30 is reserved */
178 /* 31 */
179 EXTERN TkWindow *       TkMacGetScrollbarGrowWindow _ANSI_ARGS_((
180                                 TkWindow * winPtr));
181 /* 32 */
182 EXTERN Window           TkMacGetXWindow _ANSI_ARGS_((WindowRef macWinPtr));
183 /* 33 */
184 EXTERN int              TkMacGrowToplevel _ANSI_ARGS_((WindowRef whichWindow, 
185                                 Point start));
186 /* 34 */
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 */
192 /* 38 */
193 EXTERN void             TkMacInvalidateWindow _ANSI_ARGS_((
194                                 MacDrawable * macWin, int flag));
195 /* 39 */
196 EXTERN int              TkMacIsCharacterMissing _ANSI_ARGS_((Tk_Font tkfont, 
197                                 unsigned int searchChar));
198 /* 40 */
199 EXTERN void             TkMacMakeRealWindowExist _ANSI_ARGS_((
200                                 TkWindow * winPtr));
201 /* 41 */
202 EXTERN BitMapPtr        TkMacMakeStippleMap _ANSI_ARGS_((Drawable d1, 
203                                 Drawable d2));
204 /* 42 */
205 EXTERN void             TkMacMenuClick _ANSI_ARGS_((void));
206 /* 43 */
207 EXTERN void             TkMacRegisterOffScreenWindow _ANSI_ARGS_((
208                                 Window window, GWorldPtr portPtr));
209 /* 44 */
210 EXTERN int              TkMacResizable _ANSI_ARGS_((TkWindow * winPtr));
211 /* Slot 45 is reserved */
212 /* 46 */
213 EXTERN void             TkMacSetHelpMenuItemCount _ANSI_ARGS_((void));
214 /* 47 */
215 EXTERN void             TkMacSetScrollbarGrow _ANSI_ARGS_((TkWindow * winPtr, 
216                                 int flag));
217 /* 48 */
218 EXTERN void             TkMacSetUpClippingRgn _ANSI_ARGS_((Drawable drawable));
219 /* 49 */
220 EXTERN void             TkMacSetUpGraphicsPort _ANSI_ARGS_((GC gc));
221 /* 50 */
222 EXTERN void             TkMacUpdateClipRgn _ANSI_ARGS_((TkWindow * winPtr));
223 /* 51 */
224 EXTERN void             TkMacUnregisterMacWindow _ANSI_ARGS_((
225                                 GWorldPtr portPtr));
226 /* 52 */
227 EXTERN int              TkMacUseMenuID _ANSI_ARGS_((short macID));
228 /* 53 */
229 EXTERN RgnHandle        TkMacVisableClipRgn _ANSI_ARGS_((TkWindow * winPtr));
230 /* 54 */
231 EXTERN void             TkMacWinBounds _ANSI_ARGS_((TkWindow * winPtr, 
232                                 Rect * geometry));
233 /* 55 */
234 EXTERN void             TkMacWindowOffset _ANSI_ARGS_((WindowRef wRef, 
235                                 int * xOffset, int * yOffset));
236 /* Slot 56 is reserved */
237 /* 57 */
238 EXTERN int              TkSetMacColor _ANSI_ARGS_((unsigned long pixel, 
239                                 RGBColor * macColor));
240 /* 58 */
241 EXTERN void             TkSetWMName _ANSI_ARGS_((TkWindow * winPtr, 
242                                 Tk_Uid titleUid));
243 /* 59 */
244 EXTERN void             TkSuspendClipboard _ANSI_ARGS_((void));
245 /* Slot 60 is reserved */
246 /* 61 */
247 EXTERN int              TkMacZoomToplevel _ANSI_ARGS_((WindowPtr whichWindow, 
248                                 Point where, short zoomPart));
249 /* 62 */
250 EXTERN Tk_Window        Tk_TopCoordsToWindow _ANSI_ARGS_((Tk_Window tkwin, 
251                                 int rootX, int rootY, int * newX, int * newY));
252 /* 63 */
253 EXTERN MacDrawable *    TkMacContainerId _ANSI_ARGS_((TkWindow * winPtr));
254 /* 64 */
255 EXTERN MacDrawable *    TkMacGetHostToplevel _ANSI_ARGS_((TkWindow * winPtr));
256 /* 65 */
257 EXTERN void             TkMacPreprocessMenu _ANSI_ARGS_((void));
258 /* 66 */
259 EXTERN int              TkpIsWindowFloating _ANSI_ARGS_((WindowRef window));
260 #endif /* MAC_TCL */
261 #ifdef MAC_OSX_TK
262 /* 0 */
263 EXTERN void             TkGenerateActivateEvents _ANSI_ARGS_((
264                                 TkWindow * winPtr, int active));
265 /* Slot 1 is reserved */
266 /* Slot 2 is reserved */
267 /* 3 */
268 EXTERN void             TkPointerDeadWindow _ANSI_ARGS_((TkWindow * winPtr));
269 /* 4 */
270 EXTERN void             TkpSetCapture _ANSI_ARGS_((TkWindow * winPtr));
271 /* 5 */
272 EXTERN void             TkpSetCursor _ANSI_ARGS_((TkpCursor cursor));
273 /* 6 */
274 EXTERN void             TkpWmSetState _ANSI_ARGS_((TkWindow * winPtr, 
275                                 int state));
276 /* 7 */
277 EXTERN void             TkAboutDlg _ANSI_ARGS_((void));
278 /* 8 */
279 EXTERN unsigned int     TkMacOSXButtonKeyState _ANSI_ARGS_((void));
280 /* 9 */
281 EXTERN void             TkMacOSXClearMenubarActive _ANSI_ARGS_((void));
282 /* 10 */
283 EXTERN int              TkMacOSXDispatchMenuEvent _ANSI_ARGS_((int menuID, 
284                                 int index));
285 /* 11 */
286 EXTERN void             TkMacOSXInstallCursor _ANSI_ARGS_((
287                                 int resizeOverride));
288 /* 12 */
289 EXTERN void             TkMacOSXHandleTearoffMenu _ANSI_ARGS_((void));
290 /* Slot 13 is reserved */
291 /* 14 */
292 EXTERN int              TkMacOSXDoHLEvent _ANSI_ARGS_((
293                                 EventRecord * theEvent));
294 /* Slot 15 is reserved */
295 /* 16 */
296 EXTERN Window           TkMacOSXGetXWindow _ANSI_ARGS_((WindowRef macWinPtr));
297 /* 17 */
298 EXTERN int              TkMacOSXGrowToplevel _ANSI_ARGS_((
299                                 WindowRef whichWindow, Point start));
300 /* 18 */
301 EXTERN void             TkMacOSXHandleMenuSelect _ANSI_ARGS_((long mResult, 
302                                 int optionKeyPressed));
303 /* Slot 19 is reserved */
304 /* Slot 20 is reserved */
305 /* 21 */
306 EXTERN void             TkMacOSXInvalidateWindow _ANSI_ARGS_((
307                                 MacDrawable * macWin, int flag));
308 /* 22 */
309 EXTERN int              TkMacOSXIsCharacterMissing _ANSI_ARGS_((
310                                 Tk_Font tkfont, unsigned int searchChar));
311 /* 23 */
312 EXTERN void             TkMacOSXMakeRealWindowExist _ANSI_ARGS_((
313                                 TkWindow * winPtr));
314 /* 24 */
315 EXTERN BitMapPtr        TkMacOSXMakeStippleMap _ANSI_ARGS_((Drawable d1, 
316                                 Drawable d2));
317 /* 25 */
318 EXTERN void             TkMacOSXMenuClick _ANSI_ARGS_((void));
319 /* 26 */
320 EXTERN void             TkMacOSXRegisterOffScreenWindow _ANSI_ARGS_((
321                                 Window window, GWorldPtr portPtr));
322 /* 27 */
323 EXTERN int              TkMacOSXResizable _ANSI_ARGS_((TkWindow * winPtr));
324 /* 28 */
325 EXTERN void             TkMacOSXSetHelpMenuItemCount _ANSI_ARGS_((void));
326 /* 29 */
327 EXTERN void             TkMacOSXSetScrollbarGrow _ANSI_ARGS_((
328                                 TkWindow * winPtr, int flag));
329 /* 30 */
330 EXTERN void             TkMacOSXSetUpClippingRgn _ANSI_ARGS_((
331                                 Drawable drawable));
332 /* 31 */
333 EXTERN void             TkMacOSXSetUpGraphicsPort _ANSI_ARGS_((GC gc, 
334                                 GWorldPtr destPort));
335 /* 32 */
336 EXTERN void             TkMacOSXUpdateClipRgn _ANSI_ARGS_((TkWindow * winPtr));
337 /* 33 */
338 EXTERN void             TkMacOSXUnregisterMacWindow _ANSI_ARGS_((
339                                 WindowRef portPtr));
340 /* 34 */
341 EXTERN int              TkMacOSXUseMenuID _ANSI_ARGS_((short macID));
342 /* 35 */
343 EXTERN RgnHandle        TkMacOSXVisableClipRgn _ANSI_ARGS_((
344                                 TkWindow * winPtr));
345 /* 36 */
346 EXTERN void             TkMacOSXWinBounds _ANSI_ARGS_((TkWindow * winPtr, 
347                                 Rect * geometry));
348 /* 37 */
349 EXTERN void             TkMacOSXWindowOffset _ANSI_ARGS_((WindowRef wRef, 
350                                 int * xOffset, int * yOffset));
351 /* 38 */
352 EXTERN int              TkSetMacColor _ANSI_ARGS_((unsigned long pixel, 
353                                 RGBColor * macColor));
354 /* 39 */
355 EXTERN void             TkSetWMName _ANSI_ARGS_((TkWindow * winPtr, 
356                                 Tk_Uid titleUid));
357 /* 40 */
358 EXTERN void             TkSuspendClipboard _ANSI_ARGS_((void));
359 /* 41 */
360 EXTERN int              TkMacOSXZoomToplevel _ANSI_ARGS_((
361                                 WindowPtr whichWindow, Point where, 
362                                 short zoomPart));
363 /* 42 */
364 EXTERN Tk_Window        Tk_TopCoordsToWindow _ANSI_ARGS_((Tk_Window tkwin, 
365                                 int rootX, int rootY, int * newX, int * newY));
366 /* 43 */
367 EXTERN MacDrawable *    TkMacOSXContainerId _ANSI_ARGS_((TkWindow * winPtr));
368 /* 44 */
369 EXTERN MacDrawable *    TkMacOSXGetHostToplevel _ANSI_ARGS_((
370                                 TkWindow * winPtr));
371 /* 45 */
372 EXTERN void             TkMacOSXPreprocessMenu _ANSI_ARGS_((void));
373 /* 46 */
374 EXTERN int              TkpIsWindowFloating _ANSI_ARGS_((WindowRef window));
375 /* 47 */
376 EXTERN Tk_Window        TkMacOSXGetCapture _ANSI_ARGS_((void));
377 /* Slot 48 is reserved */
378 /* 49 */
379 EXTERN Window           TkGetTransientMaster _ANSI_ARGS_((TkWindow * winPtr));
380 /* 50 */
381 EXTERN int              TkGenerateButtonEvent _ANSI_ARGS_((int x, int y, 
382                                 Window window, unsigned int state));
383 /* 51 */
384 EXTERN void             TkGenWMDestroyEvent _ANSI_ARGS_((Tk_Window tkwin));
385 /* Slot 52 is reserved */
386 /* 53 */
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 */
390 /* 0 */
391 EXTERN void             TkCreateXEventSource _ANSI_ARGS_((void));
392 /* 1 */
393 EXTERN void             TkFreeWindowId _ANSI_ARGS_((TkDisplay * dispPtr, 
394                                 Window w));
395 /* 2 */
396 EXTERN void             TkInitXId _ANSI_ARGS_((TkDisplay * dispPtr));
397 /* 3 */
398 EXTERN int              TkpCmapStressed _ANSI_ARGS_((Tk_Window tkwin, 
399                                 Colormap colormap));
400 /* 4 */
401 EXTERN void             TkpSync _ANSI_ARGS_((Display * display));
402 /* 5 */
403 EXTERN Window           TkUnixContainerId _ANSI_ARGS_((TkWindow * winPtr));
404 /* 6 */
405 EXTERN int              TkUnixDoOneXEvent _ANSI_ARGS_((Tcl_Time * timePtr));
406 /* 7 */
407 EXTERN void             TkUnixSetMenubar _ANSI_ARGS_((Tk_Window tkwin, 
408                                 Tk_Window menubar));
409 /* 8 */
410 EXTERN int              TkpScanWindowId _ANSI_ARGS_((Tcl_Interp * interp, 
411                                 CONST char * string, Window * idPtr));
412 /* 9 */
413 EXTERN void             TkWmCleanup _ANSI_ARGS_((TkDisplay * dispPtr));
414 /* 10 */
415 EXTERN void             TkSendCleanup _ANSI_ARGS_((TkDisplay * dispPtr));
416 /* 11 */
417 EXTERN void             TkFreeXId _ANSI_ARGS_((TkDisplay * dispPtr));
418 /* 12 */
419 EXTERN int              TkpWmSetState _ANSI_ARGS_((TkWindow * winPtr, 
420                                 int state));
421 #endif /* X11 */
422
423 typedef struct TkIntPlatStubs {
424     int magic;
425     struct TkIntPlatStubHooks *hooks;
426
427 #ifdef __WIN32__
428     char * (*tkAlignImageData) _ANSI_ARGS_((XImage * image, int alignment, int bitOrder)); /* 0 */
429     void *reserved1;
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__ */
463 #ifdef MAC_TCL
464     void (*tkGenerateActivateEvents) _ANSI_ARGS_((TkWindow * winPtr, int active)); /* 0 */
465     void *reserved1;
466     void *reserved2;
467     unsigned long (*tkpGetMS) _ANSI_ARGS_((void)); /* 3 */
468     void *reserved4;
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 */
473     void *reserved9;
474     void (*tkAboutDlg) _ANSI_ARGS_((void)); /* 10 */
475     void *reserved11;
476     void *reserved12;
477     Window (*tkGetTransientMaster) _ANSI_ARGS_((TkWindow * winPtr)); /* 13 */
478     int (*tkGenerateButtonEvent) _ANSI_ARGS_((int x, int y, Window window, unsigned int state)); /* 14 */
479     void *reserved15;
480     void (*tkGenWMDestroyEvent) _ANSI_ARGS_((Tk_Window tkwin)); /* 16 */
481     void *reserved17;
482     unsigned int (*tkMacButtonKeyState) _ANSI_ARGS_((void)); /* 18 */
483     void (*tkMacClearMenubarActive) _ANSI_ARGS_((void)); /* 19 */
484     void *reserved20;
485     int (*tkMacDispatchMenuEvent) _ANSI_ARGS_((int menuID, int index)); /* 21 */
486     void (*tkMacInstallCursor) _ANSI_ARGS_((int resizeOverride)); /* 22 */
487     void *reserved23;
488     void (*tkMacHandleTearoffMenu) _ANSI_ARGS_((void)); /* 24 */
489     void *reserved25;
490     void *reserved26;
491     void (*tkMacDoHLEvent) _ANSI_ARGS_((EventRecord * theEvent)); /* 27 */
492     void *reserved28;
493     Time (*tkMacGenerateTime) _ANSI_ARGS_((void)); /* 29 */
494     void *reserved30;
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 */
499     void *reserved35;
500     void *reserved36;
501     void *reserved37;
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 */
509     void *reserved45;
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 */
520     void *reserved56;
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 */
524     void *reserved60;
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 */
531 #endif /* MAC_TCL */
532 #ifdef MAC_OSX_TK
533     void (*tkGenerateActivateEvents) _ANSI_ARGS_((TkWindow * winPtr, int active)); /* 0 */
534     void *reserved1;
535     void *reserved2;
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 */
546     void *reserved13;
547     int (*tkMacOSXDoHLEvent) _ANSI_ARGS_((EventRecord * theEvent)); /* 14 */
548     void *reserved15;
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 */
552     void *reserved19;
553     void *reserved20;
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 */
581     void *reserved48;
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 */
585     void *reserved52;
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 */
602 #endif /* X11 */
603 } TkIntPlatStubs;
604
605 #ifdef __cplusplus
606 extern "C" {
607 #endif
608 extern TkIntPlatStubs *tkIntPlatStubsPtr;
609 #ifdef __cplusplus
610 }
611 #endif
612
613 #if defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS)
614
615 /*
616  * Inline function declarations:
617  */
618
619 #ifdef __WIN32__
620 #ifndef TkAlignImageData
621 #define TkAlignImageData \
622         (tkIntPlatStubsPtr->tkAlignImageData) /* 0 */
623 #endif
624 /* Slot 1 is reserved */
625 #ifndef TkGenerateActivateEvents
626 #define TkGenerateActivateEvents \
627         (tkIntPlatStubsPtr->tkGenerateActivateEvents) /* 2 */
628 #endif
629 #ifndef TkpGetMS
630 #define TkpGetMS \
631         (tkIntPlatStubsPtr->tkpGetMS) /* 3 */
632 #endif
633 #ifndef TkPointerDeadWindow
634 #define TkPointerDeadWindow \
635         (tkIntPlatStubsPtr->tkPointerDeadWindow) /* 4 */
636 #endif
637 #ifndef TkpPrintWindowId
638 #define TkpPrintWindowId \
639         (tkIntPlatStubsPtr->tkpPrintWindowId) /* 5 */
640 #endif
641 #ifndef TkpScanWindowId
642 #define TkpScanWindowId \
643         (tkIntPlatStubsPtr->tkpScanWindowId) /* 6 */
644 #endif
645 #ifndef TkpSetCapture
646 #define TkpSetCapture \
647         (tkIntPlatStubsPtr->tkpSetCapture) /* 7 */
648 #endif
649 #ifndef TkpSetCursor
650 #define TkpSetCursor \
651         (tkIntPlatStubsPtr->tkpSetCursor) /* 8 */
652 #endif
653 #ifndef TkpWmSetState
654 #define TkpWmSetState \
655         (tkIntPlatStubsPtr->tkpWmSetState) /* 9 */
656 #endif
657 #ifndef TkSetPixmapColormap
658 #define TkSetPixmapColormap \
659         (tkIntPlatStubsPtr->tkSetPixmapColormap) /* 10 */
660 #endif
661 #ifndef TkWinCancelMouseTimer
662 #define TkWinCancelMouseTimer \
663         (tkIntPlatStubsPtr->tkWinCancelMouseTimer) /* 11 */
664 #endif
665 #ifndef TkWinClipboardRender
666 #define TkWinClipboardRender \
667         (tkIntPlatStubsPtr->tkWinClipboardRender) /* 12 */
668 #endif
669 #ifndef TkWinEmbeddedEventProc
670 #define TkWinEmbeddedEventProc \
671         (tkIntPlatStubsPtr->tkWinEmbeddedEventProc) /* 13 */
672 #endif
673 #ifndef TkWinFillRect
674 #define TkWinFillRect \
675         (tkIntPlatStubsPtr->tkWinFillRect) /* 14 */
676 #endif
677 #ifndef TkWinGetBorderPixels
678 #define TkWinGetBorderPixels \
679         (tkIntPlatStubsPtr->tkWinGetBorderPixels) /* 15 */
680 #endif
681 #ifndef TkWinGetDrawableDC
682 #define TkWinGetDrawableDC \
683         (tkIntPlatStubsPtr->tkWinGetDrawableDC) /* 16 */
684 #endif
685 #ifndef TkWinGetModifierState
686 #define TkWinGetModifierState \
687         (tkIntPlatStubsPtr->tkWinGetModifierState) /* 17 */
688 #endif
689 #ifndef TkWinGetSystemPalette
690 #define TkWinGetSystemPalette \
691         (tkIntPlatStubsPtr->tkWinGetSystemPalette) /* 18 */
692 #endif
693 #ifndef TkWinGetWrapperWindow
694 #define TkWinGetWrapperWindow \
695         (tkIntPlatStubsPtr->tkWinGetWrapperWindow) /* 19 */
696 #endif
697 #ifndef TkWinHandleMenuEvent
698 #define TkWinHandleMenuEvent \
699         (tkIntPlatStubsPtr->tkWinHandleMenuEvent) /* 20 */
700 #endif
701 #ifndef TkWinIndexOfColor
702 #define TkWinIndexOfColor \
703         (tkIntPlatStubsPtr->tkWinIndexOfColor) /* 21 */
704 #endif
705 #ifndef TkWinReleaseDrawableDC
706 #define TkWinReleaseDrawableDC \
707         (tkIntPlatStubsPtr->tkWinReleaseDrawableDC) /* 22 */
708 #endif
709 #ifndef TkWinResendEvent
710 #define TkWinResendEvent \
711         (tkIntPlatStubsPtr->tkWinResendEvent) /* 23 */
712 #endif
713 #ifndef TkWinSelectPalette
714 #define TkWinSelectPalette \
715         (tkIntPlatStubsPtr->tkWinSelectPalette) /* 24 */
716 #endif
717 #ifndef TkWinSetMenu
718 #define TkWinSetMenu \
719         (tkIntPlatStubsPtr->tkWinSetMenu) /* 25 */
720 #endif
721 #ifndef TkWinSetWindowPos
722 #define TkWinSetWindowPos \
723         (tkIntPlatStubsPtr->tkWinSetWindowPos) /* 26 */
724 #endif
725 #ifndef TkWinWmCleanup
726 #define TkWinWmCleanup \
727         (tkIntPlatStubsPtr->tkWinWmCleanup) /* 27 */
728 #endif
729 #ifndef TkWinXCleanup
730 #define TkWinXCleanup \
731         (tkIntPlatStubsPtr->tkWinXCleanup) /* 28 */
732 #endif
733 #ifndef TkWinXInit
734 #define TkWinXInit \
735         (tkIntPlatStubsPtr->tkWinXInit) /* 29 */
736 #endif
737 #ifndef TkWinSetForegroundWindow
738 #define TkWinSetForegroundWindow \
739         (tkIntPlatStubsPtr->tkWinSetForegroundWindow) /* 30 */
740 #endif
741 #ifndef TkWinDialogDebug
742 #define TkWinDialogDebug \
743         (tkIntPlatStubsPtr->tkWinDialogDebug) /* 31 */
744 #endif
745 #ifndef TkWinGetMenuSystemDefault
746 #define TkWinGetMenuSystemDefault \
747         (tkIntPlatStubsPtr->tkWinGetMenuSystemDefault) /* 32 */
748 #endif
749 #ifndef TkWinGetPlatformId
750 #define TkWinGetPlatformId \
751         (tkIntPlatStubsPtr->tkWinGetPlatformId) /* 33 */
752 #endif
753 #endif /* __WIN32__ */
754 #ifdef MAC_TCL
755 #ifndef TkGenerateActivateEvents
756 #define TkGenerateActivateEvents \
757         (tkIntPlatStubsPtr->tkGenerateActivateEvents) /* 0 */
758 #endif
759 /* Slot 1 is reserved */
760 /* Slot 2 is reserved */
761 #ifndef TkpGetMS
762 #define TkpGetMS \
763         (tkIntPlatStubsPtr->tkpGetMS) /* 3 */
764 #endif
765 /* Slot 4 is reserved */
766 #ifndef TkPointerDeadWindow
767 #define TkPointerDeadWindow \
768         (tkIntPlatStubsPtr->tkPointerDeadWindow) /* 5 */
769 #endif
770 #ifndef TkpSetCapture
771 #define TkpSetCapture \
772         (tkIntPlatStubsPtr->tkpSetCapture) /* 6 */
773 #endif
774 #ifndef TkpSetCursor
775 #define TkpSetCursor \
776         (tkIntPlatStubsPtr->tkpSetCursor) /* 7 */
777 #endif
778 #ifndef TkpWmSetState
779 #define TkpWmSetState \
780         (tkIntPlatStubsPtr->tkpWmSetState) /* 8 */
781 #endif
782 /* Slot 9 is reserved */
783 #ifndef TkAboutDlg
784 #define TkAboutDlg \
785         (tkIntPlatStubsPtr->tkAboutDlg) /* 10 */
786 #endif
787 /* Slot 11 is reserved */
788 /* Slot 12 is reserved */
789 #ifndef TkGetTransientMaster
790 #define TkGetTransientMaster \
791         (tkIntPlatStubsPtr->tkGetTransientMaster) /* 13 */
792 #endif
793 #ifndef TkGenerateButtonEvent
794 #define TkGenerateButtonEvent \
795         (tkIntPlatStubsPtr->tkGenerateButtonEvent) /* 14 */
796 #endif
797 /* Slot 15 is reserved */
798 #ifndef TkGenWMDestroyEvent
799 #define TkGenWMDestroyEvent \
800         (tkIntPlatStubsPtr->tkGenWMDestroyEvent) /* 16 */
801 #endif
802 /* Slot 17 is reserved */
803 #ifndef TkMacButtonKeyState
804 #define TkMacButtonKeyState \
805         (tkIntPlatStubsPtr->tkMacButtonKeyState) /* 18 */
806 #endif
807 #ifndef TkMacClearMenubarActive
808 #define TkMacClearMenubarActive \
809         (tkIntPlatStubsPtr->tkMacClearMenubarActive) /* 19 */
810 #endif
811 /* Slot 20 is reserved */
812 #ifndef TkMacDispatchMenuEvent
813 #define TkMacDispatchMenuEvent \
814         (tkIntPlatStubsPtr->tkMacDispatchMenuEvent) /* 21 */
815 #endif
816 #ifndef TkMacInstallCursor
817 #define TkMacInstallCursor \
818         (tkIntPlatStubsPtr->tkMacInstallCursor) /* 22 */
819 #endif
820 /* Slot 23 is reserved */
821 #ifndef TkMacHandleTearoffMenu
822 #define TkMacHandleTearoffMenu \
823         (tkIntPlatStubsPtr->tkMacHandleTearoffMenu) /* 24 */
824 #endif
825 /* Slot 25 is reserved */
826 /* Slot 26 is reserved */
827 #ifndef TkMacDoHLEvent
828 #define TkMacDoHLEvent \
829         (tkIntPlatStubsPtr->tkMacDoHLEvent) /* 27 */
830 #endif
831 /* Slot 28 is reserved */
832 #ifndef TkMacGenerateTime
833 #define TkMacGenerateTime \
834         (tkIntPlatStubsPtr->tkMacGenerateTime) /* 29 */
835 #endif
836 /* Slot 30 is reserved */
837 #ifndef TkMacGetScrollbarGrowWindow
838 #define TkMacGetScrollbarGrowWindow \
839         (tkIntPlatStubsPtr->tkMacGetScrollbarGrowWindow) /* 31 */
840 #endif
841 #ifndef TkMacGetXWindow
842 #define TkMacGetXWindow \
843         (tkIntPlatStubsPtr->tkMacGetXWindow) /* 32 */
844 #endif
845 #ifndef TkMacGrowToplevel
846 #define TkMacGrowToplevel \
847         (tkIntPlatStubsPtr->tkMacGrowToplevel) /* 33 */
848 #endif
849 #ifndef TkMacHandleMenuSelect
850 #define TkMacHandleMenuSelect \
851         (tkIntPlatStubsPtr->tkMacHandleMenuSelect) /* 34 */
852 #endif
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 */
859 #endif
860 #ifndef TkMacIsCharacterMissing
861 #define TkMacIsCharacterMissing \
862         (tkIntPlatStubsPtr->tkMacIsCharacterMissing) /* 39 */
863 #endif
864 #ifndef TkMacMakeRealWindowExist
865 #define TkMacMakeRealWindowExist \
866         (tkIntPlatStubsPtr->tkMacMakeRealWindowExist) /* 40 */
867 #endif
868 #ifndef TkMacMakeStippleMap
869 #define TkMacMakeStippleMap \
870         (tkIntPlatStubsPtr->tkMacMakeStippleMap) /* 41 */
871 #endif
872 #ifndef TkMacMenuClick
873 #define TkMacMenuClick \
874         (tkIntPlatStubsPtr->tkMacMenuClick) /* 42 */
875 #endif
876 #ifndef TkMacRegisterOffScreenWindow
877 #define TkMacRegisterOffScreenWindow \
878         (tkIntPlatStubsPtr->tkMacRegisterOffScreenWindow) /* 43 */
879 #endif
880 #ifndef TkMacResizable
881 #define TkMacResizable \
882         (tkIntPlatStubsPtr->tkMacResizable) /* 44 */
883 #endif
884 /* Slot 45 is reserved */
885 #ifndef TkMacSetHelpMenuItemCount
886 #define TkMacSetHelpMenuItemCount \
887         (tkIntPlatStubsPtr->tkMacSetHelpMenuItemCount) /* 46 */
888 #endif
889 #ifndef TkMacSetScrollbarGrow
890 #define TkMacSetScrollbarGrow \
891         (tkIntPlatStubsPtr->tkMacSetScrollbarGrow) /* 47 */
892 #endif
893 #ifndef TkMacSetUpClippingRgn
894 #define TkMacSetUpClippingRgn \
895         (tkIntPlatStubsPtr->tkMacSetUpClippingRgn) /* 48 */
896 #endif
897 #ifndef TkMacSetUpGraphicsPort
898 #define TkMacSetUpGraphicsPort \
899         (tkIntPlatStubsPtr->tkMacSetUpGraphicsPort) /* 49 */
900 #endif
901 #ifndef TkMacUpdateClipRgn
902 #define TkMacUpdateClipRgn \
903         (tkIntPlatStubsPtr->tkMacUpdateClipRgn) /* 50 */
904 #endif
905 #ifndef TkMacUnregisterMacWindow
906 #define TkMacUnregisterMacWindow \
907         (tkIntPlatStubsPtr->tkMacUnregisterMacWindow) /* 51 */
908 #endif
909 #ifndef TkMacUseMenuID
910 #define TkMacUseMenuID \
911         (tkIntPlatStubsPtr->tkMacUseMenuID) /* 52 */
912 #endif
913 #ifndef TkMacVisableClipRgn
914 #define TkMacVisableClipRgn \
915         (tkIntPlatStubsPtr->tkMacVisableClipRgn) /* 53 */
916 #endif
917 #ifndef TkMacWinBounds
918 #define TkMacWinBounds \
919         (tkIntPlatStubsPtr->tkMacWinBounds) /* 54 */
920 #endif
921 #ifndef TkMacWindowOffset
922 #define TkMacWindowOffset \
923         (tkIntPlatStubsPtr->tkMacWindowOffset) /* 55 */
924 #endif
925 /* Slot 56 is reserved */
926 #ifndef TkSetMacColor
927 #define TkSetMacColor \
928         (tkIntPlatStubsPtr->tkSetMacColor) /* 57 */
929 #endif
930 #ifndef TkSetWMName
931 #define TkSetWMName \
932         (tkIntPlatStubsPtr->tkSetWMName) /* 58 */
933 #endif
934 #ifndef TkSuspendClipboard
935 #define TkSuspendClipboard \
936         (tkIntPlatStubsPtr->tkSuspendClipboard) /* 59 */
937 #endif
938 /* Slot 60 is reserved */
939 #ifndef TkMacZoomToplevel
940 #define TkMacZoomToplevel \
941         (tkIntPlatStubsPtr->tkMacZoomToplevel) /* 61 */
942 #endif
943 #ifndef Tk_TopCoordsToWindow
944 #define Tk_TopCoordsToWindow \
945         (tkIntPlatStubsPtr->tk_TopCoordsToWindow) /* 62 */
946 #endif
947 #ifndef TkMacContainerId
948 #define TkMacContainerId \
949         (tkIntPlatStubsPtr->tkMacContainerId) /* 63 */
950 #endif
951 #ifndef TkMacGetHostToplevel
952 #define TkMacGetHostToplevel \
953         (tkIntPlatStubsPtr->tkMacGetHostToplevel) /* 64 */
954 #endif
955 #ifndef TkMacPreprocessMenu
956 #define TkMacPreprocessMenu \
957         (tkIntPlatStubsPtr->tkMacPreprocessMenu) /* 65 */
958 #endif
959 #ifndef TkpIsWindowFloating
960 #define TkpIsWindowFloating \
961         (tkIntPlatStubsPtr->tkpIsWindowFloating) /* 66 */
962 #endif
963 #endif /* MAC_TCL */
964 #ifdef MAC_OSX_TK
965 #ifndef TkGenerateActivateEvents
966 #define TkGenerateActivateEvents \
967         (tkIntPlatStubsPtr->tkGenerateActivateEvents) /* 0 */
968 #endif
969 /* Slot 1 is reserved */
970 /* Slot 2 is reserved */
971 #ifndef TkPointerDeadWindow
972 #define TkPointerDeadWindow \
973         (tkIntPlatStubsPtr->tkPointerDeadWindow) /* 3 */
974 #endif
975 #ifndef TkpSetCapture
976 #define TkpSetCapture \
977         (tkIntPlatStubsPtr->tkpSetCapture) /* 4 */
978 #endif
979 #ifndef TkpSetCursor
980 #define TkpSetCursor \
981         (tkIntPlatStubsPtr->tkpSetCursor) /* 5 */
982 #endif
983 #ifndef TkpWmSetState
984 #define TkpWmSetState \
985         (tkIntPlatStubsPtr->tkpWmSetState) /* 6 */
986 #endif
987 #ifndef TkAboutDlg
988 #define TkAboutDlg \
989         (tkIntPlatStubsPtr->tkAboutDlg) /* 7 */
990 #endif
991 #ifndef TkMacOSXButtonKeyState
992 #define TkMacOSXButtonKeyState \
993         (tkIntPlatStubsPtr->tkMacOSXButtonKeyState) /* 8 */
994 #endif
995 #ifndef TkMacOSXClearMenubarActive
996 #define TkMacOSXClearMenubarActive \
997         (tkIntPlatStubsPtr->tkMacOSXClearMenubarActive) /* 9 */
998 #endif
999 #ifndef TkMacOSXDispatchMenuEvent
1000 #define TkMacOSXDispatchMenuEvent \
1001         (tkIntPlatStubsPtr->tkMacOSXDispatchMenuEvent) /* 10 */
1002 #endif
1003 #ifndef TkMacOSXInstallCursor
1004 #define TkMacOSXInstallCursor \
1005         (tkIntPlatStubsPtr->tkMacOSXInstallCursor) /* 11 */
1006 #endif
1007 #ifndef TkMacOSXHandleTearoffMenu
1008 #define TkMacOSXHandleTearoffMenu \
1009         (tkIntPlatStubsPtr->tkMacOSXHandleTearoffMenu) /* 12 */
1010 #endif
1011 /* Slot 13 is reserved */
1012 #ifndef TkMacOSXDoHLEvent
1013 #define TkMacOSXDoHLEvent \
1014         (tkIntPlatStubsPtr->tkMacOSXDoHLEvent) /* 14 */
1015 #endif
1016 /* Slot 15 is reserved */
1017 #ifndef TkMacOSXGetXWindow
1018 #define TkMacOSXGetXWindow \
1019         (tkIntPlatStubsPtr->tkMacOSXGetXWindow) /* 16 */
1020 #endif
1021 #ifndef TkMacOSXGrowToplevel
1022 #define TkMacOSXGrowToplevel \
1023         (tkIntPlatStubsPtr->tkMacOSXGrowToplevel) /* 17 */
1024 #endif
1025 #ifndef TkMacOSXHandleMenuSelect
1026 #define TkMacOSXHandleMenuSelect \
1027         (tkIntPlatStubsPtr->tkMacOSXHandleMenuSelect) /* 18 */
1028 #endif
1029 /* Slot 19 is reserved */
1030 /* Slot 20 is reserved */
1031 #ifndef TkMacOSXInvalidateWindow
1032 #define TkMacOSXInvalidateWindow \
1033         (tkIntPlatStubsPtr->tkMacOSXInvalidateWindow) /* 21 */
1034 #endif
1035 #ifndef TkMacOSXIsCharacterMissing
1036 #define TkMacOSXIsCharacterMissing \
1037         (tkIntPlatStubsPtr->tkMacOSXIsCharacterMissing) /* 22 */
1038 #endif
1039 #ifndef TkMacOSXMakeRealWindowExist
1040 #define TkMacOSXMakeRealWindowExist \
1041         (tkIntPlatStubsPtr->tkMacOSXMakeRealWindowExist) /* 23 */
1042 #endif
1043 #ifndef TkMacOSXMakeStippleMap
1044 #define TkMacOSXMakeStippleMap \
1045         (tkIntPlatStubsPtr->tkMacOSXMakeStippleMap) /* 24 */
1046 #endif
1047 #ifndef TkMacOSXMenuClick
1048 #define TkMacOSXMenuClick \
1049         (tkIntPlatStubsPtr->tkMacOSXMenuClick) /* 25 */
1050 #endif
1051 #ifndef TkMacOSXRegisterOffScreenWindow
1052 #define TkMacOSXRegisterOffScreenWindow \
1053         (tkIntPlatStubsPtr->tkMacOSXRegisterOffScreenWindow) /* 26 */
1054 #endif
1055 #ifndef TkMacOSXResizable
1056 #define TkMacOSXResizable \
1057         (tkIntPlatStubsPtr->tkMacOSXResizable) /* 27 */
1058 #endif
1059 #ifndef TkMacOSXSetHelpMenuItemCount
1060 #define TkMacOSXSetHelpMenuItemCount \
1061         (tkIntPlatStubsPtr->tkMacOSXSetHelpMenuItemCount) /* 28 */
1062 #endif
1063 #ifndef TkMacOSXSetScrollbarGrow
1064 #define TkMacOSXSetScrollbarGrow \
1065         (tkIntPlatStubsPtr->tkMacOSXSetScrollbarGrow) /* 29 */
1066 #endif
1067 #ifndef TkMacOSXSetUpClippingRgn
1068 #define TkMacOSXSetUpClippingRgn \
1069         (tkIntPlatStubsPtr->tkMacOSXSetUpClippingRgn) /* 30 */
1070 #endif
1071 #ifndef TkMacOSXSetUpGraphicsPort
1072 #define TkMacOSXSetUpGraphicsPort \
1073         (tkIntPlatStubsPtr->tkMacOSXSetUpGraphicsPort) /* 31 */
1074 #endif
1075 #ifndef TkMacOSXUpdateClipRgn
1076 #define TkMacOSXUpdateClipRgn \
1077         (tkIntPlatStubsPtr->tkMacOSXUpdateClipRgn) /* 32 */
1078 #endif
1079 #ifndef TkMacOSXUnregisterMacWindow
1080 #define TkMacOSXUnregisterMacWindow \
1081         (tkIntPlatStubsPtr->tkMacOSXUnregisterMacWindow) /* 33 */
1082 #endif
1083 #ifndef TkMacOSXUseMenuID
1084 #define TkMacOSXUseMenuID \
1085         (tkIntPlatStubsPtr->tkMacOSXUseMenuID) /* 34 */
1086 #endif
1087 #ifndef TkMacOSXVisableClipRgn
1088 #define TkMacOSXVisableClipRgn \
1089         (tkIntPlatStubsPtr->tkMacOSXVisableClipRgn) /* 35 */
1090 #endif
1091 #ifndef TkMacOSXWinBounds
1092 #define TkMacOSXWinBounds \
1093         (tkIntPlatStubsPtr->tkMacOSXWinBounds) /* 36 */
1094 #endif
1095 #ifndef TkMacOSXWindowOffset
1096 #define TkMacOSXWindowOffset \
1097         (tkIntPlatStubsPtr->tkMacOSXWindowOffset) /* 37 */
1098 #endif
1099 #ifndef TkSetMacColor
1100 #define TkSetMacColor \
1101         (tkIntPlatStubsPtr->tkSetMacColor) /* 38 */
1102 #endif
1103 #ifndef TkSetWMName
1104 #define TkSetWMName \
1105         (tkIntPlatStubsPtr->tkSetWMName) /* 39 */
1106 #endif
1107 #ifndef TkSuspendClipboard
1108 #define TkSuspendClipboard \
1109         (tkIntPlatStubsPtr->tkSuspendClipboard) /* 40 */
1110 #endif
1111 #ifndef TkMacOSXZoomToplevel
1112 #define TkMacOSXZoomToplevel \
1113         (tkIntPlatStubsPtr->tkMacOSXZoomToplevel) /* 41 */
1114 #endif
1115 #ifndef Tk_TopCoordsToWindow
1116 #define Tk_TopCoordsToWindow \
1117         (tkIntPlatStubsPtr->tk_TopCoordsToWindow) /* 42 */
1118 #endif
1119 #ifndef TkMacOSXContainerId
1120 #define TkMacOSXContainerId \
1121         (tkIntPlatStubsPtr->tkMacOSXContainerId) /* 43 */
1122 #endif
1123 #ifndef TkMacOSXGetHostToplevel
1124 #define TkMacOSXGetHostToplevel \
1125         (tkIntPlatStubsPtr->tkMacOSXGetHostToplevel) /* 44 */
1126 #endif
1127 #ifndef TkMacOSXPreprocessMenu
1128 #define TkMacOSXPreprocessMenu \
1129         (tkIntPlatStubsPtr->tkMacOSXPreprocessMenu) /* 45 */
1130 #endif
1131 #ifndef TkpIsWindowFloating
1132 #define TkpIsWindowFloating \
1133         (tkIntPlatStubsPtr->tkpIsWindowFloating) /* 46 */
1134 #endif
1135 #ifndef TkMacOSXGetCapture
1136 #define TkMacOSXGetCapture \
1137         (tkIntPlatStubsPtr->tkMacOSXGetCapture) /* 47 */
1138 #endif
1139 /* Slot 48 is reserved */
1140 #ifndef TkGetTransientMaster
1141 #define TkGetTransientMaster \
1142         (tkIntPlatStubsPtr->tkGetTransientMaster) /* 49 */
1143 #endif
1144 #ifndef TkGenerateButtonEvent
1145 #define TkGenerateButtonEvent \
1146         (tkIntPlatStubsPtr->tkGenerateButtonEvent) /* 50 */
1147 #endif
1148 #ifndef TkGenWMDestroyEvent
1149 #define TkGenWMDestroyEvent \
1150         (tkIntPlatStubsPtr->tkGenWMDestroyEvent) /* 51 */
1151 #endif
1152 /* Slot 52 is reserved */
1153 #ifndef TkpGetMS
1154 #define TkpGetMS \
1155         (tkIntPlatStubsPtr->tkpGetMS) /* 53 */
1156 #endif
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 */
1162 #endif
1163 #ifndef TkFreeWindowId
1164 #define TkFreeWindowId \
1165         (tkIntPlatStubsPtr->tkFreeWindowId) /* 1 */
1166 #endif
1167 #ifndef TkInitXId
1168 #define TkInitXId \
1169         (tkIntPlatStubsPtr->tkInitXId) /* 2 */
1170 #endif
1171 #ifndef TkpCmapStressed
1172 #define TkpCmapStressed \
1173         (tkIntPlatStubsPtr->tkpCmapStressed) /* 3 */
1174 #endif
1175 #ifndef TkpSync
1176 #define TkpSync \
1177         (tkIntPlatStubsPtr->tkpSync) /* 4 */
1178 #endif
1179 #ifndef TkUnixContainerId
1180 #define TkUnixContainerId \
1181         (tkIntPlatStubsPtr->tkUnixContainerId) /* 5 */
1182 #endif
1183 #ifndef TkUnixDoOneXEvent
1184 #define TkUnixDoOneXEvent \
1185         (tkIntPlatStubsPtr->tkUnixDoOneXEvent) /* 6 */
1186 #endif
1187 #ifndef TkUnixSetMenubar
1188 #define TkUnixSetMenubar \
1189         (tkIntPlatStubsPtr->tkUnixSetMenubar) /* 7 */
1190 #endif
1191 #ifndef TkpScanWindowId
1192 #define TkpScanWindowId \
1193         (tkIntPlatStubsPtr->tkpScanWindowId) /* 8 */
1194 #endif
1195 #ifndef TkWmCleanup
1196 #define TkWmCleanup \
1197         (tkIntPlatStubsPtr->tkWmCleanup) /* 9 */
1198 #endif
1199 #ifndef TkSendCleanup
1200 #define TkSendCleanup \
1201         (tkIntPlatStubsPtr->tkSendCleanup) /* 10 */
1202 #endif
1203 #ifndef TkFreeXId
1204 #define TkFreeXId \
1205         (tkIntPlatStubsPtr->tkFreeXId) /* 11 */
1206 #endif
1207 #ifndef TkpWmSetState
1208 #define TkpWmSetState \
1209         (tkIntPlatStubsPtr->tkpWmSetState) /* 12 */
1210 #endif
1211 #endif /* X11 */
1212
1213 #endif /* defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) */
1214
1215 /* !END!: Do not edit above this line. */
1216
1217 #undef TCL_STORAGE_CLASS
1218 #define TCL_STORAGE_CLASS DLLIMPORT
1219
1220 #endif /* _TKINTPLATDECLS */