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.
16 #undef TCL_STORAGE_CLASS
17 #define TCL_STORAGE_CLASS DLLEXPORT
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
36 EXTERN Window
Tk_AttachHWND(Tk_Window tkwin
, HWND hwnd
);
38 #ifndef Tk_GetHINSTANCE_TCL_DECLARED
39 #define Tk_GetHINSTANCE_TCL_DECLARED
41 EXTERN HINSTANCE
Tk_GetHINSTANCE(void);
43 #ifndef Tk_GetHWND_TCL_DECLARED
44 #define Tk_GetHWND_TCL_DECLARED
46 EXTERN HWND
Tk_GetHWND(Window window
);
48 #ifndef Tk_HWNDToWindow_TCL_DECLARED
49 #define Tk_HWNDToWindow_TCL_DECLARED
51 EXTERN Tk_Window
Tk_HWNDToWindow(HWND hwnd
);
53 #ifndef Tk_PointerEvent_TCL_DECLARED
54 #define Tk_PointerEvent_TCL_DECLARED
56 EXTERN
void Tk_PointerEvent(HWND hwnd
, int x
, int y
);
58 #ifndef Tk_TranslateWinEvent_TCL_DECLARED
59 #define Tk_TranslateWinEvent_TCL_DECLARED
61 EXTERN
int Tk_TranslateWinEvent(HWND hwnd
, UINT message
,
62 WPARAM wParam
, LPARAM lParam
,
66 #ifdef MAC_OSX_TK /* AQUA */
67 #ifndef Tk_MacOSXSetEmbedHandler_TCL_DECLARED
68 #define Tk_MacOSXSetEmbedHandler_TCL_DECLARED
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
);
77 #ifndef Tk_MacOSXTurnOffMenus_TCL_DECLARED
78 #define Tk_MacOSXTurnOffMenus_TCL_DECLARED
80 EXTERN
void Tk_MacOSXTurnOffMenus(void);
82 #ifndef Tk_MacOSXTkOwnsCursor_TCL_DECLARED
83 #define Tk_MacOSXTkOwnsCursor_TCL_DECLARED
85 EXTERN
void Tk_MacOSXTkOwnsCursor(int tkOwnsIt
);
87 #ifndef TkMacOSXInitMenus_TCL_DECLARED
88 #define TkMacOSXInitMenus_TCL_DECLARED
90 EXTERN
void TkMacOSXInitMenus(Tcl_Interp
*interp
);
92 #ifndef TkMacOSXInitAppleEvents_TCL_DECLARED
93 #define TkMacOSXInitAppleEvents_TCL_DECLARED
95 EXTERN
void TkMacOSXInitAppleEvents(Tcl_Interp
*interp
);
97 #ifndef TkGenWMConfigureEvent_TCL_DECLARED
98 #define TkGenWMConfigureEvent_TCL_DECLARED
100 EXTERN
void TkGenWMConfigureEvent(Tk_Window tkwin
, int x
, int y
,
101 int width
, int height
, int flags
);
103 #ifndef TkMacOSXInvalClipRgns_TCL_DECLARED
104 #define TkMacOSXInvalClipRgns_TCL_DECLARED
106 EXTERN
void TkMacOSXInvalClipRgns(Tk_Window tkwin
);
108 #ifndef TkMacOSXGetDrawablePort_TCL_DECLARED
109 #define TkMacOSXGetDrawablePort_TCL_DECLARED
111 EXTERN VOID
* TkMacOSXGetDrawablePort(Drawable drawable
);
113 #ifndef TkMacOSXGetRootControl_TCL_DECLARED
114 #define TkMacOSXGetRootControl_TCL_DECLARED
116 EXTERN VOID
* TkMacOSXGetRootControl(Drawable drawable
);
118 #ifndef Tk_MacOSXSetupTkNotifier_TCL_DECLARED
119 #define Tk_MacOSXSetupTkNotifier_TCL_DECLARED
121 EXTERN
void Tk_MacOSXSetupTkNotifier(void);
123 #ifndef Tk_MacOSXIsAppInFront_TCL_DECLARED
124 #define Tk_MacOSXIsAppInFront_TCL_DECLARED
126 EXTERN
int Tk_MacOSXIsAppInFront(void);
130 typedef struct TkPlatStubs
{
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 */
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 */
160 extern TkPlatStubs
*tkPlatStubsPtr
;
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 */
176 #ifndef Tk_GetHINSTANCE
177 #define Tk_GetHINSTANCE \
178 (tkPlatStubsPtr->tk_GetHINSTANCE) /* 1 */
182 (tkPlatStubsPtr->tk_GetHWND) /* 2 */
184 #ifndef Tk_HWNDToWindow
185 #define Tk_HWNDToWindow \
186 (tkPlatStubsPtr->tk_HWNDToWindow) /* 3 */
188 #ifndef Tk_PointerEvent
189 #define Tk_PointerEvent \
190 (tkPlatStubsPtr->tk_PointerEvent) /* 4 */
192 #ifndef Tk_TranslateWinEvent
193 #define Tk_TranslateWinEvent \
194 (tkPlatStubsPtr->tk_TranslateWinEvent) /* 5 */
197 #ifdef MAC_OSX_TK /* AQUA */
198 #ifndef Tk_MacOSXSetEmbedHandler
199 #define Tk_MacOSXSetEmbedHandler \
200 (tkPlatStubsPtr->tk_MacOSXSetEmbedHandler) /* 0 */
202 #ifndef Tk_MacOSXTurnOffMenus
203 #define Tk_MacOSXTurnOffMenus \
204 (tkPlatStubsPtr->tk_MacOSXTurnOffMenus) /* 1 */
206 #ifndef Tk_MacOSXTkOwnsCursor
207 #define Tk_MacOSXTkOwnsCursor \
208 (tkPlatStubsPtr->tk_MacOSXTkOwnsCursor) /* 2 */
210 #ifndef TkMacOSXInitMenus
211 #define TkMacOSXInitMenus \
212 (tkPlatStubsPtr->tkMacOSXInitMenus) /* 3 */
214 #ifndef TkMacOSXInitAppleEvents
215 #define TkMacOSXInitAppleEvents \
216 (tkPlatStubsPtr->tkMacOSXInitAppleEvents) /* 4 */
218 #ifndef TkGenWMConfigureEvent
219 #define TkGenWMConfigureEvent \
220 (tkPlatStubsPtr->tkGenWMConfigureEvent) /* 5 */
222 #ifndef TkMacOSXInvalClipRgns
223 #define TkMacOSXInvalClipRgns \
224 (tkPlatStubsPtr->tkMacOSXInvalClipRgns) /* 6 */
226 #ifndef TkMacOSXGetDrawablePort
227 #define TkMacOSXGetDrawablePort \
228 (tkPlatStubsPtr->tkMacOSXGetDrawablePort) /* 7 */
230 #ifndef TkMacOSXGetRootControl
231 #define TkMacOSXGetRootControl \
232 (tkPlatStubsPtr->tkMacOSXGetRootControl) /* 8 */
234 #ifndef Tk_MacOSXSetupTkNotifier
235 #define Tk_MacOSXSetupTkNotifier \
236 (tkPlatStubsPtr->tk_MacOSXSetupTkNotifier) /* 9 */
238 #ifndef Tk_MacOSXIsAppInFront
239 #define Tk_MacOSXIsAppInFront \
240 (tkPlatStubsPtr->tk_MacOSXIsAppInFront) /* 10 */
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 */