home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / GEOTYPES.IDL < prev    next >
Text File  |  1995-12-13  |  2KB  |  59 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /*                                                                  */
  12. /*                                                                  */
  13. /********************************************************************/
  14.  
  15.  
  16. #ifndef _GEOTYPES_
  17. #define _GEOTYPES_
  18.  
  19. #if defined(__SOMIDL__) && defined(EMIT_GEOTYPES)
  20. #pragma somemittypes on
  21. #endif
  22.  
  23. typedef long ODCoordinate;  // Graphics coordinates; 16.16 fixed by default
  24.  
  25. struct ODPoint {                  // Fixed-point point.
  26.   ODCoordinate x, y;                // Identical to "gxPoint" in QD GX.
  27. };
  28.  
  29. // ODRect struct. We conditionalize this with a symbol, like the header files, to allow
  30. // alternate definitions to be included first; they can then #define _RECT_ to keep this one
  31. // from being defined here.
  32.  
  33. // Identical to "gxRect" in QD GX.
  34. struct ODRect {
  35.   ODCoordinate left;
  36.   ODCoordinate top;
  37.   ODCoordinate right;
  38.   ODCoordinate bottom;
  39. };
  40.  
  41. struct ODToolSpaceRect {
  42.   ODCoordinate left;
  43.   ODCoordinate top;
  44.   ODCoordinate right;
  45.   ODCoordinate bottom;
  46.   ODRect       floatRect;
  47. };
  48.  
  49. #if defined(__SOMIDL__) && defined(EMIT_GEOTYPES)
  50. #pragma somemittypes off
  51. #endif
  52.  
  53. module OpenDoc_GeoTypes
  54. {
  55.   const string OpenDoc_GeoTypes_Version = "1.0.";
  56. };
  57.  
  58. #endif // _GEOTYPES_
  59.