home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / CANVASB.IDL < prev    next >
Text File  |  1995-12-13  |  3KB  |  108 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 _CANVASB_
  16. #define _CANVASB_
  17.  
  18. #ifndef _ODOBJECT_
  19. #include "ODObject.idl"      
  20. #endif
  21.  
  22. //==============================================================================
  23. // Classes defined in this interface
  24. //==============================================================================
  25.  
  26. interface  ODBaseCanvas;
  27.  
  28. //==============================================================================
  29. // Classes used in this interface
  30. //==============================================================================
  31.  
  32. interface  ODPart;
  33. interface  ODFacet;
  34. interface  ODShape;
  35. interface  ODTransform;
  36.  
  37. //==============================================================================
  38. // ODCanvas
  39. //==============================================================================
  40.  
  41. interface ODBaseCanvas :  ODObject
  42. {
  43.   ODBoolean      HasPlatformCanvas( in ODGraphicsSystem g );
  44.   ODPlatformCanvas  GetPlatformCanvas( in ODGraphicsSystem g );
  45.   void        SetPlatformCanvas( in ODGraphicsSystem g, in ODPlatformCanvas c );
  46.  
  47.   ODBoolean      HasPlatformPrintJob( in ODGraphicsSystem g );
  48.   ODPlatformPrintJob  GetPlatformPrintJob( in ODGraphicsSystem g );   
  49.   void        SetPlatformPrintJob( in ODGraphicsSystem g, in ODPlatformPrintJob j );
  50.  
  51.   ODPart        AcquireOwner( );
  52.   void        SetOwner( in ODPart owner);
  53.  
  54.   ODFacet        GetFacet( );
  55.   void        SetFacet( in ODFacet facet);
  56.  
  57.   ODTransform      AcquireBiasTransform( );
  58.   void        SetBiasTransform( in ODTransform x );
  59.  
  60.   ODBoolean      IsDynamic( );
  61.   ODBoolean      IsOffscreen( );
  62.  
  63.   ODShape        AcquireUpdateShape( );
  64.   void        ResetUpdateShape( );
  65.  
  66.   void        Invalidate( in ODShape shape);
  67.   void        Validate( in ODShape shape);
  68.  
  69.  
  70. #ifdef __SOMIDL__
  71.   implementation
  72.   {
  73.     override:
  74.       somInit,
  75.       somUninit;
  76.  
  77.     releaseorder:
  78.       HasPlatformCanvas,
  79.       GetPlatformCanvas,
  80.       SetPlatformCanvas,
  81.       HasPlatformPrintJob,
  82.       GetPlatformPrintJob,
  83.       SetPlatformPrintJob,
  84.       AcquireOwner,
  85.       SetOwner,
  86.       GetFacet,
  87.       SetFacet,
  88.       IsDynamic,
  89.       IsOffscreen,
  90.       AcquireUpdateShape,
  91.       ResetUpdateShape,
  92.       AcquireBiasTransform,
  93.       SetBiasTransform,
  94.       Invalidate,
  95.       Validate,
  96.       reserved1,
  97.       reserved2;
  98.  
  99.     majorversion = 1; minorversion = 0;
  100.  
  101.     functionprefix = ODBaseCanvas__;
  102.  
  103.   };
  104. #endif
  105. };
  106.  
  107. #endif // _CANVASB_
  108.