tkPlatDecls.h

Go to the documentation of this file.
00001 /*
00002  * tkPlatDecls.h --
00003  *
00004  *      Declarations of functions in the platform-specific public Tcl API.
00005  *
00006  * Copyright (c) 1998-1999 by Scriptics Corporation.
00007  *
00008  * See the file "license.terms" for information on usage and redistribution
00009  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
00010  *
00011  * RCS: @(#) $Id: tkPlatDecls.h,v 14.1 2004/11/16 19:42:10 morrison Exp $
00012  */
00013 
00014 #ifndef _TKPLATDECLS
00015 #define _TKPLATDECLS
00016 
00017 #ifdef BUILD_tk
00018 #undef TCL_STORAGE_CLASS
00019 #define TCL_STORAGE_CLASS DLLEXPORT
00020 #endif
00021 
00022 /*
00023  * WARNING: This file is automatically generated by the tools/genStubs.tcl
00024  * script.  Any modifications to the function declarations below should be made
00025  * in the generic/tk.decls script.
00026  */
00027 
00028 /* !BEGIN!: Do not edit below this line. */
00029 
00030 /*
00031  * Exported function declarations:
00032  */
00033 
00034 #ifdef __WIN32__
00035 /* 0 */
00036 EXTERN Window           Tk_AttachHWND _ANSI_ARGS_((Tk_Window tkwin, 
00037                                 HWND hwnd));
00038 /* 1 */
00039 EXTERN HINSTANCE        Tk_GetHINSTANCE _ANSI_ARGS_((void));
00040 /* 2 */
00041 EXTERN HWND             Tk_GetHWND _ANSI_ARGS_((Window window));
00042 /* 3 */
00043 EXTERN Tk_Window        Tk_HWNDToWindow _ANSI_ARGS_((HWND hwnd));
00044 /* 4 */
00045 EXTERN void             Tk_PointerEvent _ANSI_ARGS_((HWND hwnd, int x, int y));
00046 /* 5 */
00047 EXTERN int              Tk_TranslateWinEvent _ANSI_ARGS_((HWND hwnd, 
00048                                 UINT message, WPARAM wParam, LPARAM lParam, 
00049                                 LRESULT * result));
00050 #endif /* __WIN32__ */
00051 #ifdef MAC_TCL
00052 /* 0 */
00053 EXTERN void             Tk_MacSetEmbedHandler _ANSI_ARGS_((
00054                                 Tk_MacEmbedRegisterWinProc * registerWinProcPtr, 
00055                                 Tk_MacEmbedGetGrafPortProc * getPortProcPtr, 
00056                                 Tk_MacEmbedMakeContainerExistProc * containerExistProcPtr, 
00057                                 Tk_MacEmbedGetClipProc * getClipProc, 
00058                                 Tk_MacEmbedGetOffsetInParentProc * getOffsetProc));
00059 /* 1 */
00060 EXTERN void             Tk_MacTurnOffMenus _ANSI_ARGS_((void));
00061 /* 2 */
00062 EXTERN void             Tk_MacTkOwnsCursor _ANSI_ARGS_((int tkOwnsIt));
00063 /* 3 */
00064 EXTERN void             TkMacInitMenus _ANSI_ARGS_((Tcl_Interp * interp));
00065 /* 4 */
00066 EXTERN void             TkMacInitAppleEvents _ANSI_ARGS_((
00067                                 Tcl_Interp * interp));
00068 /* 5 */
00069 EXTERN int              TkMacConvertEvent _ANSI_ARGS_((
00070                                 EventRecord * eventPtr));
00071 /* 6 */
00072 EXTERN int              TkMacConvertTkEvent _ANSI_ARGS_((
00073                                 EventRecord * eventPtr, Window window));
00074 /* 7 */
00075 EXTERN void             TkGenWMConfigureEvent _ANSI_ARGS_((Tk_Window tkwin, 
00076                                 int x, int y, int width, int height, 
00077                                 int flags));
00078 /* 8 */
00079 EXTERN void             TkMacInvalClipRgns _ANSI_ARGS_((TkWindow * winPtr));
00080 /* 9 */
00081 EXTERN int              TkMacHaveAppearance _ANSI_ARGS_((void));
00082 /* 10 */
00083 EXTERN GWorldPtr        TkMacGetDrawablePort _ANSI_ARGS_((Drawable drawable));
00084 #endif /* MAC_TCL */
00085 #ifdef MAC_OSX_TK
00086 /* 0 */
00087 EXTERN void             Tk_MacOSXSetEmbedHandler _ANSI_ARGS_((
00088                                 Tk_MacOSXEmbedRegisterWinProc * registerWinProcPtr, 
00089                                 Tk_MacOSXEmbedGetGrafPortProc * getPortProcPtr, 
00090                                 Tk_MacOSXEmbedMakeContainerExistProc * containerExistProcPtr, 
00091                                 Tk_MacOSXEmbedGetClipProc * getClipProc, 
00092                                 Tk_MacOSXEmbedGetOffsetInParentProc * getOffsetProc));
00093 /* 1 */
00094 EXTERN void             Tk_MacOSXTurnOffMenus _ANSI_ARGS_((void));
00095 /* 2 */
00096 EXTERN void             Tk_MacOSXTkOwnsCursor _ANSI_ARGS_((int tkOwnsIt));
00097 /* 3 */
00098 EXTERN void             TkMacOSXInitMenus _ANSI_ARGS_((Tcl_Interp * interp));
00099 /* 4 */
00100 EXTERN void             TkMacOSXInitAppleEvents _ANSI_ARGS_((
00101                                 Tcl_Interp * interp));
00102 /* 5 */
00103 EXTERN void             TkGenWMConfigureEvent _ANSI_ARGS_((Tk_Window tkwin, 
00104                                 int x, int y, int width, int height, 
00105                                 int flags));
00106 /* 6 */
00107 EXTERN void             TkMacOSXInvalClipRgns _ANSI_ARGS_((TkWindow * winPtr));
00108 /* 7 */
00109 EXTERN GWorldPtr        TkMacOSXGetDrawablePort _ANSI_ARGS_((
00110                                 Drawable drawable));
00111 /* 8 */
00112 EXTERN ControlRef       TkMacOSXGetRootControl _ANSI_ARGS_((
00113                                 Drawable drawable));
00114 /* 9 */
00115 EXTERN void             Tk_MacOSXSetupTkNotifier _ANSI_ARGS_((void));
00116 /* 10 */
00117 EXTERN int              Tk_MacOSXIsAppInFront _ANSI_ARGS_((void));
00118 #endif /* MAC_OSX_TK */
00119 
00120 typedef struct TkPlatStubs {
00121     int magic;
00122     struct TkPlatStubHooks *hooks;
00123 
00124 #ifdef __WIN32__
00125     Window (*tk_AttachHWND) _ANSI_ARGS_((Tk_Window tkwin, HWND hwnd)); /* 0 */
00126     HINSTANCE (*tk_GetHINSTANCE) _ANSI_ARGS_((void)); /* 1 */
00127     HWND (*tk_GetHWND) _ANSI_ARGS_((Window window)); /* 2 */
00128     Tk_Window (*tk_HWNDToWindow) _ANSI_ARGS_((HWND hwnd)); /* 3 */
00129     void (*tk_PointerEvent) _ANSI_ARGS_((HWND hwnd, int x, int y)); /* 4 */
00130     int (*tk_TranslateWinEvent) _ANSI_ARGS_((HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT * result)); /* 5 */
00131 #endif /* __WIN32__ */
00132 #ifdef MAC_TCL
00133     void (*tk_MacSetEmbedHandler) _ANSI_ARGS_((Tk_MacEmbedRegisterWinProc * registerWinProcPtr, Tk_MacEmbedGetGrafPortProc * getPortProcPtr, Tk_MacEmbedMakeContainerExistProc * containerExistProcPtr, Tk_MacEmbedGetClipProc * getClipProc, Tk_MacEmbedGetOffsetInParentProc * getOffsetProc)); /* 0 */
00134     void (*tk_MacTurnOffMenus) _ANSI_ARGS_((void)); /* 1 */
00135     void (*tk_MacTkOwnsCursor) _ANSI_ARGS_((int tkOwnsIt)); /* 2 */
00136     void (*tkMacInitMenus) _ANSI_ARGS_((Tcl_Interp * interp)); /* 3 */
00137     void (*tkMacInitAppleEvents) _ANSI_ARGS_((Tcl_Interp * interp)); /* 4 */
00138     int (*tkMacConvertEvent) _ANSI_ARGS_((EventRecord * eventPtr)); /* 5 */
00139     int (*tkMacConvertTkEvent) _ANSI_ARGS_((EventRecord * eventPtr, Window window)); /* 6 */
00140     void (*tkGenWMConfigureEvent) _ANSI_ARGS_((Tk_Window tkwin, int x, int y, int width, int height, int flags)); /* 7 */
00141     void (*tkMacInvalClipRgns) _ANSI_ARGS_((TkWindow * winPtr)); /* 8 */
00142     int (*tkMacHaveAppearance) _ANSI_ARGS_((void)); /* 9 */
00143     GWorldPtr (*tkMacGetDrawablePort) _ANSI_ARGS_((Drawable drawable)); /* 10 */
00144 #endif /* MAC_TCL */
00145 #ifdef MAC_OSX_TK
00146     void (*tk_MacOSXSetEmbedHandler) _ANSI_ARGS_((Tk_MacOSXEmbedRegisterWinProc * registerWinProcPtr, Tk_MacOSXEmbedGetGrafPortProc * getPortProcPtr, Tk_MacOSXEmbedMakeContainerExistProc * containerExistProcPtr, Tk_MacOSXEmbedGetClipProc * getClipProc, Tk_MacOSXEmbedGetOffsetInParentProc * getOffsetProc)); /* 0 */
00147     void (*tk_MacOSXTurnOffMenus) _ANSI_ARGS_((void)); /* 1 */
00148     void (*tk_MacOSXTkOwnsCursor) _ANSI_ARGS_((int tkOwnsIt)); /* 2 */
00149     void (*tkMacOSXInitMenus) _ANSI_ARGS_((Tcl_Interp * interp)); /* 3 */
00150     void (*tkMacOSXInitAppleEvents) _ANSI_ARGS_((Tcl_Interp * interp)); /* 4 */
00151     void (*tkGenWMConfigureEvent) _ANSI_ARGS_((Tk_Window tkwin, int x, int y, int width, int height, int flags)); /* 5 */
00152     void (*tkMacOSXInvalClipRgns) _ANSI_ARGS_((TkWindow * winPtr)); /* 6 */
00153     GWorldPtr (*tkMacOSXGetDrawablePort) _ANSI_ARGS_((Drawable drawable)); /* 7 */
00154     ControlRef (*tkMacOSXGetRootControl) _ANSI_ARGS_((Drawable drawable)); /* 8 */
00155     void (*tk_MacOSXSetupTkNotifier) _ANSI_ARGS_((void)); /* 9 */
00156     int (*tk_MacOSXIsAppInFront) _ANSI_ARGS_((void)); /* 10 */
00157 #endif /* MAC_OSX_TK */
00158 } TkPlatStubs;
00159 
00160 #ifdef __cplusplus
00161 extern "C" {
00162 #endif
00163 extern TkPlatStubs *tkPlatStubsPtr;
00164 #ifdef __cplusplus
00165 }
00166 #endif
00167 
00168 #if defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS)
00169 
00170 /*
00171  * Inline function declarations:
00172  */
00173 
00174 #ifdef __WIN32__
00175 #ifndef Tk_AttachHWND
00176 #define Tk_AttachHWND \
00177         (tkPlatStubsPtr->tk_AttachHWND) /* 0 */
00178 #endif
00179 #ifndef Tk_GetHINSTANCE
00180 #define Tk_GetHINSTANCE \
00181         (tkPlatStubsPtr->tk_GetHINSTANCE) /* 1 */
00182 #endif
00183 #ifndef Tk_GetHWND
00184 #define Tk_GetHWND \
00185         (tkPlatStubsPtr->tk_GetHWND) /* 2 */
00186 #endif
00187 #ifndef Tk_HWNDToWindow
00188 #define Tk_HWNDToWindow \
00189         (tkPlatStubsPtr->tk_HWNDToWindow) /* 3 */
00190 #endif
00191 #ifndef Tk_PointerEvent
00192 #define Tk_PointerEvent \
00193         (tkPlatStubsPtr->tk_PointerEvent) /* 4 */
00194 #endif
00195 #ifndef Tk_TranslateWinEvent
00196 #define Tk_TranslateWinEvent \
00197         (tkPlatStubsPtr->tk_TranslateWinEvent) /* 5 */
00198 #endif
00199 #endif /* __WIN32__ */
00200 #ifdef MAC_TCL
00201 #ifndef Tk_MacSetEmbedHandler
00202 #define Tk_MacSetEmbedHandler \
00203         (tkPlatStubsPtr->tk_MacSetEmbedHandler) /* 0 */
00204 #endif
00205 #ifndef Tk_MacTurnOffMenus
00206 #define Tk_MacTurnOffMenus \
00207         (tkPlatStubsPtr->tk_MacTurnOffMenus) /* 1 */
00208 #endif
00209 #ifndef Tk_MacTkOwnsCursor
00210 #define Tk_MacTkOwnsCursor \
00211         (tkPlatStubsPtr->tk_MacTkOwnsCursor) /* 2 */
00212 #endif
00213 #ifndef TkMacInitMenus
00214 #define TkMacInitMenus \
00215         (tkPlatStubsPtr->tkMacInitMenus) /* 3 */
00216 #endif
00217 #ifndef TkMacInitAppleEvents
00218 #define TkMacInitAppleEvents \
00219         (tkPlatStubsPtr->tkMacInitAppleEvents) /* 4 */
00220 #endif
00221 #ifndef TkMacConvertEvent
00222 #define TkMacConvertEvent \
00223         (tkPlatStubsPtr->tkMacConvertEvent) /* 5 */
00224 #endif
00225 #ifndef TkMacConvertTkEvent
00226 #define TkMacConvertTkEvent \
00227         (tkPlatStubsPtr->tkMacConvertTkEvent) /* 6 */
00228 #endif
00229 #ifndef TkGenWMConfigureEvent
00230 #define TkGenWMConfigureEvent \
00231         (tkPlatStubsPtr->tkGenWMConfigureEvent) /* 7 */
00232 #endif
00233 #ifndef TkMacInvalClipRgns
00234 #define TkMacInvalClipRgns \
00235         (tkPlatStubsPtr->tkMacInvalClipRgns) /* 8 */
00236 #endif
00237 #ifndef TkMacHaveAppearance
00238 #define TkMacHaveAppearance \
00239         (tkPlatStubsPtr->tkMacHaveAppearance) /* 9 */
00240 #endif
00241 #ifndef TkMacGetDrawablePort
00242 #define TkMacGetDrawablePort \
00243         (tkPlatStubsPtr->tkMacGetDrawablePort) /* 10 */
00244 #endif
00245 #endif /* MAC_TCL */
00246 #ifdef MAC_OSX_TK
00247 #ifndef Tk_MacOSXSetEmbedHandler
00248 #define Tk_MacOSXSetEmbedHandler \
00249         (tkPlatStubsPtr->tk_MacOSXSetEmbedHandler) /* 0 */
00250 #endif
00251 #ifndef Tk_MacOSXTurnOffMenus
00252 #define Tk_MacOSXTurnOffMenus \
00253         (tkPlatStubsPtr->tk_MacOSXTurnOffMenus) /* 1 */
00254 #endif
00255 #ifndef Tk_MacOSXTkOwnsCursor
00256 #define Tk_MacOSXTkOwnsCursor \
00257         (tkPlatStubsPtr->tk_MacOSXTkOwnsCursor) /* 2 */
00258 #endif
00259 #ifndef TkMacOSXInitMenus
00260 #define TkMacOSXInitMenus \
00261         (tkPlatStubsPtr->tkMacOSXInitMenus) /* 3 */
00262 #endif
00263 #ifndef TkMacOSXInitAppleEvents
00264 #define TkMacOSXInitAppleEvents \
00265         (tkPlatStubsPtr->tkMacOSXInitAppleEvents) /* 4 */
00266 #endif
00267 #ifndef TkGenWMConfigureEvent
00268 #define TkGenWMConfigureEvent \
00269         (tkPlatStubsPtr->tkGenWMConfigureEvent) /* 5 */
00270 #endif
00271 #ifndef TkMacOSXInvalClipRgns
00272 #define TkMacOSXInvalClipRgns \
00273         (tkPlatStubsPtr->tkMacOSXInvalClipRgns) /* 6 */
00274 #endif
00275 #ifndef TkMacOSXGetDrawablePort
00276 #define TkMacOSXGetDrawablePort \
00277         (tkPlatStubsPtr->tkMacOSXGetDrawablePort) /* 7 */
00278 #endif
00279 #ifndef TkMacOSXGetRootControl
00280 #define TkMacOSXGetRootControl \
00281         (tkPlatStubsPtr->tkMacOSXGetRootControl) /* 8 */
00282 #endif
00283 #ifndef Tk_MacOSXSetupTkNotifier
00284 #define Tk_MacOSXSetupTkNotifier \
00285         (tkPlatStubsPtr->tk_MacOSXSetupTkNotifier) /* 9 */
00286 #endif
00287 #ifndef Tk_MacOSXIsAppInFront
00288 #define Tk_MacOSXIsAppInFront \
00289         (tkPlatStubsPtr->tk_MacOSXIsAppInFront) /* 10 */
00290 #endif
00291 #endif /* MAC_OSX_TK */
00292 
00293 #endif /* defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) */
00294 
00295 /* !END!: Do not edit above this line. */
00296 
00297 #undef TCL_STORAGE_CLASS
00298 #define TCL_STORAGE_CLASS DLLIMPORT
00299 
00300 #endif /* _TKPLATDECLS */
00301 
00302 /*
00303  * Local Variables:
00304  * mode: C
00305  * tab-width: 8
00306  * c-basic-offset: 4
00307  * indent-tabs-mode: t
00308  * End:
00309  * ex: shiftwidth=4 tabstop=8
00310  */

Generated on Mon Sep 18 01:24:47 2006 for BRL-CAD by  doxygen 1.4.6