Install OpenSSL 0.9.8y header files
[msysgit.git] / mingw / include / tkPlatDecls.h
blob549ae30a7382b3ea81946d36d6e36bca289ba930
1 /*
2 * tkPlatDecls.h --
4 * Declarations of functions in the platform-specific public Tcl API.
6 * Copyright (c) 1998-1999 by Scriptics Corporation.
8 * See the file "license.terms" for information on usage and redistribution
9 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
12 #ifndef _TKPLATDECLS
13 #define _TKPLATDECLS
15 #ifdef BUILD_tk
16 #undef TCL_STORAGE_CLASS
17 #define TCL_STORAGE_CLASS DLLEXPORT
18 #endif
21 * WARNING: This file is automatically generated by the tools/genStubs.tcl
22 * script. Any modifications to the function declarations below should be made
23 * in the generic/tk.decls script.
26 /* !BEGIN!: Do not edit below this line. */
29 * Exported function declarations:
32 #if defined(__WIN32__) || defined(__CYGWIN__) /* WIN */
33 #ifndef Tk_AttachHWND_TCL_DECLARED
34 #define Tk_AttachHWND_TCL_DECLARED
35 /* 0 */
36 EXTERN Window Tk_AttachHWND(Tk_Window tkwin, HWND hwnd);
37 #endif
38 #ifndef Tk_GetHINSTANCE_TCL_DECLARED
39 #define Tk_GetHINSTANCE_TCL_DECLARED
40 /* 1 */
41 EXTERN HINSTANCE Tk_GetHINSTANCE(void);
42 #endif
43 #ifndef Tk_GetHWND_TCL_DECLARED
44 #define Tk_GetHWND_TCL_DECLARED
45 /* 2 */
46 EXTERN HWND Tk_GetHWND(Window window);
47 #endif
48 #ifndef Tk_HWNDToWindow_TCL_DECLARED
49 #define Tk_HWNDToWindow_TCL_DECLARED
50 /* 3 */
51 EXTERN Tk_Window Tk_HWNDToWindow(HWND hwnd);
52 #endif
53 #ifndef Tk_PointerEvent_TCL_DECLARED
54 #define Tk_PointerEvent_TCL_DECLARED
55 /* 4 */
56 EXTERN void Tk_PointerEvent(HWND hwnd, int x, int y);
57 #endif
58 #ifndef Tk_TranslateWinEvent_TCL_DECLARED
59 #define Tk_TranslateWinEvent_TCL_DECLARED
60 /* 5 */
61 EXTERN int Tk_TranslateWinEvent(HWND hwnd, UINT message,
62 WPARAM wParam, LPARAM lParam,
63 LRESULT *result);
64 #endif
65 #endif /* WIN */
66 #ifdef MAC_OSX_TK /* AQUA */
67 #ifndef Tk_MacOSXSetEmbedHandler_TCL_DECLARED
68 #define Tk_MacOSXSetEmbedHandler_TCL_DECLARED
69 /* 0 */
70 EXTERN void Tk_MacOSXSetEmbedHandler(
71 Tk_MacOSXEmbedRegisterWinProc *registerWinProcPtr,
72 Tk_MacOSXEmbedGetGrafPortProc *getPortProcPtr,
73 Tk_MacOSXEmbedMakeContainerExistProc *containerExistProcPtr,
74 Tk_MacOSXEmbedGetClipProc *getClipProc,
75 Tk_MacOSXEmbedGetOffsetInParentProc *getOffsetProc);
76 #endif
77 #ifndef Tk_MacOSXTurnOffMenus_TCL_DECLARED
78 #define Tk_MacOSXTurnOffMenus_TCL_DECLARED
79 /* 1 */
80 EXTERN void Tk_MacOSXTurnOffMenus(void);
81 #endif
82 #ifndef Tk_MacOSXTkOwnsCursor_TCL_DECLARED
83 #define Tk_MacOSXTkOwnsCursor_TCL_DECLARED
84 /* 2 */
85 EXTERN void Tk_MacOSXTkOwnsCursor(int tkOwnsIt);
86 #endif
87 #ifndef TkMacOSXInitMenus_TCL_DECLARED
88 #define TkMacOSXInitMenus_TCL_DECLARED
89 /* 3 */
90 EXTERN void TkMacOSXInitMenus(Tcl_Interp *interp);
91 #endif
92 #ifndef TkMacOSXInitAppleEvents_TCL_DECLARED
93 #define TkMacOSXInitAppleEvents_TCL_DECLARED
94 /* 4 */
95 EXTERN void TkMacOSXInitAppleEvents(Tcl_Interp *interp);
96 #endif
97 #ifndef TkGenWMConfigureEvent_TCL_DECLARED
98 #define TkGenWMConfigureEvent_TCL_DECLARED
99 /* 5 */
100 EXTERN void TkGenWMConfigureEvent(Tk_Window tkwin, int x, int y,
101 int width, int height, int flags);
102 #endif
103 #ifndef TkMacOSXInvalClipRgns_TCL_DECLARED
104 #define TkMacOSXInvalClipRgns_TCL_DECLARED
105 /* 6 */
106 EXTERN void TkMacOSXInvalClipRgns(Tk_Window tkwin);
107 #endif
108 #ifndef TkMacOSXGetDrawablePort_TCL_DECLARED
109 #define TkMacOSXGetDrawablePort_TCL_DECLARED
110 /* 7 */
111 EXTERN VOID * TkMacOSXGetDrawablePort(Drawable drawable);
112 #endif
113 #ifndef TkMacOSXGetRootControl_TCL_DECLARED
114 #define TkMacOSXGetRootControl_TCL_DECLARED
115 /* 8 */
116 EXTERN VOID * TkMacOSXGetRootControl(Drawable drawable);
117 #endif
118 #ifndef Tk_MacOSXSetupTkNotifier_TCL_DECLARED
119 #define Tk_MacOSXSetupTkNotifier_TCL_DECLARED
120 /* 9 */
121 EXTERN void Tk_MacOSXSetupTkNotifier(void);
122 #endif
123 #ifndef Tk_MacOSXIsAppInFront_TCL_DECLARED
124 #define Tk_MacOSXIsAppInFront_TCL_DECLARED
125 /* 10 */
126 EXTERN int Tk_MacOSXIsAppInFront(void);
127 #endif
128 #endif /* AQUA */
130 typedef struct TkPlatStubs {
131 int magic;
132 struct TkPlatStubHooks *hooks;
134 #if defined(__WIN32__) || defined(__CYGWIN__) /* WIN */
135 Window (*tk_AttachHWND) (Tk_Window tkwin, HWND hwnd); /* 0 */
136 HINSTANCE (*tk_GetHINSTANCE) (void); /* 1 */
137 HWND (*tk_GetHWND) (Window window); /* 2 */
138 Tk_Window (*tk_HWNDToWindow) (HWND hwnd); /* 3 */
139 void (*tk_PointerEvent) (HWND hwnd, int x, int y); /* 4 */
140 int (*tk_TranslateWinEvent) (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *result); /* 5 */
141 #endif /* WIN */
142 #ifdef MAC_OSX_TK /* AQUA */
143 void (*tk_MacOSXSetEmbedHandler) (Tk_MacOSXEmbedRegisterWinProc *registerWinProcPtr, Tk_MacOSXEmbedGetGrafPortProc *getPortProcPtr, Tk_MacOSXEmbedMakeContainerExistProc *containerExistProcPtr, Tk_MacOSXEmbedGetClipProc *getClipProc, Tk_MacOSXEmbedGetOffsetInParentProc *getOffsetProc); /* 0 */
144 void (*tk_MacOSXTurnOffMenus) (void); /* 1 */
145 void (*tk_MacOSXTkOwnsCursor) (int tkOwnsIt); /* 2 */
146 void (*tkMacOSXInitMenus) (Tcl_Interp *interp); /* 3 */
147 void (*tkMacOSXInitAppleEvents) (Tcl_Interp *interp); /* 4 */
148 void (*tkGenWMConfigureEvent) (Tk_Window tkwin, int x, int y, int width, int height, int flags); /* 5 */
149 void (*tkMacOSXInvalClipRgns) (Tk_Window tkwin); /* 6 */
150 VOID * (*tkMacOSXGetDrawablePort) (Drawable drawable); /* 7 */
151 VOID * (*tkMacOSXGetRootControl) (Drawable drawable); /* 8 */
152 void (*tk_MacOSXSetupTkNotifier) (void); /* 9 */
153 int (*tk_MacOSXIsAppInFront) (void); /* 10 */
154 #endif /* AQUA */
155 } TkPlatStubs;
157 #ifdef __cplusplus
158 extern "C" {
159 #endif
160 extern TkPlatStubs *tkPlatStubsPtr;
161 #ifdef __cplusplus
163 #endif
165 #if defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS)
168 * Inline function declarations:
171 #if defined(__WIN32__) || defined(__CYGWIN__) /* WIN */
172 #ifndef Tk_AttachHWND
173 #define Tk_AttachHWND \
174 (tkPlatStubsPtr->tk_AttachHWND) /* 0 */
175 #endif
176 #ifndef Tk_GetHINSTANCE
177 #define Tk_GetHINSTANCE \
178 (tkPlatStubsPtr->tk_GetHINSTANCE) /* 1 */
179 #endif
180 #ifndef Tk_GetHWND
181 #define Tk_GetHWND \
182 (tkPlatStubsPtr->tk_GetHWND) /* 2 */
183 #endif
184 #ifndef Tk_HWNDToWindow
185 #define Tk_HWNDToWindow \
186 (tkPlatStubsPtr->tk_HWNDToWindow) /* 3 */
187 #endif
188 #ifndef Tk_PointerEvent
189 #define Tk_PointerEvent \
190 (tkPlatStubsPtr->tk_PointerEvent) /* 4 */
191 #endif
192 #ifndef Tk_TranslateWinEvent
193 #define Tk_TranslateWinEvent \
194 (tkPlatStubsPtr->tk_TranslateWinEvent) /* 5 */
195 #endif
196 #endif /* WIN */
197 #ifdef MAC_OSX_TK /* AQUA */
198 #ifndef Tk_MacOSXSetEmbedHandler
199 #define Tk_MacOSXSetEmbedHandler \
200 (tkPlatStubsPtr->tk_MacOSXSetEmbedHandler) /* 0 */
201 #endif
202 #ifndef Tk_MacOSXTurnOffMenus
203 #define Tk_MacOSXTurnOffMenus \
204 (tkPlatStubsPtr->tk_MacOSXTurnOffMenus) /* 1 */
205 #endif
206 #ifndef Tk_MacOSXTkOwnsCursor
207 #define Tk_MacOSXTkOwnsCursor \
208 (tkPlatStubsPtr->tk_MacOSXTkOwnsCursor) /* 2 */
209 #endif
210 #ifndef TkMacOSXInitMenus
211 #define TkMacOSXInitMenus \
212 (tkPlatStubsPtr->tkMacOSXInitMenus) /* 3 */
213 #endif
214 #ifndef TkMacOSXInitAppleEvents
215 #define TkMacOSXInitAppleEvents \
216 (tkPlatStubsPtr->tkMacOSXInitAppleEvents) /* 4 */
217 #endif
218 #ifndef TkGenWMConfigureEvent
219 #define TkGenWMConfigureEvent \
220 (tkPlatStubsPtr->tkGenWMConfigureEvent) /* 5 */
221 #endif
222 #ifndef TkMacOSXInvalClipRgns
223 #define TkMacOSXInvalClipRgns \
224 (tkPlatStubsPtr->tkMacOSXInvalClipRgns) /* 6 */
225 #endif
226 #ifndef TkMacOSXGetDrawablePort
227 #define TkMacOSXGetDrawablePort \
228 (tkPlatStubsPtr->tkMacOSXGetDrawablePort) /* 7 */
229 #endif
230 #ifndef TkMacOSXGetRootControl
231 #define TkMacOSXGetRootControl \
232 (tkPlatStubsPtr->tkMacOSXGetRootControl) /* 8 */
233 #endif
234 #ifndef Tk_MacOSXSetupTkNotifier
235 #define Tk_MacOSXSetupTkNotifier \
236 (tkPlatStubsPtr->tk_MacOSXSetupTkNotifier) /* 9 */
237 #endif
238 #ifndef Tk_MacOSXIsAppInFront
239 #define Tk_MacOSXIsAppInFront \
240 (tkPlatStubsPtr->tk_MacOSXIsAppInFront) /* 10 */
241 #endif
242 #endif /* AQUA */
244 #endif /* defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) */
246 /* !END!: Do not edit above this line. */
248 #undef TCL_STORAGE_CLASS
249 #define TCL_STORAGE_CLASS DLLIMPORT
251 #endif /* _TKPLATDECLS */