Debian Codegraph @

pTk/mTk/generic/tkIntPlatDecls.h

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