home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / CANVAS.IDL < prev    next >
Text File  |  1995-12-13  |  2KB  |  85 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 _CANVAS_
  16. #define _CANVAS_
  17.  
  18. #ifndef _CANVASB_
  19. #include "CanvasB.idl"      // base class
  20. #endif
  21.  
  22. #ifdef _PLATFORM_OS2_
  23. #ifndef _WNDPCANV_
  24. #include "WndPCanv.idl"
  25. #endif
  26. #endif // _PLATFORM_OS2_
  27.  
  28. //==============================================================================
  29. // Mac OS types used in this interface
  30. //==============================================================================
  31.  
  32. /*
  33. #pragma somemittypes off
  34. */
  35.  
  36. typedef unsigned long GrafPtr;    // C definition is in <QuickDraw.h>
  37.  
  38. /*
  39. #pragma somemittypes on
  40. */
  41.  
  42. //==============================================================================
  43. // Classes defined in this interface
  44. //==============================================================================
  45.  
  46. interface  ODCanvas;
  47.  
  48. //==============================================================================
  49. // ODCanvas
  50. //==============================================================================
  51.  
  52. interface ODCanvas :  ODBaseCanvas
  53. {
  54. #ifndef _PLATFORM_OS2_
  55.   GrafPtr        GetQDPort( );
  56.  
  57.   ODPlatformCanvas  GetGXViewport( );  // Really a gxViewport; see <graphics types.h>
  58. #endif // _PLATFORM_OS2_
  59.  
  60.  
  61. #ifdef __SOMIDL__
  62.   implementation
  63.   {
  64.   majorversion = 1; minorversion = 0;
  65.  
  66.     releaseorder:
  67. #ifndef _PLATFORM_OS2_
  68.     GetQDPort,
  69.     GetGXViewport,
  70. #endif
  71.     reserved1;
  72.  
  73.   override:
  74.     HasPlatformCanvas,
  75.     GetPlatformCanvas,
  76.     SetPlatformCanvas;
  77.  
  78.   functionprefix = ODCanvas__;
  79.  
  80.   };
  81. #endif
  82. };
  83.  
  84. #endif // _CANVAS_
  85.