home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / PLATCANV.IDL < prev    next >
Text File  |  1995-12-13  |  3KB  |  82 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 _PLATCANV_
  16. #define _PLATCANV_
  17.  
  18. //==============================================================================
  19. // Mac OS types used in this interface
  20. //==============================================================================
  21.  
  22. #ifndef _ODTYPESM_
  23. #include "ODTypesM.idl"
  24. #endif // _ODTYPESM_
  25.  
  26. #ifndef _ODOBJECT_
  27. #include "ODObject.idl"
  28. #endif // _ODOBJECT_
  29.  
  30. //==============================================================================
  31. // Classes defined in this interface
  32. //==============================================================================
  33. interface ODPlatformCanvas;
  34.  
  35. //==============================================================================
  36. // Classes used in this interface
  37. //==============================================================================
  38. interface ODFacet;
  39. interface ODWindow;
  40.  
  41. //==============================================================================
  42. // ODPlatformCanvas
  43. //==============================================================================
  44.  
  45. interface ODPlatformCanvas :  ODObject
  46. {
  47.    void InitPlatformCanvas( in HPS hps );
  48.  
  49.    ODBoolean HasWindow( );
  50.  
  51.    ODWindow GetWindow( );
  52.  
  53.    HPS GetPS( in ODFacet facet );
  54.  
  55.    void SetPS( in HPS hps, in ODFacet facet );
  56.  
  57.    void ReleasePS( in ODFacet facet );
  58.  
  59. #ifdef __SOMIDL__
  60.   implementation
  61.   {
  62.   majorversion = 1; minorversion = 0;
  63.  
  64.     releaseorder:
  65.     InitPlatformCanvas,
  66.     GetPS,
  67.     ReleasePS,
  68.     SetPS,
  69.     HasWindow,
  70.     GetWindow;
  71.  
  72.   override:
  73.     somInit;
  74.  
  75.   functionprefix = ODPlatformCanvas__;
  76.  
  77.   };
  78. #endif
  79. };
  80.  
  81. #endif // _PLATCANV_
  82.