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