home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12otk1.exe / include / Canvas.idl < prev    next >
Text File  |  1997-04-02  |  5KB  |  151 lines

  1. /* @(#)Z 1.7 com/src/imaging/idl/Canvas.idl, odimaging, od96os2, odos29712d 97/03/21 17:18:20 (96/10/29 09:25:44) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odimaging
  6. //#
  7. //#   CLASSES: none
  8. //#
  9. //#   ORIGINS: 82,27
  10. //#
  11. //#
  12. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //#   All Rights Reserved
  14. //#   Licensed Materials - Property of IBM
  15. //#   US Government Users Restricted Rights - Use, duplication or
  16. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //#       
  18. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //#   OR PERFORMANCE OF THIS SOFTWARE.
  25. //#
  26. //#====END_GENERATED_PROLOG========================================
  27. //#
  28.  
  29. /********************************************************************/
  30. /*  Licensed Materials - Property of IBM                            */
  31. /*                                                                  */
  32. /*                                                                  */
  33. /* Copyright (C) International Business Machines Corp., 1994.       */
  34. /* Copyright (C) Apple Computer, Inc., 1994                         */
  35. /*                                                                  */
  36. /*  US Government Users Restricted Rights -                         */
  37. /*  Use, duplication, or disclosure restricted                      */
  38. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  39. /*                                                                  */
  40. /*                                                                  */
  41. /********************************************************************/
  42. //#    Copyright:    (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  43.  
  44. #ifndef _CANVAS_
  45. #define _CANVAS_
  46.  
  47. #ifndef _CANVASB_
  48. #include "CanvasB.idl"      // base class
  49. #endif
  50.  
  51. #if defined( _PLATFORM_OS2_ ) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_AIX_)
  52. #ifndef _PLATCANV_
  53. #include "PlatCanv.idl"
  54. #endif
  55. #endif // IBM Platforms
  56.  
  57. //==============================================================================
  58. // Mac OS types used in this interface
  59. //==============================================================================
  60.  
  61. /*
  62. #pragma somemittypes off
  63. */
  64.  
  65. typedef unsigned long GrafPtr;        //# C definition is in <QuickDraw.h>
  66.  
  67. /*
  68. #pragma somemittypes on
  69. */
  70.  
  71. //==============================================================================
  72. // Classes defined in this interface
  73. //==============================================================================
  74.  
  75. interface  ODCanvas;
  76.  
  77. //==============================================================================
  78. // ODCanvas
  79. //==============================================================================
  80.  
  81. interface ODCanvas :  ODBaseCanvas
  82. {
  83.     //*********************
  84.     // MACINTOSH SPECIFIC
  85.     //*********************
  86.  
  87. #ifdef _PLATFORM_MACINTOSH_
  88.   GrafPtr  GetQDPort( );
  89.   
  90.   ODPlatformCanvas  GetGXViewport( );  // Really a gxViewport; see <graphics types.h>
  91. #endif // _PLATFORM_MACINTOSH_
  92.  
  93.  
  94.     //*********************
  95.     // IBM CROSS PLATFORM SOLUTION
  96.     //*********************
  97. #if defined( _PLATFORM_OS2_ ) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_AIX_)
  98.  
  99.   ODPlatformCanvas CreatePlatformCanvas( in ODGraphicsSystem aSystemType,
  100.                      in ODBoolean isDynamic,
  101.                      in ODBoolean isOffScreen );
  102.  
  103. #endif  // IBM Platforms
  104.  
  105.  
  106. #ifdef __SOMIDL__
  107.   implementation
  108.   {
  109.     majorversion = 1; minorversion = 0;
  110.         
  111.     releaseorder:
  112. #ifdef _PLATFORM_MACINTOSH_
  113.         GetQDPort,
  114.         GetGXViewport,
  115.  
  116.         reserved1;
  117.  
  118.     override:
  119.     HasPlatformCanvas,
  120.     GetPlatformCanvas,
  121.     SetPlatformCanvas,
  122.     Invalidate,
  123.     Validate;
  124.  
  125. #endif  // _PLATFORM_MACINTOSH_
  126.  
  127.  
  128. #if defined( _PLATFORM_OS2_ ) || defined(_PLATFORM_WIN32_) || defined(_PLATFORM_AIX_)
  129.  
  130.         reserved1,
  131.  
  132.         CreatePlatformCanvas;
  133.  
  134.     override:
  135.     HasPlatformCanvas,
  136.     GetPlatformCanvas,
  137.     SetPlatformCanvas;
  138.  
  139. #endif // IBM Platforms
  140.     
  141.     functionprefix = ODCanvas;
  142.     
  143.   };
  144. #endif
  145. };
  146.  
  147. #endif // _CANVAS_
  148.  
  149.  
  150.  
  151.