home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / PRMDash.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.4 KB  |  67 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                PRMDash.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef PRMDASH_H
  11. #define PRMDASH_H
  12.  
  13. #ifdef FW_BUILD_MAC        // Macintosh-only
  14.  
  15. //========================================================================================
  16. //    Header files
  17. //========================================================================================
  18.  
  19. #ifndef _ODMATH_
  20. #include <ODMath.h>
  21. #endif
  22.  
  23. #ifndef FWGCONST_H
  24. #include "FWGConst.h"
  25. #endif
  26.  
  27. //========================================================================================
  28. //    class FW_CPrivMacDashDraw
  29. //========================================================================================
  30.  
  31. class    FW_CPrivMacDashDraw
  32. {
  33. public:
  34.  
  35. // ----- Construction
  36.  
  37.     FW_CPrivMacDashDraw(FW_EStyleDash dash);
  38.     ~FW_CPrivMacDashDraw();
  39.  
  40. // ----- Operations
  41.  
  42.     void    LineTo(short x, short y);
  43.  
  44. // ----- Implementation
  45.  
  46. private:
  47.     short        fDashCount;
  48.     short*        fDashDistances;
  49.     FW_Boolean    fIsOpaque;
  50.     
  51.     RGBColor    fForeColor, fBackColor;
  52.     
  53.     short        fCurSegN;
  54.     short        fCurSegDraw;
  55.     
  56.     short        fAdjustH;
  57.     short        fAdjustV;
  58.  
  59.     void        InitAdjust(short dh, short dv);
  60.     void        DrawOneSegment(short h, short v);
  61. };
  62.  
  63. #endif // FW_BUILD_MAC
  64.  
  65. #endif // FWMDASH_H
  66.  
  67.