home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / SHAPE.IDL < prev    next >
Text File  |  1995-12-13  |  3KB  |  95 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. #ifndef _SHAPE_
  16. #define _SHAPE_
  17.  
  18. #ifndef _SHAPEB_
  19. #include "ShapeB.idl"      
  20. #endif
  21.  
  22. //==============================================================================
  23. // Classes defined in this interface
  24. //==============================================================================
  25.  
  26. interface ODShape;
  27.  
  28. //==============================================================================
  29. // Classes used in this interface
  30. //==============================================================================
  31.  
  32. interface ODTransform;
  33. interface ODStorageUnit;
  34.  
  35. //==============================================================================
  36. // ODShape
  37. //==============================================================================
  38.  
  39. #if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_)
  40.  
  41. interface ODShape :  ODBaseShape
  42. {
  43.   void    InitShape();
  44.  
  45. #ifdef _PLATFORM_OS2_ // CED 
  46.  
  47.   ODRgnHandle  GetRegion();
  48.  
  49.   void    SetRegion(in ODRgnHandle rgn );
  50.  
  51.   ODRgnHandle  CopyRegion();
  52.  
  53. #else
  54.  
  55.   ODRgnHandle  GetQDRegion();
  56.  
  57.   void    SetQDRegion(in ODRgnHandle rgn );
  58.  
  59.   ODgxShape  GetGXShape( );
  60.  
  61.   void    SetGXShape(in ODgxShape s);
  62.  
  63.   ODRgnHandle  CopyQDRegion();
  64. #endif // _PLATFORM_OS2_ 
  65.  
  66. #ifdef __SOMIDL__
  67.   implementation
  68.   {
  69. #ifdef _PLATFORM_OS2_ // CED 
  70.     releaseorder:
  71.       InitShape,
  72.       GetRegion,
  73.       SetRegion,
  74.       CopyRegion;
  75. #else
  76.     releaseorder:
  77.       InitShape,
  78.       GetQDRegion,
  79.       SetQDRegion,
  80.       GetGXShape,
  81.       SetGXShape,
  82.       CopyQDRegion;
  83. #endif // _PLATFORM_OS2_ 
  84.  
  85.     majorversion = 1; minorversion = 0;
  86.  
  87.     functionprefix = ODShape__;
  88.   };
  89. #endif
  90. };
  91.  
  92. #endif // _PLATFORM_MACINTOSH_
  93.  
  94. #endif // _SHAPE_
  95.