tkMacAppearanceStubs.c
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:2k
源码类别:

通讯编程

开发平台:

Visual C++

  1. /* 
  2.  * tkMacAppearanceStubs.c --
  3.  *
  4.  * This file contains stubs for some MacOS8.6+ Toolbox calls that
  5.  *      are not contained in any of the CFM68K stubs libraries.  Their
  6.  *      use must be conditionalized by checks (usually for Appearance version
  7.  *      greater than 1.1), so they will never get called on a CFM68k system.
  8.  *      Putting in the stubs means I don't have to clutter the code BOTH
  9.  *      with appearance version checks & #ifdef GENERATING_CFM68K...
  10.  *
  11.  * Copyright (c) 1999 Scriptics Inc.
  12.  *
  13.  * See the file "license.terms" for information on usage and redistribution
  14.  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  15.  *
  16.  * 
  17.  */
  18. #include <MacWindows.h>
  19. #include <Appearance.h>
  20. /* Export these calls from the Tk library, since we may need to use
  21.  * them in shell calls.
  22.  */
  23.   
  24. pascal OSStatus
  25. MoveWindowStructure(
  26.     WindowPtr window, 
  27.     short hGlobal, 
  28.     short vGlobal)
  29. {
  30.     panic("Error: Running stub for PPC-Only routine");
  31.     return noErr;
  32. }
  33. pascal OSStatus
  34. CreateNewWindow(
  35.     WindowClass windowClass, 
  36.     WindowAttributes attributes, 
  37.     const Rect *bounds, 
  38.     WindowPtr *outWindow)
  39. {
  40.     panic("Error: Running stub for PPC-Only routine");
  41.     return noErr;
  42. }
  43. pascal WindowPtr
  44. FrontNonFloatingWindow()
  45. {
  46.     panic("Error: Running stub for PPC-Only routine");
  47.     return NULL;
  48. }
  49. pascal OSStatus
  50. GetWindowClass(
  51.     WindowPtr window,
  52.     WindowClass *outClass)
  53. {
  54.     panic("Error: Running stub for PPC-Only routine");
  55.     return noErr;
  56. }
  57. pascal OSStatus
  58. ApplyThemeBackground(
  59.     ThemeBackgroundKind inKind,
  60.     const Rect* bounds,
  61.     ThemeDrawState inState,
  62.     SInt16 inDepth,
  63.     Boolean inColorDev)
  64. {
  65.     panic("Error: Running stub for PPC-Only routine");
  66.     return noErr;
  67. }
  68. pascal OSStatus
  69. InitFloatingWindows(void)
  70. {
  71.     panic("Error: Running stub for PPC-Only routine");
  72.     return noErr;
  73. }
  74. pascal OSStatus
  75. ShowFloatingWindows(void)
  76. {
  77.     panic("Error: Running stub for PPC-Only routine");
  78.     return noErr;
  79. }
  80. pascal OSStatus
  81. HideFloatingWindows(void)
  82. {
  83.     panic("Error: Running stub for PPC-Only routine");
  84.     return noErr;
  85. }
  86. pascal Boolean
  87. IsValidWindowPtr(GrafPtr grafPort)
  88. {
  89.     panic("Error: Running stub for PPC-Only routine");
  90.     return true;
  91. }