home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12osp1.exe / pkg / en_US / iodgraph.odz / iodgfigr.idl < prev    next >
Text File  |  1997-04-02  |  4KB  |  136 lines

  1. // @(#) 1.5 com/src/samples/grafpart/iodgfigr.idl, odgrafpart, od96os2, odos29712d 2/7/97 17:41:43 [3/21/97 17:47:49]
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odgrafpart
  6. //#
  7. //#   CLASSES: none
  8. //#
  9. //#   ORIGINS: 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. #ifndef _GRAFPART_CONTENT_FIGR_
  29. #define _GRAFPART_CONTENT_FIGR_
  30.  
  31. // support OD types
  32. #ifndef _ODTYPESB_
  33. #include <ODTypesB.idl>
  34. #endif  // _ODTYPESB_
  35.  
  36. // subclass from ContentObject
  37. #ifndef BC_ContentObject
  38. #include <iodbcobj.idl>
  39. #endif  // BC_ContentObject
  40.  
  41.  
  42. //==============================================================================
  43. // Classes defined in this interface
  44. //==============================================================================
  45.  
  46. interface   ContentGrafPartFigr;
  47.  
  48. //==============================================================================
  49. // Classes used in this interface
  50. //==============================================================================
  51.  
  52. interface   GrafPart;
  53. interface   ALinkedList;
  54. typedef     somToken    HDraw;
  55.  
  56. #ifdef _PLATFORM_OS2_
  57. typedef     somToken    POINTL;     // for OS/2 long point buffers
  58. #endif  // _PLATFORM_OS2_
  59.  
  60.  
  61. //==============================================================================
  62. // ContentGrafPartFigr
  63. //==============================================================================
  64.  
  65. interface ContentGrafPartFigr :  ContentObject
  66. {
  67. #ifdef __PRIVATE__
  68.     GrafPart        Initialize          ( in  ODFrame         frame,
  69.                                           in  ODPoint         point );
  70.  
  71.     void            Uninitialize        ( );
  72.  
  73.     void            Update              ( in  ODPoint         point );
  74.  
  75.     void            AdjustBoundingRect  ( );
  76.  
  77.     ODBoolean       ContainsPoint       ( in  ODPoint         point );
  78.  
  79.     ODBoolean       Draw                ( in  HDraw           hDraw );
  80.  
  81.     attribute                                 ODPoint         fPt1;    // all figures have an origin
  82.     attribute       long                fColor ;        // color value
  83.  
  84. #endif  // __PRIVATE__
  85.  
  86. #ifdef __SOMIDL__
  87.  
  88.     implementation
  89.     {
  90.         functionprefix = ContentGrafPartFigr;
  91.  
  92.         override:
  93.             somInit,
  94.             somUninit,
  95.             WriteContents,
  96.             ReadContents,
  97.             DeleteContents,
  98.             MoveBy,
  99.             Resize;
  100.  
  101.         releaseorder:
  102. #ifdef __PRIVATE__
  103.             _get_fPt1,
  104.             _set_fPt1,
  105.             _get_fColor,
  106.             _set_fColor,
  107.             Initialize,
  108.             Uninitialize,
  109.             Update,
  110.             AdjustBoundingRect,
  111.             ContainsPoint,
  112.             Draw;
  113.  
  114. #endif  // __PRIVATE__
  115.  
  116.         majorversion = 1;
  117.         minorversion = 2;
  118.  
  119.         passthru C_xih =
  120.             "#define VARIABLE_MACROS"
  121.             "#define METHOD_MACROS" ;
  122.  
  123. #if defined(__PRIVATE__) && defined (_PLATFORM_OS2_)
  124.         POINTL pPt1;     // long point buffer for OS/2 Gpi calls
  125. #endif  // __PRIVATE__  && _PLATFORM_OS2_
  126.  
  127.     };
  128.  
  129. #endif  // __SOMIDL__
  130. };
  131.  
  132.  
  133. #endif  // _GRAFPART_CONTENT_FIGR_
  134.  
  135. // end of file  *****************************************************
  136.