home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / e / extralib / !ExtrasLib / h / DrawFile < prev    next >
Text File  |  1996-03-03  |  1KB  |  40 lines

  1. /* Extras:DrawFile.h */
  2.  
  3. /* ExtrasLib by Peter Hartley 1995-96
  4.  * (K) All Rites Reversed - Copy What You Like
  5.  */
  6.  
  7. typedef struct
  8. {
  9.     int xx,xy,yx,yy;    /* fixed-point <<16 */
  10.     int xoff, yoff;     /* Draw units */
  11. } draw_matrix;
  12.  
  13. typedef struct
  14. {
  15.     unsigned char  join;
  16.     unsigned char  startcap;
  17.     unsigned char  endcap;
  18.     unsigned char  _;
  19.     int            mitrelimit;
  20.     unsigned short startcapwidth;
  21.     unsigned short startcapheight;
  22.     unsigned short endcapwidth;
  23.     unsigned short endcapheight;
  24. } draw_caps;
  25.  
  26. typedef struct
  27. {
  28.     int start;
  29.     int count;
  30. } draw_dashpattern;
  31.  
  32. os_error *Draw_Fill( void *path, int fillstyle, draw_matrix *t,
  33.                      int flatness );
  34. os_error *Draw_Stroke( void *path, int fillstyle, draw_matrix *t,
  35.                        int flatness, int thickness, draw_caps *caps,
  36.                        draw_dashpattern *pat );
  37.  
  38. extern void DrawFile_PathsOnly( void **anchor, int start, int end,
  39.                                 draw_matrix *t );
  40.