home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / EEDRW23S.ZIP / EELIBS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-04-21  |  1.7 KB  |  44 lines

  1. /*****************************************************************************
  2. *   Module to handle libraries.                             *
  3. *                                         *
  4. * Written by:  Gershon Elber            IBM PC Ver 1.0,    Oct. 1989    *
  5. *****************************************************************************/
  6.  
  7. #ifndef EELIBS_H
  8. #define EELIBS_H
  9.  
  10. #include "PriorQue.h"
  11.  
  12. /* The snap distance will be same as one pixel in the library definition, so */
  13. /* when libraries are scaled up on loading every pin will be destinuishable. */
  14. #define LIB_SCALE_DRAW    DEFAULT_SNAP_DISTANCE
  15.  
  16. typedef struct LibraryStruct {
  17.     char Name[9];                  /* Name of library loaded. */
  18.     int NumOfParts;            /* Number of parts this library has. */
  19.     PriorQue *Entries;             /* Parts themselves are saved here. */
  20.     struct LibraryStruct *Pnext;          /* Point on next lib in chain. */
  21. } LibraryStruct;
  22.  
  23. void LoadLibrary(void);
  24. void LoadLibraryName(char *FullLibName, char *LibName);
  25. void LoadLibraries(char *LoadLibraryList);
  26. void FreeLibrary(char *LibName);
  27. char **GetLibNames(void);
  28. void ViewLibrary(void);
  29. void DrawLibPart(DrawLibItemStruct *DrawLibItem, int DrawMode, int Color);
  30. void SnapLibItemPoint(int OrigX, int OrigY, int *ClosestX, int *ClosestY,
  31.                         DrawLibItemStruct *DrawLibItem);
  32. NetListStruct *FindLibItemNetList(int lx1, int ly1, int lx2, int ly2,
  33.                   BooleanType l1Bus,
  34.                   DrawGenericStruct *Phead,
  35.                   DrawLibItemStruct *DrawLibItem);
  36. BooleanType LibItemInBox(int x1, int y1, int x2, int y2,
  37.                     DrawLibItemStruct *DrawLibItem);
  38. BooleanType PlaceLibItem(DrawLibItemStruct *DrawLibItem);
  39. DrawGenericStruct *LibCreateNewPart(void);
  40. BooleanType RePosLibItem(DrawLibItemStruct *DrawLibItem, int PopPosition);
  41. BooleanType CanDrawChipName(char *LibName);
  42.  
  43. #endif  EELIBS_H
  44.