home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 December / CHIP_CD_1996_12_PL.iso / software / trial / megacad.pl / cc / megapar.h_ / megapar.h
Encoding:
C/C++ Source or Header  |  1996-07-12  |  5.2 KB  |  245 lines

  1. #pragma pack (2)
  2. typedef struct t_GetPntInv
  3. {
  4.     ulong       retval;
  5.     double      _far *pkt;
  6.     short       setinc;
  7.     tCallBack   func;
  8.     void        _far *para;
  9. } t_GetPntInv;
  10.  
  11. typedef struct t_DrawInv
  12. {
  13.     ulong       retval;
  14.     ushort      type;
  15.     void        _far *ptr;
  16.     ushort      lmode;
  17.     ushort      atype;
  18. } t_DrawInv;
  19.  
  20. typedef struct t_DlgInput
  21. {
  22.     ulong       retval;
  23.     ushort      num;
  24.     char        _far *title;
  25.     t_dlgdta    _far *dta;
  26. } t_DlgInput;
  27.  
  28. typedef struct t_GetFilename
  29. {
  30.     ulong       retval;
  31.     char        _far *title;
  32.     char        _far *fname;
  33. } t_GetFilename;
  34.  
  35. typedef struct t_StoreMultiple
  36. {
  37.     ulong       retval;
  38.     double      _far *data;
  39.     ushort      type;
  40. } t_StoreMultiple;
  41.  
  42. typedef struct t_MegaCMD
  43. {
  44.     ulong       retval;
  45.     char        _far *cmd;
  46. } t_MegaCMD;
  47.  
  48. typedef struct t_Message
  49. {
  50.     ulong       retval;
  51.     char        _far *str1;
  52.     char        _far *str2;
  53.     char        _far *but1;
  54.     char        _far *but2;
  55.     char        _far *but3;
  56.     short       defbut;
  57. } t_Message;
  58.  
  59. typedef struct t_MouseHelp
  60. {
  61.     ulong       retval;
  62.     char        _far *str1;
  63.     char        _far *str2;
  64.     ushort      inv;
  65. } t_MouseHelp;
  66.  
  67. typedef struct t_GetPnt
  68. {
  69.     ulong       retval;
  70.     double      _far *pkt;
  71.     short       setinc;
  72. } t_GetPnt;
  73.  
  74. typedef struct t_savecount
  75. {
  76.     ulong       retval;
  77. } t_savecount;
  78.  
  79. typedef struct t_SetFuncText
  80. {
  81.     ulong       retval;
  82.     char        _far *text;
  83. } t_SetFuncText;
  84.  
  85. typedef struct t_CreateEntity
  86. {
  87.     ulong       retval;
  88.     ushort      type;
  89.     t_attribs   _far *attr;
  90.     void        _far *data;
  91. } t_CreateEntity;
  92.  
  93. typedef struct t_GetTextVal
  94. {
  95.     ulong       retval;
  96.     ushort      type;
  97.     ushort      init;
  98.     t_text      _far *txt;
  99. } t_GetTextVal;
  100.  
  101. typedef struct t_ReadTxtFile
  102. {
  103.     ulong       retval;
  104.     char        _far *fname;
  105.     char        _far *buf;
  106.     uint        bufsiz;
  107. } t_ReadTxtFile;
  108.  
  109. typedef struct t_AddPolylnPt
  110. {
  111.     ulong       retval;
  112.     t_polyln    _far *polyln;
  113.     double      _far *mpd;
  114.     double      px;
  115.     double      py;
  116. } t_AddPolylnPt;
  117.  
  118. typedef struct t_EraseInv
  119. {
  120.     ulong       retval;
  121. } t_EraseInv;
  122.  
  123. typedef struct t_GetDimVal
  124. {
  125.     ulong       retval;
  126.     ushort      type;
  127.     ushort      init;
  128.     t_dimension _far *dim;
  129. } t_GetDimVal;
  130.  
  131. typedef struct t_PrintDimVal
  132. {
  133.     ulong       retval;
  134.     double      value;
  135.     char        _far *str;
  136.     char        _far *tol1;
  137.     char        _far *tol2;
  138. } t_PrintDimVal;
  139.  
  140. typedef struct t_ClickEntity
  141. {
  142.     ulong       retval;
  143.     ulong       filter;
  144.     double      _far *pnt;
  145.     t_entity    _far *ent;
  146.     void        _far *edta;
  147.     ushort      esiz;
  148. } t_ClickEntity;
  149.  
  150. typedef struct t_ExChangeEntity
  151. {
  152.     ulong       retval;
  153.     t_entity    _far *ent;
  154. } t_ExChangeEntity;
  155.  
  156. typedef struct t_Blink
  157. {
  158.     ulong       retval;
  159.     tCallBack   func;
  160.     void        _far *para;
  161. } t_Blink;
  162.  
  163. typedef struct t_EntityLoop
  164. {
  165.     ulong       retval;
  166.     ulong       filter;
  167.     tCallBack   func;
  168.     void        _far *para;
  169.     void        _far *edta;
  170.     ushort      esiz;
  171. } t_EntityLoop;
  172.  
  173. typedef struct t_DrawEntities
  174. {
  175.     ulong       retval;
  176.     ulong       _far *pid;
  177.     ushort      num;
  178. } t_DrawEntities;
  179.  
  180. typedef struct t_StringInput
  181. {
  182.     ulong       retval;
  183.     char        _far *title;
  184.     char        _far *buf;
  185.     ushort      buflen;
  186. } t_StringInput;
  187.  
  188. typedef struct t_SelectInit
  189. {
  190.     ulong       retval;
  191.     ulong       filter;
  192. } t_SelectInit;
  193.  
  194. typedef struct t_SelectLoop
  195. {
  196.     ulong       retval;
  197.     tCallBack   func;
  198.     void        _far *para;
  199.     void        _far *edta;
  200.     ushort      esiz;
  201. } t_SelectLoop;
  202.  
  203. typedef struct t_InsertMac
  204. {
  205.     ulong       retval;
  206.     char        _far *fname;
  207.     tCallBack   func;
  208.     void        _far *para;
  209.     void        _far *edta;
  210.     ushort      esiz;
  211. } t_InsertMac;
  212.  
  213. typedef union t_MegaPars
  214. {
  215.     t_GetPntInv            m_GetPntInv;
  216.     t_DrawInv              m_DrawInv;
  217.     t_DlgInput             m_DlgInput;
  218.     t_GetFilename          m_GetFilename;
  219.     t_StoreMultiple        m_StoreMultiple;
  220.     t_MegaCMD              m_MegaCMD;
  221.     t_Message              m_Message;
  222.     t_MouseHelp            m_MouseHelp;
  223.     t_GetPnt               m_GetPnt;
  224.     t_savecount            m_savecount;
  225.     t_SetFuncText          m_SetFuncText;
  226.     t_CreateEntity         m_CreateEntity;
  227.     t_GetTextVal           m_GetTextVal;
  228.     t_ReadTxtFile          m_ReadTxtFile;
  229.     t_AddPolylnPt          m_AddPolylnPt;
  230.     t_EraseInv             m_EraseInv;
  231.     t_GetDimVal            m_GetDimVal;
  232.     t_PrintDimVal          m_PrintDimVal;
  233.     t_ClickEntity          m_ClickEntity;
  234.     t_ExChangeEntity       m_ExChangeEntity;
  235.     t_Blink                m_Blink;
  236.     t_EntityLoop           m_EntityLoop;
  237.     t_DrawEntities         m_DrawEntities;
  238.     t_StringInput          m_StringInput;
  239.     t_SelectInit           m_SelectInit;
  240.     t_SelectLoop           m_SelectLoop;
  241.     t_InsertMac            m_InsertMac;
  242.     ulong                  retval;
  243. } t_MegaPars;
  244. #pragma pack ()
  245.