home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wpentk.zip / WBPENTK4.DSK / IDOSTRK.IDL < prev    next >
Text File  |  1994-10-07  |  7KB  |  165 lines

  1. #ifndef __IDOSTROKE_IDL__
  2. #define __IDOSTROKE_IDL__
  3.  
  4. #include <idocomm.idl>
  5. #include <somcls.idl>
  6.  
  7. interface IDOStroke;
  8. interface IDOInker;
  9. interface IDOInkAttr;
  10.  
  11. interface IDOMStroke: SOMClass
  12. {
  13.    exception IDO_PROB { ULONG ulErrorCode; };
  14.  
  15.    IDOStroke   idoclsCreateStroke ( in PSTROKEDATA pStrokeBuf,
  16.                                     in PULONG pulBufLen,
  17.                                     in HWND  hwnd,
  18.                                     in ULONG flAuxData ) raises (IDO_PROB);
  19.    #ifdef __SOMIDL__
  20.    implementation
  21.    {
  22.       /* Release Order */
  23.       releaseorder: idoclsCreateStroke;
  24.  
  25.       functionprefix = IDOMStroke;
  26.       filestem       = idostrk;
  27.       callstyle      = idl;
  28.       majorversion   = 0;
  29.       minorversion   = 0;
  30.  
  31.       passthru C_ih  =
  32.                        "#include <idocomm.h>"
  33.                        "#include <idoinker.h>"
  34.                        "#include <idoinkat.h>"
  35.                        ;
  36.       passthru C_h   = "#include <memory.h>"
  37.                        "#include <idoinker.h>"
  38.                        //#  Removed for now.  See C_ih section, above **RA**
  39.                        //#  "#include <idoinkat.h>"
  40.                        ;
  41.  
  42.    };
  43.    #endif
  44. };
  45.  
  46.  
  47. interface IDOStroke : IDOCommon
  48. {
  49.    exception IDO_PROB { ULONG ulErrorCode; };
  50.  
  51.    BOOL           idoIsTap                ( ) raises (IDO_PROB);
  52.    void           idoScale                ( in ULONG ulScaleX,
  53.                                             in ULONG ulScaleY ) raises (IDO_PROB);
  54.    void           idoSetStrokeType        ( in ULONG ulStrokeType ) raises (IDO_PROB);
  55.    ULONG          idoGetStrokeType        ( ) raises (IDO_PROB);
  56.    void           idoSetStrokeData        ( in PSTROKEDATA pStrokeBuf,
  57.                                             in PULONG pulBufLen,
  58.                                             in HWND  hwnd,
  59.                                             in ULONG flAuxData ) raises (IDO_PROB);
  60.    void           idoGetStrokeData        ( in PSTROKEDATA pStrokeBuf,
  61.                                             in PULONG pulBufLen,
  62.                                             in HWND  hwnd,
  63.                                             in ULONG flAuxData ) raises (IDO_PROB);
  64.    ULONG          idoGetSource            ( ) raises (IDO_PROB);
  65.    ULONG          idoGetSeq               ( ) raises (IDO_PROB);
  66.    ULONG          idoGetResolution        ( ) raises (IDO_PROB);
  67.    ULONG          idoGetSampleRate        ( ) raises (IDO_PROB);
  68.    ULONG          idoGetNumPoints         ( ) raises (IDO_PROB);
  69.    ULONG          idoGetStrokeFlags       ( ) raises (IDO_PROB);
  70.    ULONG          idoGetXExtent           ( ) raises (IDO_PROB);
  71.    ULONG          idoGetYExtent           ( ) raises (IDO_PROB);
  72.    ULONG          idoGetSensorResolution  ( ) raises (IDO_PROB);
  73.    ULONG          idoGetSensorXExtent     ( ) raises (IDO_PROB);
  74.    ULONG          idoGetSensorYExtent     ( ) raises (IDO_PROB);
  75.    ULONG          idoGetTimestamp         ( ) raises (IDO_PROB);
  76.    ULONG          idoGetDevTimestampRes   ( ) raises (IDO_PROB);
  77.    void           idoSetInkColor          ( in ULONG ulColor ) raises (IDO_PROB);
  78.    ULONG          idoGetInkColor          ( ) raises (IDO_PROB);
  79.    void           idoSetInkWidth          ( in ULONG ulWidth ) raises (IDO_PROB);
  80.    ULONG          idoGetInkWidth          ( ) raises (IDO_PROB);
  81.    void           idoSetInkMix            ( in ULONG ulMix ) raises (IDO_PROB);
  82.    ULONG          idoGetInkMix            ( ) raises (IDO_PROB);
  83.    void           idoSetInkLineType       ( in ULONG ulLineStyle ) raises (IDO_PROB);
  84.    ULONG          idoGetInkLineType       ( ) raises (IDO_PROB);
  85.    void           idoGetScaledData        ( in PSTROKEDATA pStrokeBuf,
  86.                                             in PULONG pulBufLen,
  87.                                             in HWND  hwnd,
  88.                                             in ULONG flAuxData ) raises (IDO_PROB);
  89.    void           idoGetScaledPoints      ( in PULONG   pulNumPoints,
  90.                                             in PPOINTL pPoints,
  91.                                             in PULONG pulBufLen ) raises (IDO_PROB);
  92.  
  93.    #ifdef __SOMIDL__
  94.    implementation
  95.    {
  96.       /* Release Order */
  97.       releaseorder:  idoSetStrokeData,
  98.                      idoIncRefCount,
  99.                      idoGetPrivatePointer,
  100.                      idoDecRefCount,
  101.                      idoSetSeq,
  102.                      idoIsTap,
  103.                      idoScale,
  104.                      idoSetStrokeType,
  105.                      idoGetStrokeType,
  106.                      idoGetSource,
  107.                      idoGetSeq,
  108.                      idoGetResolution,
  109.                      idoGetSampleRate,
  110.                      idoGetNumPoints,
  111.                      idoGetStrokeFlags,
  112.                      idoGetXExtent,
  113.                      idoGetYExtent,
  114.                      idoGetSensorResolution,
  115.                      idoGetSensorXExtent,
  116.                      idoGetSensorYExtent,
  117.                      idoGetTimestamp,
  118.                      idoGetDevTimestampRes,
  119.                      idoGetAuxPointInfo,
  120.                      idoGetAuxPointData,
  121.                      idoSetInkColor,
  122.                      idoGetInkColor,
  123.                      idoSetInkWidth,
  124.                      idoGetInkWidth,
  125.                      idoSetInkMix,
  126.                      idoGetInkMix,
  127.                      idoSetInkLineType,
  128.                      idoGetInkLineType,
  129.                      idoGetStrokeData,
  130.                      idoGetScaledData,
  131.                      idoGetScaledPoints
  132.                      ;
  133.  
  134.       /* Metaclass Definition */
  135.       metaclass = IDOMStroke;
  136.  
  137.       functionprefix = IDOStroke;
  138.       filestem       = idostrk;
  139.       callstyle      = idl;
  140.       majorversion   = 0;
  141.       minorversion   = 0;
  142.  
  143.       passthru C_ih  = "";
  144.  
  145.       passthru C_h   =  "#define IDO_STROKE_NORMAL    0x0000"
  146.                         "#define IDO_STROKE_ERASER    0x0001"
  147.                         ;
  148.  
  149.       somUninit         : override;
  150.       somFree           : override;
  151.       idoDraw           : override;
  152.       idoInkerDraw      : override;
  153.       idoGetBoundingBox : override;
  154.       idoSetInkAttr     : override;
  155.       idoGetInkAttr     : override;
  156.       idoSetOffset      : override;
  157.       idoGetOffset      : override;
  158.       idoSetInkerData   : override;
  159.       idoGetInkerData   : override;
  160.  
  161.    };
  162.    #endif
  163. };
  164. #endif
  165.