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 / FWODMisc / FWRPCnst.cpp < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.9 KB  |  51 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWRPCnst.cpp
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #include "FWOS.hpp"
  11.  
  12. #ifndef FWRECT_H
  13. #include "FWRect.h"
  14. #endif
  15.  
  16. //========================================================================================
  17. //    Runtime Informations
  18. //========================================================================================
  19.  
  20. #ifdef FW_BUILD_MAC    
  21. #pragma segment fwodmisc_const
  22. #endif
  23.  
  24. //========================================================================================
  25. // Global Rect and Point
  26. //========================================================================================
  27.  
  28. const FW_CRect        FW_kZeroRect = FW_CRect();        // Default constructor initilializes to 0
  29. const FW_CPoint        FW_kZeroPoint = FW_CPoint();
  30.  
  31. //========================================================================================
  32. // Global fixed point numbersx
  33. //========================================================================================
  34.  
  35. const FW_Fixed FW_kFixed0            = {    FW_PrivIntToFixed(0)                    };
  36. const FW_Fixed FW_kFixedPos1        = {    FW_PrivIntToFixed(1)                    };
  37. const FW_Fixed FW_kFixedNeg1        = {    FW_PrivIntToFixed(-1)                    };
  38. const FW_Fixed FW_kFixedPos2        = {    FW_PrivIntToFixed(2)                    };
  39. const FW_Fixed FW_kFixedNeg2        = {    FW_PrivIntToFixed(-2)                    };
  40. const FW_Fixed FW_kFixed72            = {    FW_PrivIntToFixed(72)                    };
  41. const FW_Fixed FW_kFixedPI            = {    FW_PrivDoubleToFixed(3.1415926536)        };
  42.  
  43. const FW_Wide FW_kWide0             = { 0, 0 };
  44. const FW_Wide FW_kWidePos1             = { 1, 0 };
  45. const FW_Wide FW_kWideNeg1             = { -1, 0 };
  46. const FW_Wide FW_kWidePos2             = { 2, 0 };
  47. const FW_Wide FW_kWideNeg2             = { -2, 0 };
  48. const FW_Wide FW_kWide72             = { 72, 0 };
  49. const FW_Wide FW_kWidePI             = { 3, 0x243F6A89 };
  50.  
  51.