diff options
author | jingham <jingham@noemail.net> | 2000-02-10 08:46:54 (GMT) |
---|---|---|
committer | jingham <jingham@noemail.net> | 2000-02-10 08:46:54 (GMT) |
commit | b6b28579b17b946c1d9e87f376d9b4e2b19b64eb (patch) | |
tree | 380f559365bc36db7a1fa01e4db521116d250c02 | |
parent | 80a3fe5616ee6828773c85d97504ebda26a4a7f8 (diff) | |
download | tk-b6b28579b17b946c1d9e87f376d9b4e2b19b64eb.zip tk-b6b28579b17b946c1d9e87f376d9b4e2b19b64eb.tar.gz tk-b6b28579b17b946c1d9e87f376d9b4e2b19b64eb.tar.bz2 |
Stubs for the Apearance manager routines for use with the 68K version of MacTk. This allows me not to conditionalize their use in the real code.
FossilOrigin-Name: ac73ea7006bd468f591bf66631fe2df3671159c3
-rwxr-xr-x | mac/tkMacAppearanceStubs.c | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/mac/tkMacAppearanceStubs.c b/mac/tkMacAppearanceStubs.c new file mode 100755 index 0000000..0c44864 --- /dev/null +++ b/mac/tkMacAppearanceStubs.c @@ -0,0 +1,106 @@ +/* + * tkMacAppearanceStubs.c -- + * + * This file contains stubs for some MacOS8.6+ Toolbox calls that + * are not contained in any of the CFM68K stubs libraries. Their + * use must be conditionalized by checks (usually for Appearance version + * greater than 1.1), so they will never get called on a CFM68k system. + * Putting in the stubs means I don't have to clutter the code BOTH + * with appearance version checks & #ifdef GENERATING_CFM68K... + * + * Copyright (c) 1999 Scriptics Inc. + * + * See the file "license.terms" for information on usage and redistribution + * of this file, and for a DISCLAIMER OF ALL WARRANTIES. + * + * + */ + +#include <MacWindows.h> +#include <Appearance.h> + +/* Export these calls from the Tk library, since we may need to use + * them in shell calls. + */ + +#pragma export on +pascal OSStatus +MoveWindowStructure( + WindowPtr window, + short hGlobal, + short vGlobal) +{ + panic("Error: Running stub for PPC-Only routine"); + return noErr; + +} + +pascal OSStatus +CreateNewWindow( + WindowClass windowClass, + WindowAttributes attributes, + const Rect *bounds, + WindowPtr *outWindow) +{ + panic("Error: Running stub for PPC-Only routine"); + return noErr; + +} + +pascal WindowPtr +FrontNonFloatingWindow() +{ + panic("Error: Running stub for PPC-Only routine"); + return NULL; +} + +pascal OSStatus +GetWindowClass( + WindowPtr window, + WindowClass *outClass) +{ + panic("Error: Running stub for PPC-Only routine"); + return noErr; +} + +pascal OSStatus +ApplyThemeBackground( + ThemeBackgroundKind inKind, + const Rect* bounds, + ThemeDrawState inState, + SInt16 inDepth, + Boolean inColorDev) +{ + panic("Error: Running stub for PPC-Only routine"); + return noErr; +} + +pascal OSStatus +InitFloatingWindows(void) +{ + panic("Error: Running stub for PPC-Only routine"); + return noErr; +} + +pascal OSStatus +ShowFloatingWindows(void) +{ + panic("Error: Running stub for PPC-Only routine"); + return noErr; +} + +pascal OSStatus +HideFloatingWindows(void) +{ + panic("Error: Running stub for PPC-Only routine"); + return noErr; +} + +pascal Boolean +IsValidWindowPtr(GrafPtr grafPort) +{ + panic("Error: Running stub for PPC-Only routine"); + return true; +} + +#pragma export reset |