home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-08-16 | 2.8 KB | 134 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: SLStdDef.idl
- // Release Version: $ ODF 1 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef SLSTDDEF_IDL
- #define SLSTDDEF_IDL
-
- #ifndef FWENVDEF_IDL
- #include "FWEnvDef.idl"
- #endif
-
- //========================================================================================
- //
- // This file is a mimic of FWStdDef.h with respect to the sizes of the entities defined
- // in FWStdDef.h. By including this file into other .idl files, you can use the same
- // types in your .idl as you would use in the .h
- //
- //========================================================================================
-
- #include <somobj.idl>
- #include <somcls.idl>
-
- /*========================================================================================
- / Type definitions
- /========================================================================================*/
-
- typedef octet FW_Boolean;
-
- typedef unsigned short FW_ResourceId;
-
- typedef unsigned short FW_Milliseconds;
-
- typedef unsigned long FW_TypeToken;
-
- typedef long FW_PlatformError;
-
- // ----- Macintosh -----
- #ifdef FW_BUILD_MAC
-
- typedef void* FW_PlatformHandle;
-
- typedef unsigned long FW_ResourceType;
-
- typedef void* FW_Instance;
-
- //typedef double_t FW_Double;
-
- typedef short FW_PlatformCoordinate;
-
- struct FW_SPlatformPoint
- {
- FW_PlatformCoordinate h;
- FW_PlatformCoordinate v;
- };
-
- struct FW_SPlatformRect
- {
- FW_PlatformCoordinate left;
- FW_PlatformCoordinate top;
- FW_PlatformCoordinate right;
- FW_PlatformCoordinate bottom;
- };
-
- #endif
-
-
- // ----- Windows -----
- #ifdef FW_BUILD_WIN
-
- typedef long FW_PlatformCoordinate;
-
- typedef void* FW_PlatformHandle;
- typedef void* FW_Instance;
-
- struct FW_SPlatformPoint
- {
- FW_PlatformCoordinate x;
- FW_PlatformCoordinate y;
- };
-
- struct FW_SPlatformRect
- {
- FW_PlatformCoordinate left;
- FW_PlatformCoordinate top;
- FW_PlatformCoordinate right;
- FW_PlatformCoordinate bottom;
- };
-
- typedef unsigned short FW_ResourceType;
-
- typedef double FW_Double;
-
- typedef somToken HINSTANCE;
- typedef somToken HRSRC;
-
- #endif
-
- // IDL should not be using these, so don't define it until we need it
- // [jkp]
- #if 0
-
- /*========================================================================================
- / Mac A5 Globals
- /========================================================================================*/
-
- #ifdef FW_BUILD_MAC
-
- #pragma options align=mac68k
- struct FW_QDGlobalRec
- {
- char privates[76];
- long randSeed;
- BitMap screenBits;
- Cursor arrow;
- Pattern dkGray;
- Pattern ltGray;
- Pattern gray;
- Pattern black;
- Pattern white;
- GrafPtr thePort;
- } FW_QDGlobalRec;
-
- #pragma options align=reset
- #endif
-
- #endif
-
- #endif
-