home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWToolbx / FWCursor.k < prev    next >
Encoding:
Text File  |  1996-09-17  |  3.0 KB  |  93 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWCursor.k
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWCURSOR_K
  11. #define FWCURSOR_K
  12.  
  13. #if defined FW_BUILD_MAC  && !defined __QUICKDRAW__
  14. #include <QuickDraw.h>
  15. #endif
  16.  
  17. #if defined FW_BUILD_MAC  && !defined __TOOLUTILS__
  18. #include <ToolUtils.h>
  19. #endif
  20.  
  21. #if defined FW_BUILD_WIN  && !defined __INC_WINDOWS
  22. #include <windows.h>
  23. #endif
  24.  
  25. //========================================================================================
  26. //  Type definitions
  27. //========================================================================================
  28.  
  29. #ifdef FW_BUILD_WIN
  30. typedef HCURSOR         FW_PlatformCursorHandle;
  31. typedef LPCSTR            FW_PlatformCursorID;
  32. #endif
  33.  
  34. #ifdef FW_BUILD_MAC
  35. typedef CursHandle         FW_PlatformCursorHandle;
  36. typedef FW_ResourceID    FW_PlatformCursorID;
  37. #endif
  38.  
  39. typedef unsigned long    FW_CursorID;
  40.  
  41. //========================================================================================
  42. // Cursor Flags
  43. //========================================================================================
  44.  
  45. #define FW_kSystemCursor        0x80000000
  46. #define FW_kODFCursor            0x40000000
  47. #define FW_kUserCursor            0x00000000
  48.  
  49. #define FW_kCursorMask            0xC0000000
  50. #define FW_kCursorIDMask        0x0000FFFF
  51.  
  52. //========================================================================================
  53. // ODF Global Cursors
  54. //========================================================================================
  55.  
  56. #define FW_ODF_CURSOR(id)            (FW_kODFCursor        |    (id))
  57.  
  58. #ifdef FW_BUILD_MAC
  59.  
  60. #define FW_SYSTEM_CURSOR(id)        (FW_kSystemCursor    |    (id))
  61.  
  62. #define FW_kArrowCursor                    FW_SYSTEM_CURSOR( 0 )
  63. #define FW_kIBeamCursor                    FW_SYSTEM_CURSOR( iBeamCursor )
  64. #define FW_kCrossHairCursor                FW_SYSTEM_CURSOR( crossCursor )
  65. #define FW_kWaitCursor                    FW_SYSTEM_CURSOR( watchCursor )
  66. #define FW_kOpenHandCursor                FW_ODF_CURSOR( 128 )
  67. #define FW_kClosedHandCursor            FW_ODF_CURSOR( 129 )
  68. #define FW_kSizeWECursor                FW_ODF_CURSOR( 130 )
  69. #define FW_kSizeNSCursor                FW_ODF_CURSOR( 131 )        
  70. #define FW_kSizeNWSECursor                FW_ODF_CURSOR( 132 )
  71. #define FW_kSizeNESWCursor                FW_ODF_CURSOR( 133 )
  72.  
  73. #endif
  74.  
  75. #ifdef FW_BUILD_WIN
  76.  
  77. #define FW_SYSTEM_CURSOR(id)        (FW_kSystemCursor    |    (unsigned short)(unsigned long)(id))
  78.  
  79. #define FW_kArrowCursor                    FW_SYSTEM_CURSOR( IDC_ARROW )
  80. #define FW_kIBeamCursor                    FW_SYSTEM_CURSOR( IDC_IBEAM )
  81. #define FW_kCrossHairCursor                FW_SYSTEM_CURSOR( IDC_CROSS )
  82. #define FW_kWaitCursor                    FW_SYSTEM_CURSOR( IDC_WAIT )
  83. #define FW_kOpenHandCursor                FW_ODF_CURSOR( 128 )
  84. #define FW_kClosedHandCursor            FW_ODF_CURSOR( 129 )
  85. #define FW_kSizeWECursor                FW_SYSTEM_CURSOR( IDC_SIZEWE )
  86. #define FW_kSizeNSCursor                FW_SYSTEM_CURSOR( IDC_SIZENS )
  87. #define FW_kSizeNWSECursor                FW_SYSTEM_CURSOR( IDC_SIZENWSE )
  88. #define FW_kSizeNESWCursor                FW_SYSTEM_CURSOR( IDC_SIZENESW )
  89.  
  90. #endif
  91.  
  92. #endif
  93.