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