home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWODMisc / Include / SLPtRect.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.3 KB  |  49 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                SLPtRect.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef SLPTRECT_H
  11. #define SLPTRECT_H
  12.  
  13. #ifndef FWFXMATH_H
  14. #include "FWFxMath.h"
  15. #endif
  16.  
  17. // ----- Foundation Includes -----
  18.  
  19. #ifndef FWSTDDEF_H
  20. #include "FWStdDef.h"
  21. #endif
  22.  
  23. //========================================================================================
  24. // struct FW_SPoint
  25. //     Has the same layout as ODPoint, but the members are FW_Fixed instead of ODFixed.
  26. //    This is how we can pass points accross SOM and C boundaries
  27. //========================================================================================
  28.  
  29. struct FW_SPoint
  30. {
  31.     FW_Fixed    x;
  32.     FW_Fixed    y;
  33. };
  34.  
  35. //========================================================================================
  36. // struct FW_SRect
  37. //    Has the same layout as ODRect, but uses type-safe FW_Fixed instead of ODFixed
  38. //========================================================================================
  39.  
  40. struct FW_SRect
  41. {
  42.     FW_Fixed left;
  43.     FW_Fixed top;
  44.     FW_Fixed right;
  45.     FW_Fixed bottom;
  46. };
  47.  
  48. #endif // SLPTRECT_H
  49.