head	1.25;
access;
symbols
	core-8-5-9:1.15.2.1
	core-8-5-8:1.15
	macosx-cocoa-merge:1.20
	macosx-cocoa-premerge:1.19
	macosx-carbon-freeze:1.19
	core-8-5-7:1.15
	core-8-5-6:1.15
	core-8-6-b1:1.19
	core-8-6-a3:1.18
	core-8-5-5:1.15
	core-8-6-a2:1.18
	core-8-5-4:1.15
	core-8-5-3:1.15
	core-8-6-a1:1.18
	core-8-4-19:1.7.2.1
	core-8-5-branch:1.15.0.2
	core-8-5-2:1.15
	core-8-4-18:1.7.2.1
	core-8-5-1:1.15
	core-8-4-17:1.7.2.1
	core-8-5-0:1.15
	core-8-5-b3:1.13
	core-8-5-b2:1.13
	core-8-4-16:1.7.2.1
	core-8-5-b1:1.13
	core-stablilizer-merge:1.13
	core-stabilizer-branch:1.13.0.2
	core-stabilizer-merge:1.15
	core-8-4-15:1.7.2.1
	core-8-5-a6:1.13
	core-8-5-a5:1.12
	core-8-4-14:1.7.2.1
	core-8-5-a4:1.12
	core-8-4-13:1.7.2.1
	core-8-4-12:1.7
	core-8-4-11:1.7
	core-8-5-a3:1.11
	core-8-4-10:1.7
	core-8-4-9-branch:1.7.0.6
	core-8-5-a2:1.9
	core-8-4-9:1.7
	core-8-4-8:1.7
	core-8-4-7:1.7
	core-8-5-a1:1.8
	core-8-4-6:1.7
	core-8-4-5:1.7
	mistachkin-dev-branch:1.7.0.4
	core-8-4-4:1.7
	core-8-4-3:1.7
	core-8-4-branch:1.7.0.2
	core-8-4-2:1.7
	core-8-4-1:1.7
	core-8-3-5:1.4
	core-8-4-0:1.7
	macosx-8-4-merge-2002-08-31-trunk:1.7
	macosx-8-4-premerge-2002-08-31-branch:1.6.6.3
	macosx-8-4-premerge-2002-08-31-trunk:1.6
	macosx-8-4-merge-2002-08-30-branch:1.6.6.3
	macosx-8-4-merge-2002-08-30-trunk:1.6
	macosx-8-4-merge-2002-08-20-branch:1.6.6.3
	macosx-8-4-merge-2002-08-20-trunk:1.6
	core-8-4-b2:1.6
	core-8-4-b1:1.6
	macosx-premerge-6-9-02:1.6.6.3
	core-8-4-a4:1.6
	core-8-3-4:1.4
	macosx-8-4-branch:1.6.0.6
	macosx-8-4-branchpoint:1.6
	core-8-4-a3:1.6
	core-8-3-3:1.4
	dgp-privates-into-namespace:1.6.0.4
	tclpro-1-5-0:1.4
	core-8-4-win-speedup:1.6.0.2
	core-8-4-a2:1.6
	tclpro-1-4-1:1.4
	tclpro-1-4-0:1.4
	core-8-3-2:1.4
	ajuba-ajuba2-2-1-base:1.4
	ajuba-ajuba2-2-0:1.4
	core-8-4-a1:1.4
	core-8-3-1-branch:1.4.0.12
	core-8-3-1:1.4
	scriptics-sc-2-0-b5:1.4
	scriptics-sc-2-0-fixed:1.4
	scriptics-sc-2-0-b2:1.4
	scriptics-sc-2-0-b1:1.4
	core-8-3-0:1.4
	core-8-3-b2:1.4
	core-8-3-b1:1.4
	scriptics-sc-1-1:1.4
	scriptics-sc-1-1-b1:1.4
	core-8-2-3:1.4
	scriptics-sc-1-1-branch:1.4.0.10
	scriptics-sc-1-1-base:1.4
	scriptics-sc-1-0:1.4
	scriptics-sc-1-0-branch:1.4.0.8
	scriptics-sc-1-0-base:1.4
	core-8-2-2:1.4
	core-8-2-1:1.4
	scriptics-bc-1-0-b1:1.4
	core-8-2-1-branch:1.4.0.6
	scriptics-tclpro-1-3-0:1.4
	core-8-2-0:1.4
	core-8-2-b3-branch:1.4.0.4
	core-8-2-b3-base:1.4
	scriptics-tclpro-1-3-b4:1.4
	core-8-2-b2:1.4
	scriptics-tclpro-1-3-b3:1.4
	core-8-2-b1:1.4
	scriptics-tclpro-1-3-b2:1.4
	merge-to-mainline-5/21/99:1.4
	scriptics-tclpro-1-3-b2-branch:1.4.0.2
	core-8-1-1:1.4
	scriptics-tclpro-1-3-b1:1.4
	core-8-1-1-base:1.4
	core-8-1-0:1.3.4.1
	merge-to-mainline-4-29-99:1.3.4.1
	merge-to-mainline-4-23-99:1.3
	core-8-1-branch-old:1.2.0.2
	core-8-0-6-branch:1.2.0.4
	core-8-0-6-base:1.2
	core-8-1-b3:1.2.2.3
	core-8-1-b2:1.2.2.1
	dev-8-1-stubs-branch:1.1.0.4
	dev-stubs-branch:1.1.0.2;
locks; strict;
comment	@ * @;


1.25
date	2010.08.19.05.05.55;	author nijtmans;	state Exp;
branches;
next	1.24;

1.24
date	2010.03.08.19.51.35;	author dgp;	state Exp;
branches;
next	1.23;

1.23
date	2010.02.05.10.56.43;	author nijtmans;	state Exp;
branches;
next	1.22;

1.22
date	2010.01.29.18.07.31;	author nijtmans;	state Exp;
branches;
next	1.21;

1.21
date	2009.11.11.15.56.48;	author dgp;	state Exp;
branches;
next	1.20;

1.20
date	2009.06.29.14.35.01;	author das;	state Exp;
branches;
next	1.19;

1.19
date	2008.10.22.20.56.43;	author nijtmans;	state Exp;
branches;
next	1.18;

1.18
date	2008.04.08.03.28.05;	author kennykb;	state Exp;
branches;
next	1.17;

1.17
date	2008.04.02.21.32.33;	author das;	state Exp;
branches;
next	1.16;

1.16
date	2008.04.01.16.30.54;	author dgp;	state Exp;
branches;
next	1.15;

1.15
date	2007.12.13.15.24.16;	author dgp;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	2007.12.10.15.54.14;	author das;	state Exp;
branches;
next	1.13;

1.13
date	2006.12.18.16.42.46;	author dgp;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	2006.02.09.19.08.51;	author das;	state Exp;
branches;
next	1.11;

1.11
date	2005.05.29.06.47.04;	author das;	state Exp;
branches;
next	1.10;

1.10
date	2004.12.28.08.44.48;	author chengyemao;	state Exp;
branches;
next	1.9;

1.9
date	2004.03.17.18.15.43;	author das;	state Exp;
branches;
next	1.8;

1.8
date	2003.10.13.03.41.37;	author hobbs;	state Exp;
branches;
next	1.7;

1.7
date	2002.08.31.06.12.23;	author das;	state Exp;
branches
	1.7.2.1
	1.7.6.1;
next	1.6;

1.6
date	2000.09.07.00.28.39;	author ericm;	state Exp;
branches
	1.6.2.1
	1.6.6.1;
next	1.5;

1.5
date	2000.09.06.23.39.47;	author ericm;	state Exp;
branches;
next	1.4;

1.4
date	99.04.30.22.49.55;	author stanton;	state Exp;
branches;
next	1.3;

1.3
date	99.04.16.01.51.21;	author stanton;	state Exp;
branches
	1.3.4.1;
next	1.2;

1.2
date	99.03.10.07.04.42;	author stanton;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	99.03.06.00.08.06;	author redman;	state dead;
branches
	1.1.2.1
	1.1.4.1;
next	;

1.1.2.1
date	99.03.06.00.08.06;	author redman;	state Exp;
branches;
next	;

1.1.4.1
date	99.03.09.18.57.11;	author redman;	state Exp;
branches;
next	;

1.2.2.1
date	99.03.10.07.13.45;	author stanton;	state Exp;
branches;
next	1.2.2.2;

1.2.2.2
date	99.03.30.02.08.02;	author redman;	state Exp;
branches;
next	1.2.2.3;

1.2.2.3
date	99.04.01.21.58.49;	author redman;	state Exp;
branches;
next	;

1.3.4.1
date	99.04.27.21.09.42;	author stanton;	state Exp;
branches;
next	;

1.6.2.1
date	2000.11.03.22.49.23;	author hobbs;	state Exp;
branches;
next	;

1.6.6.1
date	2001.10.15.09.22.00;	author wolfsuit;	state Exp;
branches;
next	1.6.6.2;

1.6.6.2
date	2001.10.17.07.02.07;	author wolfsuit;	state Exp;
branches;
next	1.6.6.3;

1.6.6.3
date	2001.11.11.17.58.53;	author wolfsuit;	state Exp;
branches;
next	;

1.7.2.1
date	2006.02.09.19.09.43;	author das;	state Exp;
branches;
next	;

1.7.6.1
date	2005.01.04.05.07.45;	author chengyemao;	state Exp;
branches;
next	;

1.13.2.1
date	2007.12.10.18.39.30;	author dgp;	state Exp;
branches;
next	;

1.15.2.1
date	2010.02.07.23.24.13;	author nijtmans;	state Exp;
branches;
next	;


desc
@@


1.25
log
@[Patch 3034251] partly: remove some more unneeded ifdeffery from stub header files
@
text
@/*
 * tkPlatDecls.h --
 *
 *	Declarations of functions in the platform-specific public Tcl API.
 *
 * Copyright (c) 1998-1999 by Scriptics Corporation.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.24 2010/03/08 19:51:35 dgp Exp $
 */

#ifndef _TKPLATDECLS
#define _TKPLATDECLS

#ifdef BUILD_tk
#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS DLLEXPORT
#endif

/*
 * WARNING: This file is automatically generated by the tools/genStubs.tcl
 * script.  Any modifications to the function declarations below should be made
 * in the generic/tk.decls script.
 */

#ifdef __cplusplus
extern "C" {
#endif

/* !BEGIN!: Do not edit below this line. */

/*
 * Exported function declarations:
 */

#ifdef __WIN32__ /* WIN */
/* 0 */
EXTERN Window		Tk_AttachHWND(Tk_Window tkwin, HWND hwnd);
/* 1 */
EXTERN HINSTANCE	Tk_GetHINSTANCE(void);
/* 2 */
EXTERN HWND		Tk_GetHWND(Window window);
/* 3 */
EXTERN Tk_Window	Tk_HWNDToWindow(HWND hwnd);
/* 4 */
EXTERN void		Tk_PointerEvent(HWND hwnd, int x, int y);
/* 5 */
EXTERN int		Tk_TranslateWinEvent(HWND hwnd, UINT message,
				WPARAM wParam, LPARAM lParam,
				LRESULT *result);
#endif /* WIN */
#ifdef MAC_OSX_TK /* AQUA */
/* 0 */
EXTERN void		Tk_MacOSXSetEmbedHandler(
				Tk_MacOSXEmbedRegisterWinProc *registerWinProcPtr,
				Tk_MacOSXEmbedGetGrafPortProc *getPortProcPtr,
				Tk_MacOSXEmbedMakeContainerExistProc *containerExistProcPtr,
				Tk_MacOSXEmbedGetClipProc *getClipProc,
				Tk_MacOSXEmbedGetOffsetInParentProc *getOffsetProc);
/* 1 */
EXTERN void		Tk_MacOSXTurnOffMenus(void);
/* 2 */
EXTERN void		Tk_MacOSXTkOwnsCursor(int tkOwnsIt);
/* 3 */
EXTERN void		TkMacOSXInitMenus(Tcl_Interp *interp);
/* 4 */
EXTERN void		TkMacOSXInitAppleEvents(Tcl_Interp *interp);
/* 5 */
EXTERN void		TkGenWMConfigureEvent(Tk_Window tkwin, int x, int y,
				int width, int height, int flags);
/* 6 */
EXTERN void		TkMacOSXInvalClipRgns(Tk_Window tkwin);
/* 7 */
EXTERN void *		TkMacOSXGetDrawablePort(Drawable drawable);
/* 8 */
EXTERN void *		TkMacOSXGetRootControl(Drawable drawable);
/* 9 */
EXTERN void		Tk_MacOSXSetupTkNotifier(void);
/* 10 */
EXTERN int		Tk_MacOSXIsAppInFront(void);
#endif /* AQUA */

typedef struct TkPlatStubs {
    int magic;
    const struct TkPlatStubHooks *hooks;

#ifdef __WIN32__ /* WIN */
    Window (*tk_AttachHWND) (Tk_Window tkwin, HWND hwnd); /* 0 */
    HINSTANCE (*tk_GetHINSTANCE) (void); /* 1 */
    HWND (*tk_GetHWND) (Window window); /* 2 */
    Tk_Window (*tk_HWNDToWindow) (HWND hwnd); /* 3 */
    void (*tk_PointerEvent) (HWND hwnd, int x, int y); /* 4 */
    int (*tk_TranslateWinEvent) (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *result); /* 5 */
#endif /* WIN */
#ifdef MAC_OSX_TK /* AQUA */
    void (*tk_MacOSXSetEmbedHandler) (Tk_MacOSXEmbedRegisterWinProc *registerWinProcPtr, Tk_MacOSXEmbedGetGrafPortProc *getPortProcPtr, Tk_MacOSXEmbedMakeContainerExistProc *containerExistProcPtr, Tk_MacOSXEmbedGetClipProc *getClipProc, Tk_MacOSXEmbedGetOffsetInParentProc *getOffsetProc); /* 0 */
    void (*tk_MacOSXTurnOffMenus) (void); /* 1 */
    void (*tk_MacOSXTkOwnsCursor) (int tkOwnsIt); /* 2 */
    void (*tkMacOSXInitMenus) (Tcl_Interp *interp); /* 3 */
    void (*tkMacOSXInitAppleEvents) (Tcl_Interp *interp); /* 4 */
    void (*tkGenWMConfigureEvent) (Tk_Window tkwin, int x, int y, int width, int height, int flags); /* 5 */
    void (*tkMacOSXInvalClipRgns) (Tk_Window tkwin); /* 6 */
    void * (*tkMacOSXGetDrawablePort) (Drawable drawable); /* 7 */
    void * (*tkMacOSXGetRootControl) (Drawable drawable); /* 8 */
    void (*tk_MacOSXSetupTkNotifier) (void); /* 9 */
    int (*tk_MacOSXIsAppInFront) (void); /* 10 */
#endif /* AQUA */
} TkPlatStubs;

#ifdef __cplusplus
extern "C" {
#endif
extern const TkPlatStubs *tkPlatStubsPtr;
#ifdef __cplusplus
}
#endif

#if defined(USE_TK_STUBS)

/*
 * Inline function declarations:
 */

#ifdef __WIN32__ /* WIN */
#define Tk_AttachHWND \
	(tkPlatStubsPtr->tk_AttachHWND) /* 0 */
#define Tk_GetHINSTANCE \
	(tkPlatStubsPtr->tk_GetHINSTANCE) /* 1 */
#define Tk_GetHWND \
	(tkPlatStubsPtr->tk_GetHWND) /* 2 */
#define Tk_HWNDToWindow \
	(tkPlatStubsPtr->tk_HWNDToWindow) /* 3 */
#define Tk_PointerEvent \
	(tkPlatStubsPtr->tk_PointerEvent) /* 4 */
#define Tk_TranslateWinEvent \
	(tkPlatStubsPtr->tk_TranslateWinEvent) /* 5 */
#endif /* WIN */
#ifdef MAC_OSX_TK /* AQUA */
#define Tk_MacOSXSetEmbedHandler \
	(tkPlatStubsPtr->tk_MacOSXSetEmbedHandler) /* 0 */
#define Tk_MacOSXTurnOffMenus \
	(tkPlatStubsPtr->tk_MacOSXTurnOffMenus) /* 1 */
#define Tk_MacOSXTkOwnsCursor \
	(tkPlatStubsPtr->tk_MacOSXTkOwnsCursor) /* 2 */
#define TkMacOSXInitMenus \
	(tkPlatStubsPtr->tkMacOSXInitMenus) /* 3 */
#define TkMacOSXInitAppleEvents \
	(tkPlatStubsPtr->tkMacOSXInitAppleEvents) /* 4 */
#define TkGenWMConfigureEvent \
	(tkPlatStubsPtr->tkGenWMConfigureEvent) /* 5 */
#define TkMacOSXInvalClipRgns \
	(tkPlatStubsPtr->tkMacOSXInvalClipRgns) /* 6 */
#define TkMacOSXGetDrawablePort \
	(tkPlatStubsPtr->tkMacOSXGetDrawablePort) /* 7 */
#define TkMacOSXGetRootControl \
	(tkPlatStubsPtr->tkMacOSXGetRootControl) /* 8 */
#define Tk_MacOSXSetupTkNotifier \
	(tkPlatStubsPtr->tk_MacOSXSetupTkNotifier) /* 9 */
#define Tk_MacOSXIsAppInFront \
	(tkPlatStubsPtr->tk_MacOSXIsAppInFront) /* 10 */
#endif /* AQUA */

#endif /* defined(USE_TK_STUBS) */

/* !END!: Do not edit above this line. */

#ifdef __cplusplus
}
#endif

#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS DLLIMPORT

#endif /* _TKPLATDECLS */
@


1.24
log
@        * generic/tkPlatDecls.h: Correct broken 2886635 fix. [Bug 2965600]
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.23 2010/02/05 10:56:43 nijtmans Exp $
a38 2
#ifndef Tk_AttachHWND_TCL_DECLARED
#define Tk_AttachHWND_TCL_DECLARED
a40 3
#endif
#ifndef Tk_GetHINSTANCE_TCL_DECLARED
#define Tk_GetHINSTANCE_TCL_DECLARED
a42 3
#endif
#ifndef Tk_GetHWND_TCL_DECLARED
#define Tk_GetHWND_TCL_DECLARED
a44 3
#endif
#ifndef Tk_HWNDToWindow_TCL_DECLARED
#define Tk_HWNDToWindow_TCL_DECLARED
a46 3
#endif
#ifndef Tk_PointerEvent_TCL_DECLARED
#define Tk_PointerEvent_TCL_DECLARED
a48 3
#endif
#ifndef Tk_TranslateWinEvent_TCL_DECLARED
#define Tk_TranslateWinEvent_TCL_DECLARED
a52 1
#endif
a54 2
#ifndef Tk_MacOSXSetEmbedHandler_TCL_DECLARED
#define Tk_MacOSXSetEmbedHandler_TCL_DECLARED
a61 3
#endif
#ifndef Tk_MacOSXTurnOffMenus_TCL_DECLARED
#define Tk_MacOSXTurnOffMenus_TCL_DECLARED
a63 3
#endif
#ifndef Tk_MacOSXTkOwnsCursor_TCL_DECLARED
#define Tk_MacOSXTkOwnsCursor_TCL_DECLARED
a65 3
#endif
#ifndef TkMacOSXInitMenus_TCL_DECLARED
#define TkMacOSXInitMenus_TCL_DECLARED
a67 3
#endif
#ifndef TkMacOSXInitAppleEvents_TCL_DECLARED
#define TkMacOSXInitAppleEvents_TCL_DECLARED
a69 3
#endif
#ifndef TkGenWMConfigureEvent_TCL_DECLARED
#define TkGenWMConfigureEvent_TCL_DECLARED
a72 3
#endif
#ifndef TkMacOSXInvalClipRgns_TCL_DECLARED
#define TkMacOSXInvalClipRgns_TCL_DECLARED
a74 3
#endif
#ifndef TkMacOSXGetDrawablePort_TCL_DECLARED
#define TkMacOSXGetDrawablePort_TCL_DECLARED
a76 3
#endif
#ifndef TkMacOSXGetRootControl_TCL_DECLARED
#define TkMacOSXGetRootControl_TCL_DECLARED
a78 3
#endif
#ifndef Tk_MacOSXSetupTkNotifier_TCL_DECLARED
#define Tk_MacOSXSetupTkNotifier_TCL_DECLARED
a80 3
#endif
#ifndef Tk_MacOSXIsAppInFront_TCL_DECLARED
#define Tk_MacOSXIsAppInFront_TCL_DECLARED
a82 1
#endif
d112 3
a114 1
#if defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS)
d116 3
a118 1
#endif /* defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) */
d120 1
a120 1
#if defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS)
a126 1
#ifndef Tk_AttachHWND
a128 2
#endif
#ifndef Tk_GetHINSTANCE
a130 2
#endif
#ifndef Tk_GetHWND
a132 2
#endif
#ifndef Tk_HWNDToWindow
a134 2
#endif
#ifndef Tk_PointerEvent
a136 2
#endif
#ifndef Tk_TranslateWinEvent
a138 1
#endif
a140 1
#ifndef Tk_MacOSXSetEmbedHandler
a142 2
#endif
#ifndef Tk_MacOSXTurnOffMenus
a144 2
#endif
#ifndef Tk_MacOSXTkOwnsCursor
a146 2
#endif
#ifndef TkMacOSXInitMenus
a148 2
#endif
#ifndef TkMacOSXInitAppleEvents
a150 2
#endif
#ifndef TkGenWMConfigureEvent
a152 2
#endif
#ifndef TkMacOSXInvalClipRgns
a154 2
#endif
#ifndef TkMacOSXGetDrawablePort
a156 2
#endif
#ifndef TkMacOSXGetRootControl
a158 2
#endif
#ifndef Tk_MacOSXSetupTkNotifier
a160 2
#endif
#ifndef Tk_MacOSXIsAppInFront
a162 1
#endif
d165 1
a165 1
#endif /* defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) */
@


1.23
log
@Follow-up to [2010-01-29] commit:
prevent space within stub table function parameters
if the parameter type is a pointer.
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.22 2010/01/29 18:07:31 nijtmans Exp $
d29 1
a29 1
#extern "C" {
@


1.22
log
@genStubs.tcl: No longer generate a space after
"*" and immediately after a function name, so
the format of function definitions in *Decls.h
match all other *.h header files.
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.21 2009/11/11 15:56:48 dgp Exp $
d146 1
a146 1
    int (*tk_TranslateWinEvent) (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT * result); /* 5 */
d149 1
a149 1
    void (*tk_MacOSXSetEmbedHandler) (Tk_MacOSXEmbedRegisterWinProc * registerWinProcPtr, Tk_MacOSXEmbedGetGrafPortProc * getPortProcPtr, Tk_MacOSXEmbedMakeContainerExistProc * containerExistProcPtr, Tk_MacOSXEmbedGetClipProc * getClipProc, Tk_MacOSXEmbedGetOffsetInParentProc * getOffsetProc); /* 0 */
d152 2
a153 2
    void (*tkMacOSXInitMenus) (Tcl_Interp * interp); /* 3 */
    void (*tkMacOSXInitAppleEvents) (Tcl_Interp * interp); /* 4 */
@


1.21
log
@        * generic/tkPlatDecls.h:        Restore C++ friendliness to the
        tkPlatDecls.h header file, which we insist extensions #include to
        gain access to the Tk_*HWND*() routines.  [Bug 2886635].
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.20 2009/06/29 14:35:01 das Exp $
d42 1
a42 1
EXTERN Window		Tk_AttachHWND (Tk_Window tkwin, HWND hwnd);
d47 1
a47 1
EXTERN HINSTANCE	Tk_GetHINSTANCE (void);
d52 1
a52 1
EXTERN HWND		Tk_GetHWND (Window window);
d57 1
a57 1
EXTERN Tk_Window	Tk_HWNDToWindow (HWND hwnd);
d62 1
a62 1
EXTERN void		Tk_PointerEvent (HWND hwnd, int x, int y);
d67 1
a67 1
EXTERN int		Tk_TranslateWinEvent (HWND hwnd, UINT message,
d69 1
a69 1
				LRESULT * result);
d76 6
a81 6
EXTERN void		Tk_MacOSXSetEmbedHandler (
				Tk_MacOSXEmbedRegisterWinProc * registerWinProcPtr,
				Tk_MacOSXEmbedGetGrafPortProc * getPortProcPtr,
				Tk_MacOSXEmbedMakeContainerExistProc * containerExistProcPtr,
				Tk_MacOSXEmbedGetClipProc * getClipProc,
				Tk_MacOSXEmbedGetOffsetInParentProc * getOffsetProc);
d86 1
a86 1
EXTERN void		Tk_MacOSXTurnOffMenus (void);
d91 1
a91 1
EXTERN void		Tk_MacOSXTkOwnsCursor (int tkOwnsIt);
d96 1
a96 1
EXTERN void		TkMacOSXInitMenus (Tcl_Interp * interp);
d101 1
a101 1
EXTERN void		TkMacOSXInitAppleEvents (Tcl_Interp * interp);
d106 1
a106 1
EXTERN void		TkGenWMConfigureEvent (Tk_Window tkwin, int x, int y,
d112 1
a112 1
EXTERN void		TkMacOSXInvalClipRgns (Tk_Window tkwin);
d117 1
a117 1
EXTERN void *		TkMacOSXGetDrawablePort (Drawable drawable);
d122 1
a122 1
EXTERN void *		TkMacOSXGetRootControl (Drawable drawable);
d127 1
a127 1
EXTERN void		Tk_MacOSXSetupTkNotifier (void);
d132 1
a132 1
EXTERN int		Tk_MacOSXIsAppInFront (void);
@


1.20
log
@Merge of TkAqua Cocoa port
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.19 2008/10/22 20:56:43 nijtmans Exp $
d28 4
d250 4
@


1.19
log
@Letting CONST die a slow and graceful death, since NO_CONST was
broken since 8.4 and no-one complained about it.
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.18 2008/04/08 03:28:05 kennykb Exp $
d113 1
a113 1
EXTERN GWorldPtr	TkMacOSXGetDrawablePort (Drawable drawable);
d118 1
a118 1
EXTERN ControlRef	TkMacOSXGetRootControl (Drawable drawable);
d152 2
a153 2
    GWorldPtr (*tkMacOSXGetDrawablePort) (Drawable drawable); /* 7 */
    ControlRef (*tkMacOSXGetRootControl) (Drawable drawable); /* 8 */
@


1.18
log
@* tkDecls.h:     Reverted das's change of Tk's stubs pointers
* tkIntDecls.h:  from 'extern' to 'EXTERN'. Since the stubs pointer
* tkPlatDecls.h: is always linked statically, its wrong to import
                 or export it from a DLL, and the change causes
                 trouble for extensions that build with -DUSE_TK_STUBS.
* tkWinEmbed.c:  Removed #if 0 code. Trust the revision control system,
                 if you need it again, you can find it.
* tkWinSend.c:   Added conditional compilation to silence several
                 compiler warnings.
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.17 2008/04/02 21:32:33 das Exp $
d63 2
a64 2
EXTERN int		Tk_TranslateWinEvent (HWND hwnd, UINT message, 
				WPARAM wParam, LPARAM lParam, 
d73 4
a76 4
				Tk_MacOSXEmbedRegisterWinProc * registerWinProcPtr, 
				Tk_MacOSXEmbedGetGrafPortProc * getPortProcPtr, 
				Tk_MacOSXEmbedMakeContainerExistProc * containerExistProcPtr, 
				Tk_MacOSXEmbedGetClipProc * getClipProc, 
d102 1
a102 1
EXTERN void		TkGenWMConfigureEvent (Tk_Window tkwin, int x, int y, 
d134 1
a134 1
    CONST struct TkPlatStubHooks *hooks;
d160 1
a160 1
extern CONST TkPlatStubs *tkPlatStubsPtr;
@


1.17
log
@	* generic/tkDecls.h:		make genstubs
	* generic/tkIntDecls.h:
	* generic/tkIntPlatDecls.h:
	* generic/tkIntXlibDecls.h:
	* generic/tkPlatDecls.h:
	* generic/tkStubInit.c:
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.16 2008/04/01 16:30:54 dgp Exp $
d160 1
a160 1
EXTERN CONST TkPlatStubs *tkPlatStubsPtr;
@


1.16
log
@        * README:               Bump version number to 8.6a0
        * generic/tk.h:
        * library/tk.tcl:
        * macosx/Wish-Common.xcconfig:
        * unix/configure.in:
        * unix/tk.spec:
        * win/README:
        * win/configure.in:
        * win/tcl.m4:

        * unix/configure:       autoconf-2.59
        * win/configure:

        * generic/tkConsole.c:  Relax Tcl_InitStubs() calls so that a Tk 8.6
        * generic/tkMain.c:     might [load] into a Tcl 8.5 interp.
        * generic/tkWindow.c:

        * generic/tkStubLib.c:  Update to compatibility with a libtcl.so
        that contains no "tclStubsPtr" [Tcl Bug 1819422].

        * generic/tkDecls.h:            make genstubs
        * generic/tkIntDecls.h:
        * generic/tkIntPlatDecls.h:
        * generic/tkIntXlibDecls.h:
        * generic/tkPlatDecls.h:
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.15 2007/12/13 15:24:16 dgp Exp $
d134 1
a134 1
    struct TkPlatStubHooks *hooks;
d160 1
a160 9

#ifdef __cplusplus
extern "C" {
#endif
extern TkPlatStubs *tkPlatStubsPtr;
#ifdef __cplusplus
}
#endif

@


1.15
log
@merge stable branch onto HEAD
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.13.2.1 2007/12/10 18:39:30 dgp Exp $
d159 2
d169 2
@


1.15.2.1
log
@Backport various formatting (spacing)
changes from HEAD, so diffing
between 8.5.x and 8.6 shows the
real structural differences again.
(any signature change not backported!)
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.15 2007/12/13 15:24:16 dgp Exp $
d38 1
a38 1
EXTERN Window		Tk_AttachHWND(Tk_Window tkwin, HWND hwnd);
d43 1
a43 1
EXTERN HINSTANCE	Tk_GetHINSTANCE(void);
d48 1
a48 1
EXTERN HWND		Tk_GetHWND(Window window);
d53 1
a53 1
EXTERN Tk_Window	Tk_HWNDToWindow(HWND hwnd);
d58 1
a58 1
EXTERN void		Tk_PointerEvent(HWND hwnd, int x, int y);
d63 3
a65 3
EXTERN int		Tk_TranslateWinEvent(HWND hwnd, UINT message,
				WPARAM wParam, LPARAM lParam,
				LRESULT *result);
d72 6
a77 6
EXTERN void		Tk_MacOSXSetEmbedHandler(
				Tk_MacOSXEmbedRegisterWinProc *registerWinProcPtr,
				Tk_MacOSXEmbedGetGrafPortProc *getPortProcPtr,
				Tk_MacOSXEmbedMakeContainerExistProc *containerExistProcPtr,
				Tk_MacOSXEmbedGetClipProc *getClipProc,
				Tk_MacOSXEmbedGetOffsetInParentProc *getOffsetProc);
d82 1
a82 1
EXTERN void		Tk_MacOSXTurnOffMenus(void);
d87 1
a87 1
EXTERN void		Tk_MacOSXTkOwnsCursor(int tkOwnsIt);
d92 1
a92 1
EXTERN void		TkMacOSXInitMenus(Tcl_Interp *interp);
d97 1
a97 1
EXTERN void		TkMacOSXInitAppleEvents(Tcl_Interp *interp);
d102 1
a102 1
EXTERN void		TkGenWMConfigureEvent(Tk_Window tkwin, int x, int y,
d108 1
a108 1
EXTERN void		TkMacOSXInvalClipRgns(Tk_Window tkwin);
d113 1
a113 1
EXTERN GWorldPtr	TkMacOSXGetDrawablePort(Drawable drawable);
d118 1
a118 1
EXTERN ControlRef	TkMacOSXGetRootControl(Drawable drawable);
d123 1
a123 1
EXTERN void		Tk_MacOSXSetupTkNotifier(void);
d128 1
a128 1
EXTERN int		Tk_MacOSXIsAppInFront(void);
d142 1
a142 1
    int (*tk_TranslateWinEvent) (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT *result); /* 5 */
d145 1
a145 1
    void (*tk_MacOSXSetEmbedHandler) (Tk_MacOSXEmbedRegisterWinProc *registerWinProcPtr, Tk_MacOSXEmbedGetGrafPortProc *getPortProcPtr, Tk_MacOSXEmbedMakeContainerExistProc *containerExistProcPtr, Tk_MacOSXEmbedGetClipProc *getClipProc, Tk_MacOSXEmbedGetOffsetInParentProc *getOffsetProc); /* 0 */
d148 2
a149 2
    void (*tkMacOSXInitMenus) (Tcl_Interp *interp); /* 3 */
    void (*tkMacOSXInitAppleEvents) (Tcl_Interp *interp); /* 4 */
@


1.14
log
@	* generic/tkIntDecls.h:		regen with new genStubs.tcl.
	* generic/tkIntPlatDecls.h:	[Tcl Bug 1834288]
	* generic/tkIntXlibDecls.h:
	* generic/tkPlatDecls.h:
	* generic/tkStubInit.c:
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.13 2006/12/18 16:42:46 dgp Exp $
@


1.13
log
@Use more portable string literals
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.12 2006/02/09 19:08:51 das Exp $
d34 1
a34 1
#ifdef __WIN32__
d67 2
a68 2
#endif /* __WIN32__ */
#ifdef MAC_OSX_TK
d130 1
a130 1
#endif /* MAC_OSX_TK */
d136 1
a136 1
#ifdef __WIN32__
d143 2
a144 2
#endif /* __WIN32__ */
#ifdef MAC_OSX_TK
d156 1
a156 1
#endif /* MAC_OSX_TK */
d173 1
a173 1
#ifdef __WIN32__
d198 2
a199 2
#endif /* __WIN32__ */
#ifdef MAC_OSX_TK
d244 1
a244 1
#endif /* MAC_OSX_TK */
@


1.13.2.1
log
@merge updates from HEAD
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.13 2006/12/18 16:42:46 dgp Exp $
d34 1
a34 1
#ifdef __WIN32__ /* WIN */
d67 2
a68 2
#endif /* WIN */
#ifdef MAC_OSX_TK /* AQUA */
d130 1
a130 1
#endif /* AQUA */
d136 1
a136 1
#ifdef __WIN32__ /* WIN */
d143 2
a144 2
#endif /* WIN */
#ifdef MAC_OSX_TK /* AQUA */
d156 1
a156 1
#endif /* AQUA */
d173 1
a173 1
#ifdef __WIN32__ /* WIN */
d198 2
a199 2
#endif /* WIN */
#ifdef MAC_OSX_TK /* AQUA */
d244 1
a244 1
#endif /* AQUA */
@


1.12
log
@	* generic/tk.decls:             fix signature of TkMacOSXInvalClipRgns
	* generic/tkPlatDecls.h:        to use Tk_Window instead of internal
	* macosx/tkMacOSXSubwindows.c:  type TkWindow (which led to any include
	* macosx/tkMacOSXWindowEvent.c: of public header tkMacOSX.h requiring
	* macosx/tkMacOSXWm.c:          prior include of tkInt.h).

	* generic/tk.h:          move TkAqua specific REDO_KEYSYM_LOOKUP define
	* macosx/tkMacOSXPort.h: out of tk.h into platform header.
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.11 2005/05/29 06:47:04 das Exp $
d38 1
a38 2
EXTERN Window		Tk_AttachHWND _ANSI_ARGS_((Tk_Window tkwin, 
				HWND hwnd));
d43 1
a43 1
EXTERN HINSTANCE	Tk_GetHINSTANCE _ANSI_ARGS_((void));
d48 1
a48 1
EXTERN HWND		Tk_GetHWND _ANSI_ARGS_((Window window));
d53 1
a53 1
EXTERN Tk_Window	Tk_HWNDToWindow _ANSI_ARGS_((HWND hwnd));
d58 1
a58 1
EXTERN void		Tk_PointerEvent _ANSI_ARGS_((HWND hwnd, int x, int y));
d63 3
a65 3
EXTERN int		Tk_TranslateWinEvent _ANSI_ARGS_((HWND hwnd, 
				UINT message, WPARAM wParam, LPARAM lParam, 
				LRESULT * result));
d72 1
a72 1
EXTERN void		Tk_MacOSXSetEmbedHandler _ANSI_ARGS_((
d77 1
a77 1
				Tk_MacOSXEmbedGetOffsetInParentProc * getOffsetProc));
d82 1
a82 1
EXTERN void		Tk_MacOSXTurnOffMenus _ANSI_ARGS_((void));
d87 1
a87 1
EXTERN void		Tk_MacOSXTkOwnsCursor _ANSI_ARGS_((int tkOwnsIt));
d92 1
a92 1
EXTERN void		TkMacOSXInitMenus _ANSI_ARGS_((Tcl_Interp * interp));
d97 1
a97 2
EXTERN void		TkMacOSXInitAppleEvents _ANSI_ARGS_((
				Tcl_Interp * interp));
d102 2
a103 3
EXTERN void		TkGenWMConfigureEvent _ANSI_ARGS_((Tk_Window tkwin, 
				int x, int y, int width, int height, 
				int flags));
d108 1
a108 1
EXTERN void		TkMacOSXInvalClipRgns _ANSI_ARGS_((Tk_Window tkwin));
d113 1
a113 2
EXTERN GWorldPtr	TkMacOSXGetDrawablePort _ANSI_ARGS_((
				Drawable drawable));
d118 1
a118 2
EXTERN ControlRef	TkMacOSXGetRootControl _ANSI_ARGS_((
				Drawable drawable));
d123 1
a123 1
EXTERN void		Tk_MacOSXSetupTkNotifier _ANSI_ARGS_((void));
d128 1
a128 1
EXTERN int		Tk_MacOSXIsAppInFront _ANSI_ARGS_((void));
d137 6
a142 6
    Window (*tk_AttachHWND) _ANSI_ARGS_((Tk_Window tkwin, HWND hwnd)); /* 0 */
    HINSTANCE (*tk_GetHINSTANCE) _ANSI_ARGS_((void)); /* 1 */
    HWND (*tk_GetHWND) _ANSI_ARGS_((Window window)); /* 2 */
    Tk_Window (*tk_HWNDToWindow) _ANSI_ARGS_((HWND hwnd)); /* 3 */
    void (*tk_PointerEvent) _ANSI_ARGS_((HWND hwnd, int x, int y)); /* 4 */
    int (*tk_TranslateWinEvent) _ANSI_ARGS_((HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT * result)); /* 5 */
d145 11
a155 11
    void (*tk_MacOSXSetEmbedHandler) _ANSI_ARGS_((Tk_MacOSXEmbedRegisterWinProc * registerWinProcPtr, Tk_MacOSXEmbedGetGrafPortProc * getPortProcPtr, Tk_MacOSXEmbedMakeContainerExistProc * containerExistProcPtr, Tk_MacOSXEmbedGetClipProc * getClipProc, Tk_MacOSXEmbedGetOffsetInParentProc * getOffsetProc)); /* 0 */
    void (*tk_MacOSXTurnOffMenus) _ANSI_ARGS_((void)); /* 1 */
    void (*tk_MacOSXTkOwnsCursor) _ANSI_ARGS_((int tkOwnsIt)); /* 2 */
    void (*tkMacOSXInitMenus) _ANSI_ARGS_((Tcl_Interp * interp)); /* 3 */
    void (*tkMacOSXInitAppleEvents) _ANSI_ARGS_((Tcl_Interp * interp)); /* 4 */
    void (*tkGenWMConfigureEvent) _ANSI_ARGS_((Tk_Window tkwin, int x, int y, int width, int height, int flags)); /* 5 */
    void (*tkMacOSXInvalClipRgns) _ANSI_ARGS_((Tk_Window tkwin)); /* 6 */
    GWorldPtr (*tkMacOSXGetDrawablePort) _ANSI_ARGS_((Drawable drawable)); /* 7 */
    ControlRef (*tkMacOSXGetRootControl) _ANSI_ARGS_((Drawable drawable)); /* 8 */
    void (*tk_MacOSXSetupTkNotifier) _ANSI_ARGS_((void)); /* 9 */
    int (*tk_MacOSXIsAppInFront) _ANSI_ARGS_((void)); /* 10 */
@


1.11
log
@	* generic/tkDecls.h:
	* generic/tkIntPlatDecls.h:
	* generic/tkPlatDecls.h:
	* generic/tkStubInit.c: ran missing 'make genstubs' for TIP245 changes
	to tk.decls

	* macosx/tkMacOSXXStubs.c (Tk_ResetUserInactiveTime): use symbolic
	constant argument in call to UpdateSystemActivity();

	* macosx/Wish.pbproj/project.pbxproj:
	* macosx/Wish.xcode/project.pbxproj:
	* unix/configure.in: added/corrected linking to IOKit.framework for
	TIP245.

	* unix/configure.in: skip X11 configure checks when building tk_aqua.
	* unix/configure: autoconf-2.59
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.10 2004/12/28 08:44:48 chengyemao Exp $
d111 1
a111 1
EXTERN void		TkMacOSXInvalClipRgns _ANSI_ARGS_((TkWindow * winPtr));
d156 1
a156 1
    void (*tkMacOSXInvalClipRgns) _ANSI_ARGS_((TkWindow * winPtr)); /* 6 */
@


1.10
log
@Added functions to support embedded menu widget
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.9 2004/03/17 18:15:43 das Exp $
a67 10
#ifndef Tk_GetMenuHWND_TCL_DECLARED
#define Tk_GetMenuHWND_TCL_DECLARED
/* 6 */
EXTERN HWND		Tk_GetMenuHWND _ANSI_ARGS_((Tk_Window tkwin));
#endif
#ifndef Tk_GetEmbeddedMenuHWND_TCL_DECLARED
#define Tk_GetEmbeddedMenuHWND_TCL_DECLARED
/* 7 */
EXTERN HWND		Tk_GetEmbeddedMenuHWND _ANSI_ARGS_((Tk_Window tkwin));
#endif 
a147 2
    HWND (*tk_GetMenuHWND) _ANSI_ARGS_((Tk_Window tkwin)); /* 6 */
    HWND (*tk_GetEmbeddedMenuHWND) _ANSI_ARGS_((Tk_Window tkwin)); /* 7 */
a202 8
#ifndef Tk_GetMenuHWND
#define Tk_GetMenuHWND \
	(tkPlatStubsPtr->tk_GetMenuHWND) /* 6 */
#endif
#ifndef Tk_GetEmbeddedMenuHWND
#define Tk_GetEmbeddedMenuHWND \
	(tkPlatStubsPtr->tk_GetEmbeddedMenuHWND) /* 7 */
#endif
@


1.9
log
@Removed support for Mac OS Classic platform [Patch 918139]
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.8 2003/10/13 03:41:37 hobbs Exp $
d68 10
d158 2
d215 8
@


1.8
log
@        * generic/tkInt.h:      move TkGetOptionSpec to stubs intDecls
        * generic/tkIntDecls.h:
        * generic/tkInt.decls:
        * generic/tkStubInit.c:
        * tkDecls.h:            updated with latest genstubs
        * tkIntPlatDecls.h:
        * tkIntXlibDecls.h:
        * tkPlatDecls.h:
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.7 2002/08/31 06:12:23 das Exp $
a68 67
#ifdef MAC_TCL
#ifndef Tk_MacSetEmbedHandler_TCL_DECLARED
#define Tk_MacSetEmbedHandler_TCL_DECLARED
/* 0 */
EXTERN void		Tk_MacSetEmbedHandler _ANSI_ARGS_((
				Tk_MacEmbedRegisterWinProc * registerWinProcPtr, 
				Tk_MacEmbedGetGrafPortProc * getPortProcPtr, 
				Tk_MacEmbedMakeContainerExistProc * containerExistProcPtr, 
				Tk_MacEmbedGetClipProc * getClipProc, 
				Tk_MacEmbedGetOffsetInParentProc * getOffsetProc));
#endif
#ifndef Tk_MacTurnOffMenus_TCL_DECLARED
#define Tk_MacTurnOffMenus_TCL_DECLARED
/* 1 */
EXTERN void		Tk_MacTurnOffMenus _ANSI_ARGS_((void));
#endif
#ifndef Tk_MacTkOwnsCursor_TCL_DECLARED
#define Tk_MacTkOwnsCursor_TCL_DECLARED
/* 2 */
EXTERN void		Tk_MacTkOwnsCursor _ANSI_ARGS_((int tkOwnsIt));
#endif
#ifndef TkMacInitMenus_TCL_DECLARED
#define TkMacInitMenus_TCL_DECLARED
/* 3 */
EXTERN void		TkMacInitMenus _ANSI_ARGS_((Tcl_Interp * interp));
#endif
#ifndef TkMacInitAppleEvents_TCL_DECLARED
#define TkMacInitAppleEvents_TCL_DECLARED
/* 4 */
EXTERN void		TkMacInitAppleEvents _ANSI_ARGS_((
				Tcl_Interp * interp));
#endif
#ifndef TkMacConvertEvent_TCL_DECLARED
#define TkMacConvertEvent_TCL_DECLARED
/* 5 */
EXTERN int		TkMacConvertEvent _ANSI_ARGS_((
				EventRecord * eventPtr));
#endif
#ifndef TkMacConvertTkEvent_TCL_DECLARED
#define TkMacConvertTkEvent_TCL_DECLARED
/* 6 */
EXTERN int		TkMacConvertTkEvent _ANSI_ARGS_((
				EventRecord * eventPtr, Window window));
#endif
#ifndef TkGenWMConfigureEvent_TCL_DECLARED
#define TkGenWMConfigureEvent_TCL_DECLARED
/* 7 */
EXTERN void		TkGenWMConfigureEvent _ANSI_ARGS_((Tk_Window tkwin, 
				int x, int y, int width, int height, 
				int flags));
#endif
#ifndef TkMacInvalClipRgns_TCL_DECLARED
#define TkMacInvalClipRgns_TCL_DECLARED
/* 8 */
EXTERN void		TkMacInvalClipRgns _ANSI_ARGS_((TkWindow * winPtr));
#endif
#ifndef TkMacHaveAppearance_TCL_DECLARED
#define TkMacHaveAppearance_TCL_DECLARED
/* 9 */
EXTERN int		TkMacHaveAppearance _ANSI_ARGS_((void));
#endif
#ifndef TkMacGetDrawablePort_TCL_DECLARED
#define TkMacGetDrawablePort_TCL_DECLARED
/* 10 */
EXTERN GWorldPtr	TkMacGetDrawablePort _ANSI_ARGS_((Drawable drawable));
#endif
#endif /* MAC_TCL */
a148 13
#ifdef MAC_TCL
    void (*tk_MacSetEmbedHandler) _ANSI_ARGS_((Tk_MacEmbedRegisterWinProc * registerWinProcPtr, Tk_MacEmbedGetGrafPortProc * getPortProcPtr, Tk_MacEmbedMakeContainerExistProc * containerExistProcPtr, Tk_MacEmbedGetClipProc * getClipProc, Tk_MacEmbedGetOffsetInParentProc * getOffsetProc)); /* 0 */
    void (*tk_MacTurnOffMenus) _ANSI_ARGS_((void)); /* 1 */
    void (*tk_MacTkOwnsCursor) _ANSI_ARGS_((int tkOwnsIt)); /* 2 */
    void (*tkMacInitMenus) _ANSI_ARGS_((Tcl_Interp * interp)); /* 3 */
    void (*tkMacInitAppleEvents) _ANSI_ARGS_((Tcl_Interp * interp)); /* 4 */
    int (*tkMacConvertEvent) _ANSI_ARGS_((EventRecord * eventPtr)); /* 5 */
    int (*tkMacConvertTkEvent) _ANSI_ARGS_((EventRecord * eventPtr, Window window)); /* 6 */
    void (*tkGenWMConfigureEvent) _ANSI_ARGS_((Tk_Window tkwin, int x, int y, int width, int height, int flags)); /* 7 */
    void (*tkMacInvalClipRgns) _ANSI_ARGS_((TkWindow * winPtr)); /* 8 */
    int (*tkMacHaveAppearance) _ANSI_ARGS_((void)); /* 9 */
    GWorldPtr (*tkMacGetDrawablePort) _ANSI_ARGS_((Drawable drawable)); /* 10 */
#endif /* MAC_TCL */
a203 46
#ifdef MAC_TCL
#ifndef Tk_MacSetEmbedHandler
#define Tk_MacSetEmbedHandler \
	(tkPlatStubsPtr->tk_MacSetEmbedHandler) /* 0 */
#endif
#ifndef Tk_MacTurnOffMenus
#define Tk_MacTurnOffMenus \
	(tkPlatStubsPtr->tk_MacTurnOffMenus) /* 1 */
#endif
#ifndef Tk_MacTkOwnsCursor
#define Tk_MacTkOwnsCursor \
	(tkPlatStubsPtr->tk_MacTkOwnsCursor) /* 2 */
#endif
#ifndef TkMacInitMenus
#define TkMacInitMenus \
	(tkPlatStubsPtr->tkMacInitMenus) /* 3 */
#endif
#ifndef TkMacInitAppleEvents
#define TkMacInitAppleEvents \
	(tkPlatStubsPtr->tkMacInitAppleEvents) /* 4 */
#endif
#ifndef TkMacConvertEvent
#define TkMacConvertEvent \
	(tkPlatStubsPtr->tkMacConvertEvent) /* 5 */
#endif
#ifndef TkMacConvertTkEvent
#define TkMacConvertTkEvent \
	(tkPlatStubsPtr->tkMacConvertTkEvent) /* 6 */
#endif
#ifndef TkGenWMConfigureEvent
#define TkGenWMConfigureEvent \
	(tkPlatStubsPtr->tkGenWMConfigureEvent) /* 7 */
#endif
#ifndef TkMacInvalClipRgns
#define TkMacInvalClipRgns \
	(tkPlatStubsPtr->tkMacInvalClipRgns) /* 8 */
#endif
#ifndef TkMacHaveAppearance
#define TkMacHaveAppearance \
	(tkPlatStubsPtr->tkMacHaveAppearance) /* 9 */
#endif
#ifndef TkMacGetDrawablePort
#define TkMacGetDrawablePort \
	(tkPlatStubsPtr->tkMacGetDrawablePort) /* 10 */
#endif
#endif /* MAC_TCL */
@


1.7
log
@	*** macosx-8-4-branch merged into the mainline [tcl patch #602770] ***

	* generic/tk.decls:
	* generic/tkInt.decls: added new "aqua" specific entries to the
	stubs tables. Changed all "unix" entries to "x11" to allow us to
	distinguish and build both "aqua" on MacOSX and "x11" on MacOSX.

	* generic/tk.h: added a #ifnded RESOURCE_INCLUDED so that tk.h can
	be passed to the resource compiler.

	* generic/tkCmds.c (Tk_TkObjCmd): added [tk windowingsystem]
	subcommand: returns "x11" when running on X11, "win32" on Windows,
	"classic" on MacOS9 and "aqua" on MacOSX Aqua (i.e. Carbon)

	* generic/tkFont.c (TkFontGetFirstTextLayout): new private function
	returning the first chunk of a Tk_TextLayout, i.e. until the first
	font change on the first line (or the whole first line if there is
	no such font change).

	* generic/tkMain.c: made Tcl_ThreadDataKey static

	* library/demos/puzzle.tcl: fixed button metrics for aqua

	* tests/cursor.test: check for presence of arrow cursor instead of
	heart cursor

	* xlib/xcolors.c: changed xColors static initialization to more
	standard C

	* macosx/Wish.pbproj/jingham.pbxuser (new):
	* macosx/Wish.pbproj/project.pbxproj (new): project for Apple's
	ProjectBuilder IDE.

	* macosx/Makefile (new): simple makefile for building the project
	from the command line via the ProjectBuilder tool 'pbxbuild'.

	* macosx/tkMacOSXAppInit.c (new): macosx specific AppInit looking
	for a AppMain.tcl file in its bundled Resources/Scripts folder. If
	present, argv[1] is set to that file and the Scripts folder is
	added to the auto_path. This allows tk apps to embed scripts within
	their bundle directory structure.

	* macosx/tkMacOSXInit.c (new): macosx adapted version of
	tkUnixInit.c: we initialize & cache the Carbon native encoding
	(e.g. 'macRoman') and try to find the tk script library files
	inside Tk packaged as a framework.

	* macosx/tkMacOSXNotify.c (new): new macosx specific merged
	Carbon/select-based notifier.

	* macosx/tkMacOSXEvent.c (new):
	* macosx/tkMacOSXEvent.h (new):
	* macosx/tkMacOSXKeyEvent.c (new):
	* macosx/tkMacOSXMouseEvent.c (new):
	* macosx/tkMacOSXWindowEvent.c (new): new macosx specific event
	handling functionality.

	* macosx/tkMacOSX.h (new):
	* macosx/tkMacOSXBitmap.c (new):
	* macosx/tkMacOSXButton.c (new):
	* macosx/tkMacOSXClipboard.c (new):
	* macosx/tkMacOSXColor.c (new):
	* macosx/tkMacOSXConfig.c (new):
	* macosx/tkMacOSXCursor.c (new):
	* macosx/tkMacOSXDefault.h (new):
	* macosx/tkMacOSXDialog.c (new):
	* macosx/tkMacOSXDraw.c (new):
	* macosx/tkMacOSXEmbed.c (new):
	* macosx/tkMacOSXFont.c (new):
	* macosx/tkMacOSXHLEvents.c (new):
	* macosx/tkMacOSXInt.h (new):
	* macosx/tkMacOSXKeyboard.c (new):
	* macosx/tkMacOSXMenu.c (new):
	* macosx/tkMacOSXMenubutton.c (new):
	* macosx/tkMacOSXMenus.c (new):
	* macosx/tkMacOSXPort.h (new):
	* macosx/tkMacOSXRegion.c (new):
	* macosx/tkMacOSXScale.c (new):
	* macosx/tkMacOSXScrlbr.c (new):
	* macosx/tkMacOSXSubwindows.c (new):
	* macosx/tkMacOSXTest.c (new):
	* macosx/tkMacOSXUtil.c (new):
	* macosx/tkMacOSXUtil.h (new):
	* macosx/tkMacOSXWm.c (new):
	* macosx/tkMacOSXWm.h (new):
	* macosx/tkMacOSXXStubs.c (new): macosx ports of classic mac Tk
	implementation in tk/mac.

	* macosx/tkMacOSXSend.c (new): only send to local interp
	implemented currently.

	* macosx/tkMacOSXDebug.h (new):
	* macosx/tkMacOSXDebug.c (new): new macosx specific functions for
	debugging MacOS events, regions, etc.

	* macosx/tkAboutDlg.r (new):
	* macosx/tkMacOSXApplication.r (new):
	* macosx/tkMacOSXCursors.r (new):
	* macosx/tkMacOSXLibrary.r (new):
	* macosx/tkMacOSXMenu.r (new):
	* macosx/tkMacOSXResource.r (new):
	* macosx/tkMacOSXXCursors.r (new):
	* macosx/tclets.r (new): sources for Rez resource compiler.

	* macosx/Wish.icns (new): Wish application icon.

	* generic/tk.h:
	* generic/default.h:
	* generic/tkBind.c:
	* generic/tkCmds.c:
	* generic/tkGrab.c:
	* generic/tkPointer.c:
	* generic/tkPort.h:
	* generic/tkSelect.c:
	* generic/tkStubLib.c:
	* generic/tkTest.c:
	* generic/tkText.c:
	* generic/tkWindow.c:
	* unix/tkUnix3d.c:
	* xlib/xgc.c:
	* xlib/X11/X.h:
	* xlib/X11/Xlib.h:
	* xlib/X11/Xutil.h: added #includes and #ifdefs for macosx

	* library/bgerror.tcl:
	* library/button.tcl:
	* library/console.tcl:
	* library/dialog.tcl:
	* library/entry.tcl:
	* library/listbox.tcl:
	* library/menu.tcl:
	* library/msgbox.tcl:
	* library/scrlbar.tcl:
	* library/spinbox.tcl:
	* library/text.tcl:
	* library/tk.tcl:
	* library/demos/menu.tcl:
	* library/demos/menubu.tcl:
	* library/demos/widget: check [tk windowingsystem] instead of
	and/or in addition to $tcl_platform(platform).

	* generic/tkInt.h:
	* mac/tkMacBitmap.c:
	* mac/tkMacWm.c: added missing CONSTification

	* generic/tkIntDecls.h:
	* generic/tkIntPlatDecls.h:
	* generic/tkIntXlibDecls.h:
	* generic/tkPlatDecls.h:
	* generic/tkStubInit.c: regen
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id$
d35 2
d40 3
d45 3
d50 3
d55 3
d60 3
d67 1
d70 2
d79 3
d84 3
d89 3
d94 3
d100 3
d106 3
d112 3
d119 3
d124 3
d129 3
d134 1
d137 2
d146 3
d151 3
d156 3
d161 3
d167 3
d174 3
d179 3
d185 3
d191 3
d196 3
d201 1
@


1.7.2.1
log
@	* generic/tk.decls:             fix signature of TkMacOSXInvalClipRgns
	* generic/tkPlatDecls.h:        to use Tk_Window instead of internal
	* macosx/tkMacOSXSubwindows.c:  type TkWindow (which led to any include
	* macosx/tkMacOSXWindowEvent.c: of public header tkMacOSX.h requiring
	* macosx/tkMacOSXWm.c:          prior include of tkInt.h).

	* generic/tk.h:          move TkAqua specific REDO_KEYSYM_LOOKUP define
	* macosx/tkMacOSXPort.h: out of tk.h into platform header.
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.7 2002/08/31 06:12:23 das Exp $
d107 1
a107 1
EXTERN void		TkMacOSXInvalClipRgns _ANSI_ARGS_((Tk_Window tkwin));
d152 1
a152 1
    void (*tkMacOSXInvalClipRgns) _ANSI_ARGS_((Tk_Window tkwin)); /* 6 */
@


1.7.6.1
log
@bug fixes (crahes/panic during finalization/exit); feature implementation for embedding/embedded Tk (Windows). See Tk 8.5 changes (12/17/04 - 01/03/05) for details
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.7 2002/08/31 06:12:23 das Exp $
a49 4
/* 6 */
EXTERN HWND		Tk_GetMenuHWND _ANSI_ARGS_((Tk_Window tkwin));
/* 7 */
EXTERN HWND		Tk_GetEmbeddedMenuHWND _ANSI_ARGS_((Tk_Window tkwin));
a130 2
    HWND (*tk_GetMenuHWND) _ANSI_ARGS_((Tk_Window tkwin)); /* 6 */
    HWND (*tk_GetEmbeddedMenuHWND) _ANSI_ARGS_((Tk_Window tkwin)); /* 6 */
a198 8
#ifndef Tk_GetMenuHWND
#define Tk_GetMenuHWND \
	(tkPlatStubsPtr->tk_GetMenuHWND) /* 6 */
#endif
#ifndef Tk_GetEmbeddedMenuHWND
#define Tk_GetEmbeddedMenuHWND \
	(tkPlatStubsPtr->tk_GetEmbeddedMenuHWND) /* 7 */
#endif
@


1.6
log
@* doc/HWNDToWindow.3:
* doc/GetHWND.3: Changed synopsis to indicate the tkPlatDecls.h
should be included, not tk.h.

* generic/tkPlatDecls.h: Removed #include <windows.h> for Windows,
a better solution for now is to update the docs and have extension
authors #include <tkPlatDecls.h>.

* generic/tk.h: Removed '#include "tkPlatDecls.h"', as the
incorrect inclusion order between windows.h/tkPlatDecls.h causes
build conflicts on Windows.

* generic/tkPlatDecls.h: Added #include <windows.h> for Windows,
so that HWND, etc., are defined properly.
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.5 2000/09/06 23:39:47 ericm Exp $
d85 34
d145 13
d246 46
@


1.6.6.1
log
@First checkin of support for Tk on Mac OS X.
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id$
a84 39
#ifdef MAC_OSX_TCL
/* 0 */
EXTERN void		Tk_MacOSXSetEmbedHandler _ANSI_ARGS_((
				Tk_MacOSXEmbedRegisterWinProc * registerWinProcPtr, 
				Tk_MacOSXEmbedGetGrafPortProc * getPortProcPtr, 
				Tk_MacOSXEmbedMakeContainerExistProc * containerExistProcPtr, 
				Tk_MacOSXEmbedGetClipProc * getClipProc, 
				Tk_MacOSXEmbedGetOffsetInParentProc * getOffsetProc));
/* 1 */
EXTERN void		Tk_MacOSXTurnOffMenus _ANSI_ARGS_((void));
/* 2 */
EXTERN void		Tk_MacOSXTkOwnsCursor _ANSI_ARGS_((int tkOwnsIt));
/* 3 */
EXTERN void		TkMacOSXInitMenus _ANSI_ARGS_((Tcl_Interp * interp));
/* 4 */
EXTERN void		TkMacOSXInitAppleEvents _ANSI_ARGS_((
				Tcl_Interp * interp));
/* 5 */
EXTERN void		TkGenWMConfigureEvent _ANSI_ARGS_((Tk_Window tkwin, 
				int x, int y, int width, int height, 
				int flags));
/* 6 */
EXTERN void		TkMacOSXInvalClipRgns _ANSI_ARGS_((TkWindow * winPtr));
/* 7 */
EXTERN GWorldPtr	TkMacOSXGetDrawablePort _ANSI_ARGS_((
				Drawable drawable));
/* 8 */
EXTERN ControlRef	TkMacOSXGetRootControl _ANSI_ARGS_((
				Drawable drawable));
/* 9 */
EXTERN int		Tk_MacOSXOpenBundleResources _ANSI_ARGS_((
				Tcl_Interp * interp, char * bundleName, 
				char * libraryPath, int maxPathLen, 
				int hasResourceFile));
/* 10 */
EXTERN void		Tk_MacOSXSetupTkNotifier _ANSI_ARGS_((void));
/* 11 */
EXTERN int		Tk_MacOSXIsAppInFront _ANSI_ARGS_((void));
#endif /* MAC_OSX_TCL */
a110 14
#ifdef MAC_OSX_TCL
    void (*tk_MacOSXSetEmbedHandler) _ANSI_ARGS_((Tk_MacOSXEmbedRegisterWinProc * registerWinProcPtr, Tk_MacOSXEmbedGetGrafPortProc * getPortProcPtr, Tk_MacOSXEmbedMakeContainerExistProc * containerExistProcPtr, Tk_MacOSXEmbedGetClipProc * getClipProc, Tk_MacOSXEmbedGetOffsetInParentProc * getOffsetProc)); /* 0 */
    void (*tk_MacOSXTurnOffMenus) _ANSI_ARGS_((void)); /* 1 */
    void (*tk_MacOSXTkOwnsCursor) _ANSI_ARGS_((int tkOwnsIt)); /* 2 */
    void (*tkMacOSXInitMenus) _ANSI_ARGS_((Tcl_Interp * interp)); /* 3 */
    void (*tkMacOSXInitAppleEvents) _ANSI_ARGS_((Tcl_Interp * interp)); /* 4 */
    void (*tkGenWMConfigureEvent) _ANSI_ARGS_((Tk_Window tkwin, int x, int y, int width, int height, int flags)); /* 5 */
    void (*tkMacOSXInvalClipRgns) _ANSI_ARGS_((TkWindow * winPtr)); /* 6 */
    GWorldPtr (*tkMacOSXGetDrawablePort) _ANSI_ARGS_((Drawable drawable)); /* 7 */
    ControlRef (*tkMacOSXGetRootControl) _ANSI_ARGS_((Drawable drawable)); /* 8 */
    int (*tk_MacOSXOpenBundleResources) _ANSI_ARGS_((Tcl_Interp * interp, char * bundleName, char * libraryPath, int maxPathLen, int hasResourceFile)); /* 9 */
    void (*tk_MacOSXSetupTkNotifier) _ANSI_ARGS_((void)); /* 10 */
    int (*tk_MacOSXIsAppInFront) _ANSI_ARGS_((void)); /* 11 */
#endif /* MAC_OSX_TCL */
a198 50
#ifdef MAC_OSX_TCL
#ifndef Tk_MacOSXSetEmbedHandler
#define Tk_MacOSXSetEmbedHandler \
	(tkPlatStubsPtr->tk_MacOSXSetEmbedHandler) /* 0 */
#endif
#ifndef Tk_MacOSXTurnOffMenus
#define Tk_MacOSXTurnOffMenus \
	(tkPlatStubsPtr->tk_MacOSXTurnOffMenus) /* 1 */
#endif
#ifndef Tk_MacOSXTkOwnsCursor
#define Tk_MacOSXTkOwnsCursor \
	(tkPlatStubsPtr->tk_MacOSXTkOwnsCursor) /* 2 */
#endif
#ifndef TkMacOSXInitMenus
#define TkMacOSXInitMenus \
	(tkPlatStubsPtr->tkMacOSXInitMenus) /* 3 */
#endif
#ifndef TkMacOSXInitAppleEvents
#define TkMacOSXInitAppleEvents \
	(tkPlatStubsPtr->tkMacOSXInitAppleEvents) /* 4 */
#endif
#ifndef TkGenWMConfigureEvent
#define TkGenWMConfigureEvent \
	(tkPlatStubsPtr->tkGenWMConfigureEvent) /* 5 */
#endif
#ifndef TkMacOSXInvalClipRgns
#define TkMacOSXInvalClipRgns \
	(tkPlatStubsPtr->tkMacOSXInvalClipRgns) /* 6 */
#endif
#ifndef TkMacOSXGetDrawablePort
#define TkMacOSXGetDrawablePort \
	(tkPlatStubsPtr->tkMacOSXGetDrawablePort) /* 7 */
#endif
#ifndef TkMacOSXGetRootControl
#define TkMacOSXGetRootControl \
	(tkPlatStubsPtr->tkMacOSXGetRootControl) /* 8 */
#endif
#ifndef Tk_MacOSXOpenBundleResources
#define Tk_MacOSXOpenBundleResources \
	(tkPlatStubsPtr->tk_MacOSXOpenBundleResources) /* 9 */
#endif
#ifndef Tk_MacOSXSetupTkNotifier
#define Tk_MacOSXSetupTkNotifier \
	(tkPlatStubsPtr->tk_MacOSXSetupTkNotifier) /* 10 */
#endif
#ifndef Tk_MacOSXIsAppInFront
#define Tk_MacOSXIsAppInFront \
	(tkPlatStubsPtr->tk_MacOSXIsAppInFront) /* 11 */
#endif
#endif /* MAC_OSX_TCL */
@


1.6.6.2
log
@Replace MAC_OSX_TCL with MAC_OSX_TK for all windowing specific things.  This is so we can separate the macosx specific additions to Tcl (which are added ON to the Unix core) from the Aqua additions (which are orthogonal to Unix - which itself is overloaded to mean X11 as well...)
@
text
@d85 1
a85 1
#ifdef MAC_OSX_TK
d123 1
a123 1
#endif /* MAC_OSX_TK */
d150 1
a150 1
#ifdef MAC_OSX_TK
d163 1
a163 1
#endif /* MAC_OSX_TK */
d252 1
a252 1
#ifdef MAC_OSX_TK
d301 1
a301 1
#endif /* MAC_OSX_TK */
@


1.6.6.3
log
@Remove Tk_MacOSXFindBundleResources, since it is moved to tcl.
@
text
@d115 5
d121 1
a121 1
/* 10 */
d160 3
a162 2
    void (*tk_MacOSXSetupTkNotifier) _ANSI_ARGS_((void)); /* 9 */
    int (*tk_MacOSXIsAppInFront) _ANSI_ARGS_((void)); /* 10 */
d289 4
d295 1
a295 1
	(tkPlatStubsPtr->tk_MacOSXSetupTkNotifier) /* 9 */
d299 1
a299 1
	(tkPlatStubsPtr->tk_MacOSXIsAppInFront) /* 10 */
@


1.6.2.1
log
@	* generic/tk.decls:
	* generic/tkInt.decls:
	* generic/tkIntPlatDecls.h:
	* generic/tkPlatDecls.h:
	* generic/tkStubInit.c:
	* win/Makefile.in:
	* win/makefile.vc:
	* win/tkWin3d.c:
	* win/tkWinButton.c:
	* win/tkWinColor.c:
	* win/tkWinDraw.c:
	* win/tkWinFont.c:
	* win/tkWinGdi.c (new):
	* win/tkWinGdi.h (new):
	* win/tkWinImage.c:
	* win/tkWinInt.h:
	* win/tkWinMenu.c:
	* win/tkWinPixmap.c:
	* win/tkWinUtil.c (new):
	* win/tkWinWindow.c:
	* win/tkWinWm.c:
	* win/tkWinX.c:
	* win/winMain.c:
	* xlib/xgc.c:
	* xlib/X11/Xlib.h: first cut at Windows speedup improvements by
	Leo Schubert.  Needs to be streamlined, but the code is correct
	and passes all tests.
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.6 2000/09/07 00:28:39 ericm Exp $
a49 8
/* Slot 6 is reserved */
/* Slot 7 is reserved */
/* Slot 8 is reserved */
/* Slot 9 is reserved */
/* 10 */
EXTERN HWND		TkWin_CreateDebugTerminal _ANSI_ARGS_((char* name));
/* 11 */
EXTERN int		TkWin_Init _ANSI_ARGS_((Tcl_Interp* interp));
a96 6
    void *reserved6;
    void *reserved7;
    void *reserved8;
    void *reserved9;
    HWND (*tkWin_CreateDebugTerminal) _ANSI_ARGS_((char* name)); /* 10 */
    int (*tkWin_Init) _ANSI_ARGS_((Tcl_Interp* interp)); /* 11 */
a150 12
#endif
/* Slot 6 is reserved */
/* Slot 7 is reserved */
/* Slot 8 is reserved */
/* Slot 9 is reserved */
#ifndef TkWin_CreateDebugTerminal
#define TkWin_CreateDebugTerminal \
	(tkPlatStubsPtr->tkWin_CreateDebugTerminal) /* 10 */
#endif
#ifndef TkWin_Init
#define TkWin_Init \
	(tkPlatStubsPtr->tkWin_Init) /* 11 */
@


1.5
log
@* generic/tkPlatDecls.h: Added #include <windows.h> for Windows,
so that HWND, etc., are defined properly.
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.4 1999/04/30 22:49:55 stanton Exp $
a26 6

#ifdef __WIN32__
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
#endif /* __WIN32__ */
@


1.4
log
@* Merged changes from 8.1.0 branch
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.3.4.1 1999/04/27 21:09:42 stanton Exp $
d28 5
@


1.3
log
@* Merged 8.1 branch into the main trunk
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id$
d114 3
d118 3
@


1.3.4.1
log
@* generic/tkDecls.h:
* generic/tkIntDecls.h:
* generic/tkIntPlatDecls.h:
* generic/tkIntXlibDecls.h:
* generic/tkPlatDecls.h:
* generic/tkStubInit.c: Changed to avoid the need for forward
declarations in stub initializers.  Added extern "C" blocks around
stub table pointer declarations so the stubs can be used from C++
code. [Bug: 1934]
@
text
@a113 3
#ifdef __cplusplus
extern "C" {
#endif
a114 3
#ifdef __cplusplus
}
#endif
@


1.2
log
@integrated stubs into 8.0 main branch
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.1.2.1 1999/03/06 00:08:06 redman Exp $
d124 2
a125 2
#define Tk_AttachHWND(tkwin, hwnd) \
	(tkPlatStubsPtr->tk_AttachHWND)(tkwin, hwnd) /* 0 */
d128 2
a129 2
#define Tk_GetHINSTANCE() \
	(tkPlatStubsPtr->tk_GetHINSTANCE)() /* 1 */
d132 2
a133 2
#define Tk_GetHWND(window) \
	(tkPlatStubsPtr->tk_GetHWND)(window) /* 2 */
d136 2
a137 2
#define Tk_HWNDToWindow(hwnd) \
	(tkPlatStubsPtr->tk_HWNDToWindow)(hwnd) /* 3 */
d140 2
a141 2
#define Tk_PointerEvent(hwnd, x, y) \
	(tkPlatStubsPtr->tk_PointerEvent)(hwnd, x, y) /* 4 */
d144 2
a145 2
#define Tk_TranslateWinEvent(hwnd, message, wParam, lParam, result) \
	(tkPlatStubsPtr->tk_TranslateWinEvent)(hwnd, message, wParam, lParam, result) /* 5 */
d150 2
a151 2
#define Tk_MacSetEmbedHandler(registerWinProcPtr, getPortProcPtr, containerExistProcPtr, getClipProc, getOffsetProc) \
	(tkPlatStubsPtr->tk_MacSetEmbedHandler)(registerWinProcPtr, getPortProcPtr, containerExistProcPtr, getClipProc, getOffsetProc) /* 0 */
d154 2
a155 2
#define Tk_MacTurnOffMenus() \
	(tkPlatStubsPtr->tk_MacTurnOffMenus)() /* 1 */
d158 2
a159 2
#define Tk_MacTkOwnsCursor(tkOwnsIt) \
	(tkPlatStubsPtr->tk_MacTkOwnsCursor)(tkOwnsIt) /* 2 */
d162 2
a163 2
#define TkMacInitMenus(interp) \
	(tkPlatStubsPtr->tkMacInitMenus)(interp) /* 3 */
d166 2
a167 2
#define TkMacInitAppleEvents(interp) \
	(tkPlatStubsPtr->tkMacInitAppleEvents)(interp) /* 4 */
d170 2
a171 2
#define TkMacConvertEvent(eventPtr) \
	(tkPlatStubsPtr->tkMacConvertEvent)(eventPtr) /* 5 */
d174 2
a175 2
#define TkMacConvertTkEvent(eventPtr, window) \
	(tkPlatStubsPtr->tkMacConvertTkEvent)(eventPtr, window) /* 6 */
d178 2
a179 2
#define TkGenWMConfigureEvent(tkwin, x, y, width, height, flags) \
	(tkPlatStubsPtr->tkGenWMConfigureEvent)(tkwin, x, y, width, height, flags) /* 7 */
d182 2
a183 2
#define TkMacInvalClipRgns(winPtr) \
	(tkPlatStubsPtr->tkMacInvalClipRgns)(winPtr) /* 8 */
d186 2
a187 2
#define TkMacHaveAppearance() \
	(tkPlatStubsPtr->tkMacHaveAppearance)() /* 9 */
d190 2
a191 2
#define TkMacGetDrawablePort(drawable) \
	(tkPlatStubsPtr->tkMacGetDrawablePort)(drawable) /* 10 */
@


1.2.2.1
log
@integrated stubs from development branch
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.1.4.1 1999/03/09 18:57:11 redman Exp $
a50 4
/* 6 */
EXTERN int		Tk_DdeObjCmd _ANSI_ARGS_((ClientData clientData, 
				Tcl_Interp * interp, int objc, 
				Tcl_Obj *CONST objv[]));
a97 1
    int (*tk_DdeObjCmd) _ANSI_ARGS_((ClientData clientData, Tcl_Interp * interp, int objc, Tcl_Obj *CONST objv[])); /* 6 */
a145 4
#endif
#ifndef Tk_DdeObjCmd
#define Tk_DdeObjCmd(clientData, interp, objc, objv) \
	(tkPlatStubsPtr->tk_DdeObjCmd)(clientData, interp, objc, objv) /* 6 */
@


1.2.2.2
log
@Remove stub functions.  Always use stubs when building with --enable-shared
(which is the default).  Wish links to -ltcl and -ltk (the real libraries).
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.2.2.1 1999/03/10 07:13:45 stanton Exp $
d129 2
a130 2
#define Tk_AttachHWND \
	(tkPlatStubsPtr->tk_AttachHWND) /* 0 */
d133 2
a134 2
#define Tk_GetHINSTANCE \
	(tkPlatStubsPtr->tk_GetHINSTANCE) /* 1 */
d137 2
a138 2
#define Tk_GetHWND \
	(tkPlatStubsPtr->tk_GetHWND) /* 2 */
d141 2
a142 2
#define Tk_HWNDToWindow \
	(tkPlatStubsPtr->tk_HWNDToWindow) /* 3 */
d145 2
a146 2
#define Tk_PointerEvent \
	(tkPlatStubsPtr->tk_PointerEvent) /* 4 */
d149 2
a150 2
#define Tk_TranslateWinEvent \
	(tkPlatStubsPtr->tk_TranslateWinEvent) /* 5 */
d153 2
a154 2
#define Tk_DdeObjCmd \
	(tkPlatStubsPtr->tk_DdeObjCmd) /* 6 */
d159 2
a160 2
#define Tk_MacSetEmbedHandler \
	(tkPlatStubsPtr->tk_MacSetEmbedHandler) /* 0 */
d163 2
a164 2
#define Tk_MacTurnOffMenus \
	(tkPlatStubsPtr->tk_MacTurnOffMenus) /* 1 */
d167 2
a168 2
#define Tk_MacTkOwnsCursor \
	(tkPlatStubsPtr->tk_MacTkOwnsCursor) /* 2 */
d171 2
a172 2
#define TkMacInitMenus \
	(tkPlatStubsPtr->tkMacInitMenus) /* 3 */
d175 2
a176 2
#define TkMacInitAppleEvents \
	(tkPlatStubsPtr->tkMacInitAppleEvents) /* 4 */
d179 2
a180 2
#define TkMacConvertEvent \
	(tkPlatStubsPtr->tkMacConvertEvent) /* 5 */
d183 2
a184 2
#define TkMacConvertTkEvent \
	(tkPlatStubsPtr->tkMacConvertTkEvent) /* 6 */
d187 2
a188 2
#define TkGenWMConfigureEvent \
	(tkPlatStubsPtr->tkGenWMConfigureEvent) /* 7 */
d191 2
a192 2
#define TkMacInvalClipRgns \
	(tkPlatStubsPtr->tkMacInvalClipRgns) /* 8 */
d195 2
a196 2
#define TkMacHaveAppearance \
	(tkPlatStubsPtr->tkMacHaveAppearance) /* 9 */
d199 2
a200 2
#define TkMacGetDrawablePort \
	(tkPlatStubsPtr->tkMacGetDrawablePort) /* 10 */
@


1.2.2.3
log
@Remove the DDE code.

Modified stubs based on Jan's patch.
@
text
@d11 1
a11 1
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.2.2.2 1999/03/30 02:08:02 redman Exp $
d51 4
d102 1
d151 4
@


1.1
log
@file tkPlatDecls.h was initially added on branch dev-stubs-branch.
@
text
@d1 202
@


1.1.4.1
log
@Added files new to 8.1, from 8.0.6 dev-stubs-branch.
@
text
@a0 211
/*
 * tkPlatDecls.h --
 *
 *	Declarations of functions in the platform-specific public Tcl API.
 *
 * Copyright (c) 1998-1999 by Scriptics Corporation.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 * RCS: @@(#) $Id: tkPlatDecls.h,v 1.1.2.1 1999/03/06 00:08:06 redman Exp $
 */

#ifndef _TKPLATDECLS
#define _TKPLATDECLS

#ifdef BUILD_tk
#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS DLLEXPORT
#endif

/*
 * WARNING: This file is automatically generated by the tools/genStubs.tcl
 * script.  Any modifications to the function declarations below should be made
 * in the generic/tk.decls script.
 */


/* !BEGIN!: Do not edit below this line. */

/*
 * Exported function declarations:
 */

#ifdef __WIN32__
/* 0 */
EXTERN Window		Tk_AttachHWND _ANSI_ARGS_((Tk_Window tkwin, 
				HWND hwnd));
/* 1 */
EXTERN HINSTANCE	Tk_GetHINSTANCE _ANSI_ARGS_((void));
/* 2 */
EXTERN HWND		Tk_GetHWND _ANSI_ARGS_((Window window));
/* 3 */
EXTERN Tk_Window	Tk_HWNDToWindow _ANSI_ARGS_((HWND hwnd));
/* 4 */
EXTERN void		Tk_PointerEvent _ANSI_ARGS_((HWND hwnd, int x, int y));
/* 5 */
EXTERN int		Tk_TranslateWinEvent _ANSI_ARGS_((HWND hwnd, 
				UINT message, WPARAM wParam, LPARAM lParam, 
				LRESULT * result));
/* 6 */
EXTERN int		Tk_DdeObjCmd _ANSI_ARGS_((ClientData clientData, 
				Tcl_Interp * interp, int objc, 
				Tcl_Obj *CONST objv[]));
#endif /* __WIN32__ */
#ifdef MAC_TCL
/* 0 */
EXTERN void		Tk_MacSetEmbedHandler _ANSI_ARGS_((
				Tk_MacEmbedRegisterWinProc * registerWinProcPtr, 
				Tk_MacEmbedGetGrafPortProc * getPortProcPtr, 
				Tk_MacEmbedMakeContainerExistProc * containerExistProcPtr, 
				Tk_MacEmbedGetClipProc * getClipProc, 
				Tk_MacEmbedGetOffsetInParentProc * getOffsetProc));
/* 1 */
EXTERN void		Tk_MacTurnOffMenus _ANSI_ARGS_((void));
/* 2 */
EXTERN void		Tk_MacTkOwnsCursor _ANSI_ARGS_((int tkOwnsIt));
/* 3 */
EXTERN void		TkMacInitMenus _ANSI_ARGS_((Tcl_Interp * interp));
/* 4 */
EXTERN void		TkMacInitAppleEvents _ANSI_ARGS_((
				Tcl_Interp * interp));
/* 5 */
EXTERN int		TkMacConvertEvent _ANSI_ARGS_((
				EventRecord * eventPtr));
/* 6 */
EXTERN int		TkMacConvertTkEvent _ANSI_ARGS_((
				EventRecord * eventPtr, Window window));
/* 7 */
EXTERN void		TkGenWMConfigureEvent _ANSI_ARGS_((Tk_Window tkwin, 
				int x, int y, int width, int height, 
				int flags));
/* 8 */
EXTERN void		TkMacInvalClipRgns _ANSI_ARGS_((TkWindow * winPtr));
/* 9 */
EXTERN int		TkMacHaveAppearance _ANSI_ARGS_((void));
/* 10 */
EXTERN GWorldPtr	TkMacGetDrawablePort _ANSI_ARGS_((Drawable drawable));
#endif /* MAC_TCL */

typedef struct TkPlatStubs {
    int magic;
    struct TkPlatStubHooks *hooks;

#ifdef __WIN32__
    Window (*tk_AttachHWND) _ANSI_ARGS_((Tk_Window tkwin, HWND hwnd)); /* 0 */
    HINSTANCE (*tk_GetHINSTANCE) _ANSI_ARGS_((void)); /* 1 */
    HWND (*tk_GetHWND) _ANSI_ARGS_((Window window)); /* 2 */
    Tk_Window (*tk_HWNDToWindow) _ANSI_ARGS_((HWND hwnd)); /* 3 */
    void (*tk_PointerEvent) _ANSI_ARGS_((HWND hwnd, int x, int y)); /* 4 */
    int (*tk_TranslateWinEvent) _ANSI_ARGS_((HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT * result)); /* 5 */
    int (*tk_DdeObjCmd) _ANSI_ARGS_((ClientData clientData, Tcl_Interp * interp, int objc, Tcl_Obj *CONST objv[])); /* 6 */
#endif /* __WIN32__ */
#ifdef MAC_TCL
    void (*tk_MacSetEmbedHandler) _ANSI_ARGS_((Tk_MacEmbedRegisterWinProc * registerWinProcPtr, Tk_MacEmbedGetGrafPortProc * getPortProcPtr, Tk_MacEmbedMakeContainerExistProc * containerExistProcPtr, Tk_MacEmbedGetClipProc * getClipProc, Tk_MacEmbedGetOffsetInParentProc * getOffsetProc)); /* 0 */
    void (*tk_MacTurnOffMenus) _ANSI_ARGS_((void)); /* 1 */
    void (*tk_MacTkOwnsCursor) _ANSI_ARGS_((int tkOwnsIt)); /* 2 */
    void (*tkMacInitMenus) _ANSI_ARGS_((Tcl_Interp * interp)); /* 3 */
    void (*tkMacInitAppleEvents) _ANSI_ARGS_((Tcl_Interp * interp)); /* 4 */
    int (*tkMacConvertEvent) _ANSI_ARGS_((EventRecord * eventPtr)); /* 5 */
    int (*tkMacConvertTkEvent) _ANSI_ARGS_((EventRecord * eventPtr, Window window)); /* 6 */
    void (*tkGenWMConfigureEvent) _ANSI_ARGS_((Tk_Window tkwin, int x, int y, int width, int height, int flags)); /* 7 */
    void (*tkMacInvalClipRgns) _ANSI_ARGS_((TkWindow * winPtr)); /* 8 */
    int (*tkMacHaveAppearance) _ANSI_ARGS_((void)); /* 9 */
    GWorldPtr (*tkMacGetDrawablePort) _ANSI_ARGS_((Drawable drawable)); /* 10 */
#endif /* MAC_TCL */
} TkPlatStubs;

extern TkPlatStubs *tkPlatStubsPtr;

#if defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS)

/*
 * Inline function declarations:
 */

#ifdef __WIN32__
#ifndef Tk_AttachHWND
#define Tk_AttachHWND(tkwin, hwnd) \
	(tkPlatStubsPtr->tk_AttachHWND)(tkwin, hwnd) /* 0 */
#endif
#ifndef Tk_GetHINSTANCE
#define Tk_GetHINSTANCE() \
	(tkPlatStubsPtr->tk_GetHINSTANCE)() /* 1 */
#endif
#ifndef Tk_GetHWND
#define Tk_GetHWND(window) \
	(tkPlatStubsPtr->tk_GetHWND)(window) /* 2 */
#endif
#ifndef Tk_HWNDToWindow
#define Tk_HWNDToWindow(hwnd) \
	(tkPlatStubsPtr->tk_HWNDToWindow)(hwnd) /* 3 */
#endif
#ifndef Tk_PointerEvent
#define Tk_PointerEvent(hwnd, x, y) \
	(tkPlatStubsPtr->tk_PointerEvent)(hwnd, x, y) /* 4 */
#endif
#ifndef Tk_TranslateWinEvent
#define Tk_TranslateWinEvent(hwnd, message, wParam, lParam, result) \
	(tkPlatStubsPtr->tk_TranslateWinEvent)(hwnd, message, wParam, lParam, result) /* 5 */
#endif
#ifndef Tk_DdeObjCmd
#define Tk_DdeObjCmd(clientData, interp, objc, objv) \
	(tkPlatStubsPtr->tk_DdeObjCmd)(clientData, interp, objc, objv) /* 6 */
#endif
#endif /* __WIN32__ */
#ifdef MAC_TCL
#ifndef Tk_MacSetEmbedHandler
#define Tk_MacSetEmbedHandler(registerWinProcPtr, getPortProcPtr, containerExistProcPtr, getClipProc, getOffsetProc) \
	(tkPlatStubsPtr->tk_MacSetEmbedHandler)(registerWinProcPtr, getPortProcPtr, containerExistProcPtr, getClipProc, getOffsetProc) /* 0 */
#endif
#ifndef Tk_MacTurnOffMenus
#define Tk_MacTurnOffMenus() \
	(tkPlatStubsPtr->tk_MacTurnOffMenus)() /* 1 */
#endif
#ifndef Tk_MacTkOwnsCursor
#define Tk_MacTkOwnsCursor(tkOwnsIt) \
	(tkPlatStubsPtr->tk_MacTkOwnsCursor)(tkOwnsIt) /* 2 */
#endif
#ifndef TkMacInitMenus
#define TkMacInitMenus(interp) \
	(tkPlatStubsPtr->tkMacInitMenus)(interp) /* 3 */
#endif
#ifndef TkMacInitAppleEvents
#define TkMacInitAppleEvents(interp) \
	(tkPlatStubsPtr->tkMacInitAppleEvents)(interp) /* 4 */
#endif
#ifndef TkMacConvertEvent
#define TkMacConvertEvent(eventPtr) \
	(tkPlatStubsPtr->tkMacConvertEvent)(eventPtr) /* 5 */
#endif
#ifndef TkMacConvertTkEvent
#define TkMacConvertTkEvent(eventPtr, window) \
	(tkPlatStubsPtr->tkMacConvertTkEvent)(eventPtr, window) /* 6 */
#endif
#ifndef TkGenWMConfigureEvent
#define TkGenWMConfigureEvent(tkwin, x, y, width, height, flags) \
	(tkPlatStubsPtr->tkGenWMConfigureEvent)(tkwin, x, y, width, height, flags) /* 7 */
#endif
#ifndef TkMacInvalClipRgns
#define TkMacInvalClipRgns(winPtr) \
	(tkPlatStubsPtr->tkMacInvalClipRgns)(winPtr) /* 8 */
#endif
#ifndef TkMacHaveAppearance
#define TkMacHaveAppearance() \
	(tkPlatStubsPtr->tkMacHaveAppearance)() /* 9 */
#endif
#ifndef TkMacGetDrawablePort
#define TkMacGetDrawablePort(drawable) \
	(tkPlatStubsPtr->tkMacGetDrawablePort)(drawable) /* 10 */
#endif
#endif /* MAC_TCL */

#endif /* defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) */

/* !END!: Do not edit above this line. */

#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS DLLIMPORT

#endif /* _TKPLATDECLS */
@


1.1.2.1
log
@Changes for Tk Stubs implementation.
@
text
@a0 202
/*
 * tkPlatDecls.h --
 *
 *	Declarations of functions in the platform-specific public Tcl API.
 *
 * Copyright (c) 1998-1999 by Scriptics Corporation.
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 * RCS: @@(#) $Id: tclDecls.h,v 1.2 1999/03/04 01:01:57 stanton Exp $
 */

#ifndef _TKPLATDECLS
#define _TKPLATDECLS

#ifdef BUILD_tk
#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS DLLEXPORT
#endif

/*
 * WARNING: This file is automatically generated by the tools/genStubs.tcl
 * script.  Any modifications to the function declarations below should be made
 * in the generic/tk.decls script.
 */


/* !BEGIN!: Do not edit below this line. */

/*
 * Exported function declarations:
 */

#ifdef __WIN32__
/* 0 */
EXTERN Window		Tk_AttachHWND _ANSI_ARGS_((Tk_Window tkwin, 
				HWND hwnd));
/* 1 */
EXTERN HINSTANCE	Tk_GetHINSTANCE _ANSI_ARGS_((void));
/* 2 */
EXTERN HWND		Tk_GetHWND _ANSI_ARGS_((Window window));
/* 3 */
EXTERN Tk_Window	Tk_HWNDToWindow _ANSI_ARGS_((HWND hwnd));
/* 4 */
EXTERN void		Tk_PointerEvent _ANSI_ARGS_((HWND hwnd, int x, int y));
/* 5 */
EXTERN int		Tk_TranslateWinEvent _ANSI_ARGS_((HWND hwnd, 
				UINT message, WPARAM wParam, LPARAM lParam, 
				LRESULT * result));
#endif /* __WIN32__ */
#ifdef MAC_TCL
/* 0 */
EXTERN void		Tk_MacSetEmbedHandler _ANSI_ARGS_((
				Tk_MacEmbedRegisterWinProc * registerWinProcPtr, 
				Tk_MacEmbedGetGrafPortProc * getPortProcPtr, 
				Tk_MacEmbedMakeContainerExistProc * containerExistProcPtr, 
				Tk_MacEmbedGetClipProc * getClipProc, 
				Tk_MacEmbedGetOffsetInParentProc * getOffsetProc));
/* 1 */
EXTERN void		Tk_MacTurnOffMenus _ANSI_ARGS_((void));
/* 2 */
EXTERN void		Tk_MacTkOwnsCursor _ANSI_ARGS_((int tkOwnsIt));
/* 3 */
EXTERN void		TkMacInitMenus _ANSI_ARGS_((Tcl_Interp * interp));
/* 4 */
EXTERN void		TkMacInitAppleEvents _ANSI_ARGS_((
				Tcl_Interp * interp));
/* 5 */
EXTERN int		TkMacConvertEvent _ANSI_ARGS_((
				EventRecord * eventPtr));
/* 6 */
EXTERN int		TkMacConvertTkEvent _ANSI_ARGS_((
				EventRecord * eventPtr, Window window));
/* 7 */
EXTERN void		TkGenWMConfigureEvent _ANSI_ARGS_((Tk_Window tkwin, 
				int x, int y, int width, int height, 
				int flags));
/* 8 */
EXTERN void		TkMacInvalClipRgns _ANSI_ARGS_((TkWindow * winPtr));
/* 9 */
EXTERN int		TkMacHaveAppearance _ANSI_ARGS_((void));
/* 10 */
EXTERN GWorldPtr	TkMacGetDrawablePort _ANSI_ARGS_((Drawable drawable));
#endif /* MAC_TCL */

typedef struct TkPlatStubs {
    int magic;
    struct TkPlatStubHooks *hooks;

#ifdef __WIN32__
    Window (*tk_AttachHWND) _ANSI_ARGS_((Tk_Window tkwin, HWND hwnd)); /* 0 */
    HINSTANCE (*tk_GetHINSTANCE) _ANSI_ARGS_((void)); /* 1 */
    HWND (*tk_GetHWND) _ANSI_ARGS_((Window window)); /* 2 */
    Tk_Window (*tk_HWNDToWindow) _ANSI_ARGS_((HWND hwnd)); /* 3 */
    void (*tk_PointerEvent) _ANSI_ARGS_((HWND hwnd, int x, int y)); /* 4 */
    int (*tk_TranslateWinEvent) _ANSI_ARGS_((HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, LRESULT * result)); /* 5 */
#endif /* __WIN32__ */
#ifdef MAC_TCL
    void (*tk_MacSetEmbedHandler) _ANSI_ARGS_((Tk_MacEmbedRegisterWinProc * registerWinProcPtr, Tk_MacEmbedGetGrafPortProc * getPortProcPtr, Tk_MacEmbedMakeContainerExistProc * containerExistProcPtr, Tk_MacEmbedGetClipProc * getClipProc, Tk_MacEmbedGetOffsetInParentProc * getOffsetProc)); /* 0 */
    void (*tk_MacTurnOffMenus) _ANSI_ARGS_((void)); /* 1 */
    void (*tk_MacTkOwnsCursor) _ANSI_ARGS_((int tkOwnsIt)); /* 2 */
    void (*tkMacInitMenus) _ANSI_ARGS_((Tcl_Interp * interp)); /* 3 */
    void (*tkMacInitAppleEvents) _ANSI_ARGS_((Tcl_Interp * interp)); /* 4 */
    int (*tkMacConvertEvent) _ANSI_ARGS_((EventRecord * eventPtr)); /* 5 */
    int (*tkMacConvertTkEvent) _ANSI_ARGS_((EventRecord * eventPtr, Window window)); /* 6 */
    void (*tkGenWMConfigureEvent) _ANSI_ARGS_((Tk_Window tkwin, int x, int y, int width, int height, int flags)); /* 7 */
    void (*tkMacInvalClipRgns) _ANSI_ARGS_((TkWindow * winPtr)); /* 8 */
    int (*tkMacHaveAppearance) _ANSI_ARGS_((void)); /* 9 */
    GWorldPtr (*tkMacGetDrawablePort) _ANSI_ARGS_((Drawable drawable)); /* 10 */
#endif /* MAC_TCL */
} TkPlatStubs;

extern TkPlatStubs *tkPlatStubsPtr;

#if defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS)

/*
 * Inline function declarations:
 */

#ifdef __WIN32__
#ifndef Tk_AttachHWND
#define Tk_AttachHWND(tkwin, hwnd) \
	(tkPlatStubsPtr->tk_AttachHWND)(tkwin, hwnd) /* 0 */
#endif
#ifndef Tk_GetHINSTANCE
#define Tk_GetHINSTANCE() \
	(tkPlatStubsPtr->tk_GetHINSTANCE)() /* 1 */
#endif
#ifndef Tk_GetHWND
#define Tk_GetHWND(window) \
	(tkPlatStubsPtr->tk_GetHWND)(window) /* 2 */
#endif
#ifndef Tk_HWNDToWindow
#define Tk_HWNDToWindow(hwnd) \
	(tkPlatStubsPtr->tk_HWNDToWindow)(hwnd) /* 3 */
#endif
#ifndef Tk_PointerEvent
#define Tk_PointerEvent(hwnd, x, y) \
	(tkPlatStubsPtr->tk_PointerEvent)(hwnd, x, y) /* 4 */
#endif
#ifndef Tk_TranslateWinEvent
#define Tk_TranslateWinEvent(hwnd, message, wParam, lParam, result) \
	(tkPlatStubsPtr->tk_TranslateWinEvent)(hwnd, message, wParam, lParam, result) /* 5 */
#endif
#endif /* __WIN32__ */
#ifdef MAC_TCL
#ifndef Tk_MacSetEmbedHandler
#define Tk_MacSetEmbedHandler(registerWinProcPtr, getPortProcPtr, containerExistProcPtr, getClipProc, getOffsetProc) \
	(tkPlatStubsPtr->tk_MacSetEmbedHandler)(registerWinProcPtr, getPortProcPtr, containerExistProcPtr, getClipProc, getOffsetProc) /* 0 */
#endif
#ifndef Tk_MacTurnOffMenus
#define Tk_MacTurnOffMenus() \
	(tkPlatStubsPtr->tk_MacTurnOffMenus)() /* 1 */
#endif
#ifndef Tk_MacTkOwnsCursor
#define Tk_MacTkOwnsCursor(tkOwnsIt) \
	(tkPlatStubsPtr->tk_MacTkOwnsCursor)(tkOwnsIt) /* 2 */
#endif
#ifndef TkMacInitMenus
#define TkMacInitMenus(interp) \
	(tkPlatStubsPtr->tkMacInitMenus)(interp) /* 3 */
#endif
#ifndef TkMacInitAppleEvents
#define TkMacInitAppleEvents(interp) \
	(tkPlatStubsPtr->tkMacInitAppleEvents)(interp) /* 4 */
#endif
#ifndef TkMacConvertEvent
#define TkMacConvertEvent(eventPtr) \
	(tkPlatStubsPtr->tkMacConvertEvent)(eventPtr) /* 5 */
#endif
#ifndef TkMacConvertTkEvent
#define TkMacConvertTkEvent(eventPtr, window) \
	(tkPlatStubsPtr->tkMacConvertTkEvent)(eventPtr, window) /* 6 */
#endif
#ifndef TkGenWMConfigureEvent
#define TkGenWMConfigureEvent(tkwin, x, y, width, height, flags) \
	(tkPlatStubsPtr->tkGenWMConfigureEvent)(tkwin, x, y, width, height, flags) /* 7 */
#endif
#ifndef TkMacInvalClipRgns
#define TkMacInvalClipRgns(winPtr) \
	(tkPlatStubsPtr->tkMacInvalClipRgns)(winPtr) /* 8 */
#endif
#ifndef TkMacHaveAppearance
#define TkMacHaveAppearance() \
	(tkPlatStubsPtr->tkMacHaveAppearance)() /* 9 */
#endif
#ifndef TkMacGetDrawablePort
#define TkMacGetDrawablePort(drawable) \
	(tkPlatStubsPtr->tkMacGetDrawablePort)(drawable) /* 10 */
#endif
#endif /* MAC_TCL */

#endif /* defined(USE_TK_STUBS) && !defined(USE_TK_STUB_PROCS) */

/* !END!: Do not edit above this line. */

#undef TCL_STORAGE_CLASS
#define TCL_STORAGE_CLASS DLLIMPORT

#endif /* _TKPLATDECLS */
@

