home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osr1.exe / src / CanvasB.idl < prev    next >
Text File  |  1997-03-21  |  7KB  |  200 lines

  1. /* @(#)Z 1.6 com/src/imaging/idl/CanvasB.idl, odimaging, od96os2, odos29712d 97/03/21 17:18:20 (96/10/29 09:25:48) */
  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. #ifdef __PRIVATE__
  43. //# IBM Change History (most recent first):                         */
  44. //#          3/13/96 jab  Eliminated double underscores from        */
  45. //#                       function prefix.                          */
  46. //#          2/22/96 jab  Merge DR4 and OS/2 Feb. 13 drop.          */
  47. //#  122943  5/21/95 map  Method name changes for multi-threading   */
  48. //#  120349  5/15/95 map  Fix problem with //# comment on #endifs   */
  49. //#  120349  5/15/95 map  Fix up IDL copyright                      */
  50. //#******************************************************************/
  51. //#
  52. //#    File:        CanvasB.idl
  53. //#
  54. //#    Contains:    ODBaseCanvas, an abstract drawing environment
  55. //#
  56. //#    Owned by:    Jens Alfke
  57. //#
  58. //#    Copyright:    (r) 1994-95 by Apple Computer, Inc., all rights reserved.
  59. //#
  60. //#    Change History (most recent first):
  61. //#
  62. //#         <9>      9/8/95    jpa        IDL cleanup [1281687]
  63. //#         <8>      8/3/95    RR        #1257260: Collapse B classes. Remove
  64. //#                                    somInit methods. Don't call IsInitialized
  65. //#                                    or SubclassResponsibility
  66. //#         <7>      6/1/95    jpa        Removed CheckUpdateShape [1232306]
  67. //#         <6>     5/25/95    VL        1251403: Multithreading naming support.
  68. //#         <5>     3/22/95    jpa        Use new ODPlatformPrintJob type. [1230236]
  69. //#         <4>     12/5/94    jpa        Code review fixes. [1203923]
  70. //#         <3>     8/17/94    jpa        Added "functionprefix" directive. [1181512]
  71. //#         <2>      8/8/94    jpa        API changes for multiformat canvases & bias
  72. //#                                    transforms [1179683, 1178688]
  73. //#         <1>      6/8/94    jpa        first checked in
  74. //#         <3>      6/7/94    RR        Privatize change history
  75. //#         <2>     5/26/94    jpa        Tweaked IDL.
  76. //#
  77. //#    To Do:
  78. //# In Progress:
  79. //#        
  80. //#
  81. #else
  82. //#    Copyright:    (r) 1993-1995 by Apple Computer, Inc., all rights reserved.
  83. #endif
  84.  
  85. #ifndef _CANVASB_
  86. #define _CANVASB_
  87.  
  88. #ifndef _ODOBJECT_
  89. #include "ODObject.idl"      
  90. #endif
  91.  
  92. //==============================================================================
  93. // Classes defined in this interface
  94. //==============================================================================
  95.  
  96. interface  ODBaseCanvas;
  97.  
  98. //==============================================================================
  99. // Classes used in this interface
  100. //==============================================================================
  101.  
  102. interface  ODPart;
  103. interface  ODFacet;
  104. interface  ODShape;
  105. interface  ODTransform;
  106.  
  107. //==============================================================================
  108. // ODCanvas
  109. //==============================================================================
  110.  
  111. interface ODBaseCanvas :  ODObject
  112. {
  113.     ODBoolean            HasPlatformCanvas( in ODGraphicsSystem g );
  114.     ODPlatformCanvas    GetPlatformCanvas( in ODGraphicsSystem g );
  115.     void                SetPlatformCanvas( in ODGraphicsSystem g, in ODPlatformCanvas c );
  116.     
  117.     ODBoolean            HasPlatformPrintJob( in ODGraphicsSystem g );
  118.     ODPlatformPrintJob    GetPlatformPrintJob( in ODGraphicsSystem g );
  119.     void                SetPlatformPrintJob( in ODGraphicsSystem g, in ODPlatformPrintJob j );
  120.     
  121.     ODPart                AcquireOwner( );
  122.     void                SetOwner( in ODPart owner);
  123.     
  124.     ODFacet                GetFacet( );
  125.     void                SetFacet( in ODFacet facet);
  126.     
  127.     ODTransform            AcquireBiasTransform( );
  128.     void                SetBiasTransform( in ODTransform x );
  129.     
  130.     ODBoolean            IsDynamic( );
  131.     ODBoolean            IsOffscreen( );
  132.     
  133.     ODShape                AcquireUpdateShape( );
  134.     void                ResetUpdateShape( );
  135.     
  136.     void                Invalidate( in ODShape shape);
  137.     void                Validate( in ODShape shape);
  138.  
  139. #ifdef __PRIVATE__
  140.     //# Private to implementation
  141.     void                ComputeBiasTransform( );
  142.     void                InitBaseCanvas(in ODBoolean isDynamic, in ODBoolean isOffscreen);
  143. #endif
  144.  
  145. #ifdef __SOMIDL__
  146.     implementation
  147.     {
  148.         override:
  149.             somUninit;
  150.         
  151.         releaseorder:
  152.             HasPlatformCanvas,
  153.             GetPlatformCanvas,
  154.             SetPlatformCanvas,
  155.             HasPlatformPrintJob,
  156.             GetPlatformPrintJob,
  157.             SetPlatformPrintJob,
  158.             AcquireOwner,
  159.             SetOwner,
  160.             GetFacet,
  161.             SetFacet,
  162.             IsDynamic,
  163.             IsOffscreen,
  164.             AcquireUpdateShape,
  165.             ResetUpdateShape,
  166.             AcquireBiasTransform,
  167.             SetBiasTransform,
  168.             Invalidate,
  169.             Validate,
  170.         #ifdef __PRIVATE__
  171.             InitBaseCanvas,
  172.             ComputeBiasTransform;
  173.         #else
  174.             reserved1,
  175.             reserved2;
  176.         #endif
  177.         
  178.         majorversion = 1; minorversion = 0;
  179.         
  180.         functionprefix = ODBaseCanvas;
  181.         
  182.         #ifdef __PRIVATE__
  183.             ODPart                fOwner;
  184.             ODFacet                fFacet;
  185.             ODShape                fUpdateShape;
  186.             ODTransform            fBiasTransform;
  187.             ODBoolean            fIsDynamic;     
  188.             ODBoolean            fIsOffscreen;
  189.             ODGraphicsSystem    fPrintJobGraphicsSystem;
  190.             ODPlatformPrintJob    fPlatformPrintJob;
  191.         #endif
  192.     };
  193. #endif
  194. };
  195.  
  196. #endif //# _CANVASB_
  197.  
  198.  
  199.  
  200.