home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff384.lzh / NorthC / Example1.LZH / cRender / menustrip.h < prev    next >
C/C++ Source or Header  |  1990-08-30  |  2KB  |  100 lines

  1. /*
  2.   (c) 1990 S.Hawtin.
  3.   Permission is granted to copy this file provided
  4.    1) It is not used for commercial gain
  5.    2) This notice is included in all copies
  6.    3) Altered copies are marked as such
  7.  
  8.   No liability is accepted for the contents of the file.
  9.  
  10.     menustrip.h    within        NorthC render
  11. */
  12.  
  13. /* Define the data structures for the Render Menustrip, 
  14.  
  15.   I know that include files should not define data structures but this
  16. makes "aif.c" that much cleaner
  17. */
  18.  
  19. /* The text for the items */
  20.  
  21. static struct IntuiText quit_text =
  22.    {
  23.     15,8,JAM1,0,1,NULL,"Quit",NULL
  24.     };
  25.  
  26. /* The MenuItem structures */
  27. struct MenuItem quit_item =
  28.    {
  29.     NULL,
  30.     0,31,75,10,
  31.     ITEMTEXT|ITEMENABLED|HIGHCOMP,
  32.     0,(APTR) &quit_text,
  33.     NULL,0,NULL,MENUNULL,
  34.     };
  35.  
  36. #define  QUIT_ITEM  3
  37.  
  38. static struct IntuiText req_text =
  39.    {
  40.     15,8,JAM1,0,1,NULL,"Controls",NULL
  41.     };
  42.  
  43. /* The MenuItem structures */
  44. struct MenuItem req_item =
  45.    {
  46.     &quit_item,
  47.     0,21,75,10,
  48.     ITEMTEXT|ITEMENABLED|HIGHCOMP,
  49.     0,(APTR) &req_text,
  50.     NULL,0,NULL,MENUNULL,
  51.     };
  52.  
  53. #define  REQ_ITEM  2
  54.  
  55. static struct IntuiText outline_text =
  56.    {
  57.     15,8,JAM1,LOWCHECKWIDTH,1,NULL,"WireFrm",NULL
  58.     };
  59.  
  60. /* The MenuItem structures */
  61. struct MenuItem outline_item =
  62.    {
  63.     &req_item,
  64.     0,11,75,10,
  65.     ITEMTEXT|ITEMENABLED|CHECKIT|HIGHCOMP,
  66.     1,(APTR) &outline_text,
  67.     NULL,0,NULL,MENUNULL,
  68.     };
  69.  
  70. #define  OUTLINE_ITEM  1
  71.  
  72. static struct IntuiText solid_text =
  73.    {
  74.     15,8,JAM1,LOWCHECKWIDTH,1,NULL,"Solid",NULL
  75.     };
  76.  
  77. /* The MenuItem structures */
  78. struct MenuItem solid_item =
  79.    {
  80.     &outline_item,
  81.     0,1,75,10,
  82.     ITEMTEXT|ITEMENABLED|CHECKIT|CHECKED|HIGHCOMP,
  83.     2,(APTR) &solid_text,
  84.     NULL,0,NULL,MENUNULL,
  85.     };
  86.  
  87. #define  SOLID_ITEM  0
  88.  
  89.  
  90. struct Menu edit_menu =
  91.     {
  92.     NULL,
  93.     0,0,75,0,
  94.     MENUENABLED,
  95.     "Edit",
  96.     &solid_item
  97.     };
  98.  
  99. #define EDIT_MENU  0
  100.