home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 600-699 / ff623.lha / AIB / Source / aib.h next >
C/C++ Source or Header  |  1992-03-21  |  2KB  |  99 lines

  1. /* aib.h */
  2.  
  3. #include <exec/types.h>
  4. #include <exec/memory.h>
  5. #include <exec/lists.h>
  6. #include <intuition/intuition.h>
  7. #include <intuition/gadgetclass.h>
  8. #include <libraries/gadtools.h>
  9.  
  10. #include <clib/intuition_protos.h>
  11. #include <clib/gadtools_protos.h>
  12. #include <clib/exec_protos.h>
  13. #include <clib/asl_protos.h>
  14. #include <stdlib.h>
  15.  
  16. #include "gad_ids.h"
  17.  
  18. /* some constant definitions */
  19. #define MIN_VERSION     36L      /* minimum version number for our libs */
  20.  
  21. /* some struct. defs */
  22. struct Their_Window {
  23.     struct Window *sketchpad;
  24.     LONG flags;
  25.     LONG left,top,width,height;
  26.     char title[256];
  27.     LONG minw,minh,maxw,maxh,innerw,innerh,rpt,zl,zt,zw,zh;
  28.     BOOL size,drag,depth,close,back,report,nocare,bord,act,rmb,
  29.          simple,smart,sizer,sizeb,aut,gimme,zoom;
  30. };
  31.  
  32. struct New_Wind {
  33.     LONG flags;
  34.     LONG left,top,width,height;
  35.     char title[256];
  36.     LONG minw,minh,maxw,maxh,innerw,innerh,rpt,zl,zt,zw,zh;
  37.     BOOL size,drag,depth,close,back,report,nocare,bord,act,rmb,
  38.          simple,smart,sizer,sizeb,aut,gimme,zoom;    
  39. };
  40.  
  41. /* menu structures */
  42. struct title_box {
  43.     char title[256];
  44.     BOOL disabled;
  45.     int index;
  46.     struct item_box *items;
  47.     struct title_box *next;
  48.     struct title_box *prev;
  49. };
  50.  
  51. struct item_box {
  52.     char item[256];
  53.     BOOL disabled;
  54.     BOOL menubar;
  55.     BOOL checked;
  56.     char type;
  57.     int index;
  58.     char hotkey[5];
  59.     char function[256];
  60.     struct sub_box *submenu;
  61.     struct item_box *next;
  62.     struct item_box *prev;
  63. };
  64.  
  65. struct sub_box {
  66.     char submenu[256];
  67.     BOOL disabled;
  68.     int index;
  69.     BOOL menubar;
  70.     BOOL checked;
  71.     char type;
  72.     char hotkey[5];
  73.     char function[256];
  74.     struct sub_box *next;
  75.     struct sub_box *prev;
  76. };
  77.  
  78. struct maingad {
  79.     int id;
  80.     char name[240];
  81.     char text[240];
  82.     int l,t,w,h;
  83.         char under;
  84.     int type;
  85.     BOOL dis,ng;
  86.     void *data;
  87.     struct listing *datalist;
  88.     BOOL cfont;
  89.     struct maingad *next;
  90.     struct maingad *prev;
  91. };
  92.  
  93. struct listing {
  94.     char entry[240];
  95.     struct listing *next;
  96.     struct listing *prev;
  97. };
  98.  
  99.