home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-17 | 3.0 KB | 93 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: FWCursor.k
- // Release Version: $ ODF 2 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
-
- #ifndef FWCURSOR_K
- #define FWCURSOR_K
-
- #if defined FW_BUILD_MAC && !defined __QUICKDRAW__
- #include <QuickDraw.h>
- #endif
-
- #if defined FW_BUILD_MAC && !defined __TOOLUTILS__
- #include <ToolUtils.h>
- #endif
-
- #if defined FW_BUILD_WIN && !defined __INC_WINDOWS
- #include <windows.h>
- #endif
-
- //========================================================================================
- // Type definitions
- //========================================================================================
-
- #ifdef FW_BUILD_WIN
- typedef HCURSOR FW_PlatformCursorHandle;
- typedef LPCSTR FW_PlatformCursorID;
- #endif
-
- #ifdef FW_BUILD_MAC
- typedef CursHandle FW_PlatformCursorHandle;
- typedef FW_ResourceID FW_PlatformCursorID;
- #endif
-
- typedef unsigned long FW_CursorID;
-
- //========================================================================================
- // Cursor Flags
- //========================================================================================
-
- #define FW_kSystemCursor 0x80000000
- #define FW_kODFCursor 0x40000000
- #define FW_kUserCursor 0x00000000
-
- #define FW_kCursorMask 0xC0000000
- #define FW_kCursorIDMask 0x0000FFFF
-
- //========================================================================================
- // ODF Global Cursors
- //========================================================================================
-
- #define FW_ODF_CURSOR(id) (FW_kODFCursor | (id))
-
- #ifdef FW_BUILD_MAC
-
- #define FW_SYSTEM_CURSOR(id) (FW_kSystemCursor | (id))
-
- #define FW_kArrowCursor FW_SYSTEM_CURSOR( 0 )
- #define FW_kIBeamCursor FW_SYSTEM_CURSOR( iBeamCursor )
- #define FW_kCrossHairCursor FW_SYSTEM_CURSOR( crossCursor )
- #define FW_kWaitCursor FW_SYSTEM_CURSOR( watchCursor )
- #define FW_kOpenHandCursor FW_ODF_CURSOR( 128 )
- #define FW_kClosedHandCursor FW_ODF_CURSOR( 129 )
- #define FW_kSizeWECursor FW_ODF_CURSOR( 130 )
- #define FW_kSizeNSCursor FW_ODF_CURSOR( 131 )
- #define FW_kSizeNWSECursor FW_ODF_CURSOR( 132 )
- #define FW_kSizeNESWCursor FW_ODF_CURSOR( 133 )
-
- #endif
-
- #ifdef FW_BUILD_WIN
-
- #define FW_SYSTEM_CURSOR(id) (FW_kSystemCursor | (unsigned short)(unsigned long)(id))
-
- #define FW_kArrowCursor FW_SYSTEM_CURSOR( IDC_ARROW )
- #define FW_kIBeamCursor FW_SYSTEM_CURSOR( IDC_IBEAM )
- #define FW_kCrossHairCursor FW_SYSTEM_CURSOR( IDC_CROSS )
- #define FW_kWaitCursor FW_SYSTEM_CURSOR( IDC_WAIT )
- #define FW_kOpenHandCursor FW_ODF_CURSOR( 128 )
- #define FW_kClosedHandCursor FW_ODF_CURSOR( 129 )
- #define FW_kSizeWECursor FW_SYSTEM_CURSOR( IDC_SIZEWE )
- #define FW_kSizeNSCursor FW_SYSTEM_CURSOR( IDC_SIZENS )
- #define FW_kSizeNWSECursor FW_SYSTEM_CURSOR( IDC_SIZENWSE )
- #define FW_kSizeNESWCursor FW_SYSTEM_CURSOR( IDC_SIZENESW )
-
- #endif
-
- #endif
-