home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_01_06 / 1n06025a < prev    next >
Text File  |  1990-09-23  |  1KB  |  63 lines

  1.  
  2. typedef KEYWORD char*;
  3. typedef TOPIC_TEXT char*;
  4. typedef ROW int;
  5. typedef COL int;
  6. typedef HIGH int;
  7. typedef WIDE int;
  8.  
  9. #define topic_type_topic    1   
  10.  
  11. typedef
  12.   struct topic_type_struct {
  13.     unsigned char fno;
  14.     KEYWORD keyword;
  15.     TOPIC_TEXT topic_text;
  16.     struct buttons_struct *buttons;
  17.   } TOPIC_TYPE;
  18.  
  19. typedef
  20.   struct buttons_struct {
  21.     unsigned char fno;
  22.     struct button_type_struct *button_type;
  23.     struct buttons_struct *next;
  24.   } BUTTONS;
  25.  
  26. #define button_type_button    1
  27.  
  28. typedef
  29.   struct button_type_struct {
  30.     unsigned char fno;
  31.     struct region_struct *region;
  32.     struct action_struct *action;
  33.   } BUTTON_TYPE;
  34.  
  35. #define region_rectangle    1
  36.  
  37. typedef
  38.   struct region_struct {
  39.     unsigned char fno;
  40.     ROW row;
  41.     COL col;
  42.     HIGH high;
  43.     WIDE wide;
  44.   } REGION;
  45.  
  46. #define action_show_info_on        1
  47. #define action_paste_as_comment    2
  48. #define action_paste_as_code        3
  49. #define action_finish_existing    4
  50. #define action_show_main_index    5
  51. #define action_user_pressed_escape 6
  52. typedef
  53.   struct action_struct {
  54.     unsigned char fno;
  55.     union {
  56.         KEYWORD show_info_on;
  57.         REGION *paste_as_comment;
  58.         REGION *paste_as_code;
  59.     } u;
  60.   } ACTION;
  61.  
  62.  
  63.